|
@@ -4,16 +4,16 @@ import com.warewms.common.utils.R;
|
|
import com.warewms.entity.erp.ErpBarCodeList;
|
|
import com.warewms.entity.erp.ErpBarCodeList;
|
|
import com.warewms.entity.erp.ErpOrderList;
|
|
import com.warewms.entity.erp.ErpOrderList;
|
|
import com.warewms.service.impl.ErpSyncServiceImpl;
|
|
import com.warewms.service.impl.ErpSyncServiceImpl;
|
|
|
|
+import io.swagger.annotations.Api;
|
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
|
|
+@Api("ERP测试")
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/erp/erpWriteData")
|
|
@RequestMapping("/erp/erpWriteData")
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -22,9 +22,14 @@ public class ErpWriteBackController {
|
|
@Autowired
|
|
@Autowired
|
|
private ErpSyncServiceImpl erpSyncService;
|
|
private ErpSyncServiceImpl erpSyncService;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * ERP同步表
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@PostMapping("erpSync")
|
|
@PostMapping("erpSync")
|
|
- public R erpSync(){
|
|
|
|
|
|
+ public R erpSync() {
|
|
erpSyncService.erpSync();
|
|
erpSyncService.erpSync();
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
@@ -32,20 +37,20 @@ public class ErpWriteBackController {
|
|
/**
|
|
/**
|
|
* 中间表写入数据(叉车扫描条码记录表)
|
|
* 中间表写入数据(叉车扫描条码记录表)
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("中间表写入数据(叉车扫描条码记录表)")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@PostMapping("writeData")
|
|
@PostMapping("writeData")
|
|
- public R writeData(@RequestParam List<ErpBarCodeList> erpBarCodeListList){
|
|
|
|
- erpSyncService.writeBack(erpBarCodeListList);
|
|
|
|
- return R.ok();
|
|
|
|
|
|
+ public String writeData(@RequestBody List<ErpBarCodeList> erpBarCodeListList) {
|
|
|
|
+ return erpSyncService.writeBack(erpBarCodeListList);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 中间表修改数据(需求单扫描状态修改)
|
|
* 中间表修改数据(需求单扫描状态修改)
|
|
*/
|
|
*/
|
|
|
|
+ @ApiOperation("中间表修改数据(需求单扫描状态修改)")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
- @PostMapping("updaOrderStatus")
|
|
|
|
- public R updaOrderStatus(@RequestParam ErpOrderList erpOrderList){
|
|
|
|
- erpSyncService.updaErpStatus(erpOrderList);
|
|
|
|
- return R.ok();
|
|
|
|
|
|
+ @PostMapping("updateOrderStatus")
|
|
|
|
+ public String updateOrderStatus(@RequestBody ErpOrderList erpOrderList) {
|
|
|
|
+ return erpSyncService.updateErpStatus(erpOrderList);
|
|
}
|
|
}
|
|
}
|
|
}
|