|
@@ -15,6 +15,7 @@ import org.jeecg.modules.documents.orderData.service.ISyOrderDataItemService;
|
|
|
import org.jeecg.modules.documents.orderData.service.ISyOrderDataService;
|
|
|
import org.jeecg.modules.documents.orderData.service.ISySOAndOMService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -84,7 +85,7 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
@AutoLog(value = "订单数据同步接口-新增")
|
|
|
@ApiOperation(value="订单数据同步接口-新增", notes="订单数据同步接口-新增")
|
|
|
@RequestMapping(value = "/addSOAndOM")
|
|
|
- public Result<?> addSOAndOM(List<SySOAndOM> sySOAndOM) {
|
|
|
+ public Result<?> addSOAndOM(@RequestBody List<SySOAndOM> sySOAndOM) {
|
|
|
//检查参数
|
|
|
if(sySOAndOM==null){
|
|
|
return Result.error("请不要保存错误数据!!!");
|
|
@@ -92,7 +93,7 @@ public class SySOAndOMController extends JeecgController<SySOAndOM, ISySOAndOMSe
|
|
|
//判断新增单据是否已入单证
|
|
|
Map<String,Object> columnMap = new HashMap<String,Object>();
|
|
|
columnMap.put("account",sySOAndOM.get(0).getAccount());
|
|
|
- columnMap.put("orderNumber",sySOAndOM.get(0).getOrderNumber());
|
|
|
+ columnMap.put("order_number",sySOAndOM.get(0).getOrderNumber());
|
|
|
List list = syOrderDataService.listByMap(columnMap);
|
|
|
if(list.size()>0){
|
|
|
return Result.error("同步单据已入单证!!!");
|