|
@@ -91,19 +91,6 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
@Override
|
|
|
@Transactional
|
|
|
public String receiveTmsTruckWeightResultByDaGang(List<Map<String, Object>> mapList){
|
|
|
- try{
|
|
|
- new Thread( new Runnable() {
|
|
|
- public void run(){
|
|
|
- try {
|
|
|
- newFileTool.newFile(mapList.toString(),"计量传输物流实绩");
|
|
|
- } catch (IOException e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
- }
|
|
|
- }).start();
|
|
|
- }catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
//遍历列表
|
|
|
StringBuilder sb = new StringBuilder();
|
|
|
for (Map<String, Object> map : mapList) {
|
|
@@ -149,11 +136,19 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
JSONObject jsonObject = new JSONObject(map);
|
|
|
logger.info("计量信息:{}", jsonObject.toString());
|
|
|
System.out.println("---------------------------------" + new Date() + "新接收到的计量实绩" + "---------------------------------");
|
|
|
- //try {
|
|
|
- // newFileTool.newFile(jsonObject.toString(),"计量");
|
|
|
- //} catch (IOException e) {
|
|
|
- // e.printStackTrace();
|
|
|
- //}
|
|
|
+ try{
|
|
|
+ new Thread( new Runnable() {
|
|
|
+ public void run(){
|
|
|
+ try {
|
|
|
+ newFileTool.newFile(jsonObject.toString(),"计量传输物流实绩");
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).start();
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
if(map.get("flag") != null && map.get("flag").equals("GCXS")){
|
|
|
System.out.println("这是钢材销售");
|
|
|
TmstruckWeightResult tmstruckWeightResult = null;
|
|
@@ -725,6 +720,19 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
* @return
|
|
|
*/
|
|
|
public String linkageDeleteTransportOrder(List<Map<String, Object>> mapList) throws Exception{
|
|
|
+ try{
|
|
|
+ new Thread( new Runnable() {
|
|
|
+ public void run(){
|
|
|
+ try {
|
|
|
+ newFileTool.newFile(mapList.toString(),"计量-物流联动删单");
|
|
|
+ } catch (IOException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }).start();
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
//联动删除
|
|
|
for (Map<String, Object> map : mapList) {
|
|
|
String orderNumber = (String) map.get("orderNumber");
|
|
@@ -791,13 +799,14 @@ public class TmstruckWeightResultServiceImpl implements ITmstruckWeightResultSer
|
|
|
public String linkUpdateAPO(Map<String, Object> map, Integer orderType){
|
|
|
//如果等于1 则代表是需要变更采购订单号的订单
|
|
|
Map<String, Object> mesMap = tmstruckWeightResultMapper.getAPOMes(String.valueOf(map.get("ArrivalBillNo")));
|
|
|
-
|
|
|
if (mesMap == null){
|
|
|
return map.get("ArrivalBillNo") + "系统没有此订单号!失败";
|
|
|
}
|
|
|
mesMap.put("orderNumber", map.get("orderNumber"));
|
|
|
- if(orderType == 200){
|
|
|
- //20订单修改的表不一样呀
|
|
|
+ if(orderType == 20 || orderType == 15 || orderType == 16 || orderType == 23 || orderType == 24){
|
|
|
+ //20订单修改的表不一样呀,找寻该采购订单对应的最新需求id和计划id
|
|
|
+ BigDecimal planId = tmstruckWeightResultMapper.selectNewPlanId(mesMap);
|
|
|
+ mesMap.put("planId",planId);
|
|
|
tmstruckWeightResultMapper.updatePurchaseInwordAPOId(mesMap);
|
|
|
tmstruckWeightResultMapper.updateOmsTruckMaterialId(mesMap);
|
|
|
}else{
|