add:日坠
This commit is contained in:
@@ -36,7 +36,7 @@ public class StStrategyConfigController {
|
|||||||
private IStStrategyConfigService iStStrategyConfigService;
|
private IStStrategyConfigService iStStrategyConfigService;
|
||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("分页查询")
|
@Log("查询规则")
|
||||||
public ResponseEntity<Object> query(StrategyQuery query, PageQuery page) {
|
public ResponseEntity<Object> query(StrategyQuery query, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(iStStrategyConfigService.page(page.build(),query.build())), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(iStStrategyConfigService.page(page.build(),query.build())), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@@ -52,28 +52,28 @@ public class StStrategyConfigController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
@Log("新增")
|
@Log("新增规格")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody StStrategyConfig dao) {
|
public ResponseEntity<Object> create(@Validated @RequestBody StStrategyConfig dao) {
|
||||||
iStStrategyConfigService.create(dao);
|
iStStrategyConfigService.create(dao);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
@Log("修改")
|
@Log("修改规格")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody StStrategyConfig dao) {
|
public ResponseEntity<Object> update(@Validated @RequestBody StStrategyConfig dao) {
|
||||||
iStStrategyConfigService.update(dao);
|
iStStrategyConfigService.update(dao);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
@Log("删除")
|
@Log("删除规格")
|
||||||
public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
||||||
iStStrategyConfigService.deleteAll(ids);
|
iStStrategyConfigService.deleteAll(ids);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/changeActive")
|
@PutMapping("/changeActive")
|
||||||
@Log("修改启用状态")
|
@Log("修改启用状态规格")
|
||||||
public ResponseEntity<Object> changeActive(@Validated @RequestBody StStrategyConfig dao) {
|
public ResponseEntity<Object> changeActive(@Validated @RequestBody StStrategyConfig dao) {
|
||||||
iStStrategyConfigService.changeActive(dao);
|
iStStrategyConfigService.changeActive(dao);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ package org.nl.wms.dispatch_manage.point.controller;
|
|||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
@@ -41,6 +42,7 @@ public class SchBasePointController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("创建点位")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody SchBasePoint entity) {
|
public ResponseEntity<Object> create(@Validated @RequestBody SchBasePoint entity) {
|
||||||
entity.setId(IdUtil.getStringId());
|
entity.setId(IdUtil.getStringId());
|
||||||
entity.setCreate_name(SecurityUtils.getCurrentNickName());
|
entity.setCreate_name(SecurityUtils.getCurrentNickName());
|
||||||
@@ -50,6 +52,7 @@ public class SchBasePointController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@Log("更新点位")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody SchBasePoint entity) {
|
public ResponseEntity<Object> update(@Validated @RequestBody SchBasePoint entity) {
|
||||||
entity.setUpdate_name(SecurityUtils.getCurrentNickName());
|
entity.setUpdate_name(SecurityUtils.getCurrentNickName());
|
||||||
entity.setUpdate_time(DateUtil.now());
|
entity.setUpdate_time(DateUtil.now());
|
||||||
@@ -59,12 +62,14 @@ public class SchBasePointController {
|
|||||||
|
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@Log("删除点位")
|
||||||
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
||||||
pointService.removeByIds(ids);
|
pointService.removeByIds(ids);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getRegion")
|
@GetMapping("/getRegion")
|
||||||
|
@Log("获取区域")
|
||||||
public ResponseEntity<Object> getRegion() {
|
public ResponseEntity<Object> getRegion() {
|
||||||
return new ResponseEntity<>(regionService.list(), HttpStatus.OK);
|
return new ResponseEntity<>(regionService.list(), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package org.nl.wms.dispatch_manage.region.controller;
|
|||||||
|
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
@@ -38,6 +39,7 @@ public class SchBaseRegionController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("创建区域")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody SchBaseRegion entity) {
|
public ResponseEntity<Object> create(@Validated @RequestBody SchBaseRegion entity) {
|
||||||
entity.setId(IdUtil.getStringId());
|
entity.setId(IdUtil.getStringId());
|
||||||
entity.setCreate_name(SecurityUtils.getCurrentNickName());
|
entity.setCreate_name(SecurityUtils.getCurrentNickName());
|
||||||
@@ -47,6 +49,7 @@ public class SchBaseRegionController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@Log("更新区域")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody SchBaseRegion entity) {
|
public ResponseEntity<Object> update(@Validated @RequestBody SchBaseRegion entity) {
|
||||||
entity.setUpdate_name(SecurityUtils.getCurrentNickName());
|
entity.setUpdate_name(SecurityUtils.getCurrentNickName());
|
||||||
entity.setUpdate_time(DateUtil.now());
|
entity.setUpdate_time(DateUtil.now());
|
||||||
@@ -56,6 +59,7 @@ public class SchBaseRegionController {
|
|||||||
|
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@Log("删除区域")
|
||||||
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
public ResponseEntity<Object> delete(@RequestBody Set<String> ids) {
|
||||||
regionService.removeByIds(ids);
|
regionService.removeByIds(ids);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ public class SchBaseTaskController {
|
|||||||
|
|
||||||
|
|
||||||
@PostMapping("getVehicleTask")
|
@PostMapping("getVehicleTask")
|
||||||
|
@Log("查询载具任务")
|
||||||
public ResponseEntity<Object> getVehicleTask(@RequestBody JSONObject param) {
|
public ResponseEntity<Object> getVehicleTask(@RequestBody JSONObject param) {
|
||||||
Assert.noNullElements(new Object[]{param,param.getString("vehicle_id")},"请求参数不能为空");
|
Assert.noNullElements(new Object[]{param,param.getString("vehicle_id")},"请求参数不能为空");
|
||||||
return new ResponseEntity<>(iSchBaseTaskService.getByVehicle(param.getString("vehicle_id")), HttpStatus.OK);
|
return new ResponseEntity<>(iSchBaseTaskService.getByVehicle(param.getString("vehicle_id")), HttpStatus.OK);
|
||||||
@@ -48,11 +49,13 @@ public class SchBaseTaskController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
|
@Log("任务查询")
|
||||||
public ResponseEntity<Object> query(SchBaseTaskQuery whereJson, PageQuery page){
|
public ResponseEntity<Object> query(SchBaseTaskQuery whereJson, PageQuery page){
|
||||||
return new ResponseEntity<>(TableDataInfo.build(iSchBaseTaskService.queryAll(whereJson,page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(iSchBaseTaskService.queryAll(whereJson,page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("手动创建任务")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody SchBaseTask entity){
|
public ResponseEntity<Object> create(@Validated @RequestBody SchBaseTask entity){
|
||||||
iSchBaseTaskService.create(entity);
|
iSchBaseTaskService.create(entity);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
@@ -69,6 +70,7 @@ public class AlmEarlyDeferralController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/saveDtl")
|
@PostMapping("/saveDtl")
|
||||||
|
@Log("保存预警明细配置")
|
||||||
public ResponseEntity<Object> saveDtl(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> saveDtl(@Validated @RequestBody JSONObject dto) {
|
||||||
String id = dto.getString("id");
|
String id = dto.getString("id");
|
||||||
LambdaUpdateWrapper<AlmEarlyDeferralDetail> luw = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<AlmEarlyDeferralDetail> luw = new LambdaUpdateWrapper<>();
|
||||||
@@ -88,6 +90,7 @@ public class AlmEarlyDeferralController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
|
@Log("删除预警明细配置")
|
||||||
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
almEarlyDeferralService.removeByIds(Arrays.asList(ids));
|
almEarlyDeferralService.removeByIds(Arrays.asList(ids));
|
||||||
@@ -96,6 +99,7 @@ public class AlmEarlyDeferralController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("创建预警明细配置")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> create(@Validated @RequestBody JSONObject dto) {
|
||||||
AlmEarlyDeferral almEarlyDeferral = dto.toJavaObject(AlmEarlyDeferral.class);
|
AlmEarlyDeferral almEarlyDeferral = dto.toJavaObject(AlmEarlyDeferral.class);
|
||||||
almEarlyDeferral.setCreate_name(SecurityUtils.getCurrentNickName());
|
almEarlyDeferral.setCreate_name(SecurityUtils.getCurrentNickName());
|
||||||
@@ -106,6 +110,7 @@ public class AlmEarlyDeferralController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
|
@Log("修改预警信息")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> update(@Validated @RequestBody JSONObject dto) {
|
||||||
AlmEarlyDeferral almEarlyDeferral = dto.toJavaObject(AlmEarlyDeferral.class);
|
AlmEarlyDeferral almEarlyDeferral = dto.toJavaObject(AlmEarlyDeferral.class);
|
||||||
almEarlyDeferral.setCreate_time(DateUtil.now());
|
almEarlyDeferral.setCreate_time(DateUtil.now());
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.utils.IdUtil;
|
import org.nl.common.utils.IdUtil;
|
||||||
import org.nl.common.utils.SecurityUtils;
|
import org.nl.common.utils.SecurityUtils;
|
||||||
@@ -89,6 +90,7 @@ public class AlmEarlyInvController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("创建预警信息")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> create(@Validated @RequestBody JSONObject dto) {
|
||||||
AlmEarlyInv inv = dto.toJavaObject(AlmEarlyInv.class);
|
AlmEarlyInv inv = dto.toJavaObject(AlmEarlyInv.class);
|
||||||
inv.setCreate_id(SecurityUtils.getCurrentUserId());
|
inv.setCreate_id(SecurityUtils.getCurrentUserId());
|
||||||
@@ -99,6 +101,7 @@ public class AlmEarlyInvController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
|
@Log("更新预警信息")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> update(@Validated @RequestBody JSONObject dto) {
|
||||||
AlmEarlyInv inv = dto.toJavaObject(AlmEarlyInv.class);
|
AlmEarlyInv inv = dto.toJavaObject(AlmEarlyInv.class);
|
||||||
inv.setCreate_time(DateUtil.now());
|
inv.setCreate_time(DateUtil.now());
|
||||||
@@ -107,6 +110,7 @@ public class AlmEarlyInvController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/saveDtl")
|
@PostMapping("/saveDtl")
|
||||||
|
@Log("保存预警明细配置")
|
||||||
public ResponseEntity<Object> saveDtl(@Validated @RequestBody JSONObject dto) {
|
public ResponseEntity<Object> saveDtl(@Validated @RequestBody JSONObject dto) {
|
||||||
String id = dto.getString("id");
|
String id = dto.getString("id");
|
||||||
LambdaUpdateWrapper<AlmEarlyDtl> luw = new LambdaUpdateWrapper<>();
|
LambdaUpdateWrapper<AlmEarlyDtl> luw = new LambdaUpdateWrapper<>();
|
||||||
@@ -125,6 +129,7 @@ public class AlmEarlyInvController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping("/delete")
|
@DeleteMapping("/delete")
|
||||||
|
@Log("删除预警配置")
|
||||||
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
iAlmEarlyInvService.removeByIds(Arrays.asList(ids));
|
iAlmEarlyInvService.removeByIds(Arrays.asList(ids));
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ public class PmFormDataController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping()
|
@GetMapping()
|
||||||
|
@Log("查询数据")
|
||||||
public ResponseEntity<Object> queryAll(FormDataQuery query, PageQuery page) {
|
public ResponseEntity<Object> queryAll(FormDataQuery query, PageQuery page) {
|
||||||
return new ResponseEntity<>(TableDataInfo.build(iPmFormDataService.queryTree(query,page)), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(iPmFormDataService.queryTree(query,page)), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONException;
|
|||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.wms.sync_manage.service.field_mapping.IBmExternalFieldMappingService;
|
import org.nl.wms.sync_manage.service.field_mapping.IBmExternalFieldMappingService;
|
||||||
import org.nl.wms.sync_manage.service.field_mapping.dao.BmExternalFieldMapping;
|
import org.nl.wms.sync_manage.service.field_mapping.dao.BmExternalFieldMapping;
|
||||||
@@ -41,30 +42,35 @@ public class BmExternalFieldMappingController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping
|
@PostMapping
|
||||||
|
@Log("创建同步")
|
||||||
public ResponseEntity<Object> create(@Validated @RequestBody BmExternalFieldMapping dto) {
|
public ResponseEntity<Object> create(@Validated @RequestBody BmExternalFieldMapping dto) {
|
||||||
mappingsService.save(dto);
|
mappingsService.save(dto);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/addRows")
|
@PostMapping("/addRows")
|
||||||
|
@Log("新增同步明细")
|
||||||
public ResponseEntity<Object> addRows(@RequestBody RequestMappingParam param) {
|
public ResponseEntity<Object> addRows(@RequestBody RequestMappingParam param) {
|
||||||
mappingsService.addRows(param);
|
mappingsService.addRows(param);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping
|
@PutMapping
|
||||||
|
@Log("创建同步配置")
|
||||||
public ResponseEntity<Object> update(@Validated @RequestBody BmExternalFieldMapping dto) {
|
public ResponseEntity<Object> update(@Validated @RequestBody BmExternalFieldMapping dto) {
|
||||||
mappingsService.update(dto, new LambdaUpdateWrapper<BmExternalFieldMapping>().eq(BmExternalFieldMapping::getId, dto.getId()));
|
mappingsService.update(dto, new LambdaUpdateWrapper<BmExternalFieldMapping>().eq(BmExternalFieldMapping::getId, dto.getId()));
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PutMapping("/updateRows")
|
@PutMapping("/updateRows")
|
||||||
|
@Log("创建同步配置明细")
|
||||||
public ResponseEntity<Object> updateRows(@RequestBody RequestMappingParam param) {
|
public ResponseEntity<Object> updateRows(@RequestBody RequestMappingParam param) {
|
||||||
mappingsService.updateRows(param);
|
mappingsService.updateRows(param);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@Log("删除同步")
|
||||||
public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
public ResponseEntity<Object> delete(@RequestBody Long[] ids) {
|
||||||
if (ids.length > 0) {
|
if (ids.length > 0) {
|
||||||
mappingsService.removeByIds(Arrays.asList(ids));
|
mappingsService.removeByIds(Arrays.asList(ids));
|
||||||
@@ -95,6 +101,7 @@ public class BmExternalFieldMappingController {
|
|||||||
return new ResponseEntity<>(mappingsService.getExistTableName(), HttpStatus.OK);
|
return new ResponseEntity<>(mappingsService.getExistTableName(), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@PostMapping("/syncAnalyse")
|
@PostMapping("/syncAnalyse")
|
||||||
|
@Log("同步测试")
|
||||||
public ResponseEntity<Object> syncAnalyse(@RequestBody JSONObject form){
|
public ResponseEntity<Object> syncAnalyse(@RequestBody JSONObject form){
|
||||||
String fromType=form.getString("local_table_name");
|
String fromType=form.getString("local_table_name");
|
||||||
JSONArray formMapping = new JSONArray();
|
JSONArray formMapping = new JSONArray();
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ package org.nl.wms.sync_manage.controller.form_mapping;
|
|||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import org.nl.common.TableDataInfo;
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.anno.Log;
|
||||||
import org.nl.common.domain.entity.PageQuery;
|
import org.nl.common.domain.entity.PageQuery;
|
||||||
import org.nl.common.domain.exception.BadRequestException;
|
import org.nl.common.domain.exception.BadRequestException;
|
||||||
import org.nl.common.utils.FileUtil;
|
import org.nl.common.utils.FileUtil;
|
||||||
@@ -67,16 +68,19 @@ public class SyncFormMappingController {
|
|||||||
return new ResponseEntity<>(TableDataInfo.build(iSyncFormMappingService.page(page.build(), query.build())), HttpStatus.OK);
|
return new ResponseEntity<>(TableDataInfo.build(iSyncFormMappingService.page(page.build(), query.build())), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@PostMapping("/create")
|
@PostMapping("/create")
|
||||||
|
@Log("创建表同步配置")
|
||||||
public ResponseEntity<Object> create(@RequestBody JSONObject param) {
|
public ResponseEntity<Object> create(@RequestBody JSONObject param) {
|
||||||
iSyncFormMappingService.saveSyncMapping(param);
|
iSyncFormMappingService.saveSyncMapping(param);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@PostMapping("/update")
|
@PostMapping("/update")
|
||||||
|
@Log("修改表同步配置")
|
||||||
public ResponseEntity<Object> update(@RequestBody JSONObject param) {
|
public ResponseEntity<Object> update(@RequestBody JSONObject param) {
|
||||||
iSyncFormMappingService.saveSyncMapping(param);
|
iSyncFormMappingService.saveSyncMapping(param);
|
||||||
return new ResponseEntity<>(HttpStatus.OK);
|
return new ResponseEntity<>(HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@DeleteMapping
|
@DeleteMapping
|
||||||
|
@Log("删除表同步配置")
|
||||||
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
public ResponseEntity<Object> delete(@RequestBody String[] ids) {
|
||||||
if (ids.length>0){
|
if (ids.length>0){
|
||||||
iSyncFormMappingService.removeByIds(Arrays.asList(ids));
|
iSyncFormMappingService.removeByIds(Arrays.asList(ids));
|
||||||
@@ -86,6 +90,7 @@ public class SyncFormMappingController {
|
|||||||
|
|
||||||
|
|
||||||
@PostMapping("/syncAnalyse")
|
@PostMapping("/syncAnalyse")
|
||||||
|
@Log("表同步测试")
|
||||||
public ResponseEntity<Object> syncAnalyse(@RequestBody JSONObject form){
|
public ResponseEntity<Object> syncAnalyse(@RequestBody JSONObject form){
|
||||||
//参数判读,参数解析,调用参数入库
|
//参数判读,参数解析,调用参数入库
|
||||||
Object analyseData = form.remove("analyseData");
|
Object analyseData = form.remove("analyseData");
|
||||||
|
|||||||
Reference in New Issue
Block a user