|
@@ -1,7 +1,6 @@
|
|
|
package com.steerinfo.dil.controller;
|
|
|
|
|
|
import com.alibaba.druid.support.json.JSONUtils;
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.steerinfo.dil.feign.ColumnDataFeign;
|
|
|
import com.steerinfo.dil.feign.ESFeign;
|
|
|
import com.steerinfo.dil.feign.JoinFeign;
|
|
@@ -750,7 +749,9 @@ public class AmsSaleOrderController<RedisTemplate> extends BaseRESTfulController
|
|
|
@ApiModelProperty(value = "新增钢材销售订单")
|
|
|
@PostMapping("/addSteelSaleOrder")
|
|
|
public RESTfulResult addSteelSaleOrder(@RequestBody Map<String,Object> mapValue){
|
|
|
+ System.out.println("-----销售钢材界面录入-----" + new Date());
|
|
|
System.out.println(mapValue);
|
|
|
+ System.out.println("-----销售钢材界面录入-----" + new Date());
|
|
|
try {
|
|
|
// 成功
|
|
|
int result = amsSaleOrderService.addSteelSaleOrder(mapValue);
|
|
@@ -1595,9 +1596,9 @@ public class AmsSaleOrderController<RedisTemplate> extends BaseRESTfulController
|
|
|
public RESTfulResult addSteelSaleOrderList(@RequestBody List<Map<String,Object>> mapList) throws Exception {
|
|
|
int count = 0;
|
|
|
String saleOrderNo = null;
|
|
|
- System.out.println("------销售订单批量导入Excel导入-----");
|
|
|
+ System.out.println("------销售订单批量导入Excel导入-----" + new Date());
|
|
|
System.out.println(mapList);
|
|
|
- System.out.println("------销售订单批量导入Excel导入-----");
|
|
|
+ System.out.println("------销售订单批量导入Excel导入-----" + new Date());
|
|
|
try {
|
|
|
for (Map<String,Object> map:mapList
|
|
|
) {
|
|
@@ -1633,9 +1634,9 @@ public class AmsSaleOrderController<RedisTemplate> extends BaseRESTfulController
|
|
|
public RESTfulResult addUnloadSteelSaleOrderList(@RequestBody List<Map<String,Object>> mapList){
|
|
|
int count = 0;
|
|
|
String saleOrderNo = null;
|
|
|
- System.out.println("------销售订单批量导入Excel导入继续装-----");
|
|
|
+ System.out.println("------销售订单批量导入Excel导入继续装-----" + new Date());
|
|
|
System.out.println(mapList);
|
|
|
- System.out.println("------销售订单批量导入Excel导入继续装-----");
|
|
|
+ System.out.println("------销售订单批量导入Excel导入继续装-----" + new Date());
|
|
|
try {
|
|
|
for (Map<String,Object> map:mapList
|
|
|
) {
|
|
@@ -1689,29 +1690,7 @@ public class AmsSaleOrderController<RedisTemplate> extends BaseRESTfulController
|
|
|
@PostMapping("getMakeOrderDate")
|
|
|
public RESTfulResult getMakeOrderDate(@RequestBody(required = false) Map<String,Object> map) {
|
|
|
List <String> easPrimaryIds = amsSaleOrderService.getEasPrimaryIds(map);
|
|
|
- String easPrimaryList = "";
|
|
|
- for (String easPrimaryId :easPrimaryIds) {
|
|
|
- easPrimaryList = easPrimaryList + '\'' + easPrimaryId + '\'' + ',';
|
|
|
- }
|
|
|
- easPrimaryList = easPrimaryList.substring(0,easPrimaryList.length() - 1);
|
|
|
- ArrayList<String> easPrimaryList1 = new ArrayList<>();
|
|
|
- easPrimaryList1.add(easPrimaryList);
|
|
|
- System.out.println(easPrimaryList);
|
|
|
- Map<String,Object> totalMap = easFluMakeDateUtil.getTotalMap();
|
|
|
- Map<String, Object> input = new HashMap<>();
|
|
|
- input.put("defineSqlNumber","defineXSCKTime");
|
|
|
- input.put("defineSqlparams",easPrimaryList1);
|
|
|
- totalMap.put("input",input);
|
|
|
- totalMap.put("outerSystem","DG");
|
|
|
- JSONObject jsonObject = new JSONObject(totalMap);
|
|
|
- System.out.println(jsonObject);
|
|
|
- Map<String,Object> resultMap = joinFeign.deleteSaleOrderToEas(totalMap);
|
|
|
- String outPut = (String) resultMap.get("output");
|
|
|
-
|
|
|
- System.out.println(outPut);
|
|
|
- JSONObject jsonObject1 = new JSONObject(resultMap);
|
|
|
- System.out.println(jsonObject1);
|
|
|
- return success();
|
|
|
+ return success(easPrimaryIds);
|
|
|
|
|
|
}
|
|
|
|