|
@ -86,19 +86,29 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<HomeBillCounts> getBillsCount() { |
|
|
public List<HomeBillCounts> getBillsCount() { |
|
|
List<HomeBillCounts> allCounts =easOutInBillMapper.getBillsCount(); |
|
|
Long receiptCount = 0L; |
|
|
HomeBillCounts allocations =new HomeBillCounts(); |
|
|
Long allocationCount = 0L; |
|
|
Long allocation =allocationBillMapper.getAllocationCount(""); |
|
|
List<HomeBillCounts> allCounts = easOutInBillMapper.getBillsCount(); |
|
|
allocations.setCounts(allocation.toString()); |
|
|
HomeBillCounts allocations = new HomeBillCounts(); |
|
|
allocations.setName(EasBillTypeEnum.DBQR.getName()); |
|
|
HomeBillCounts receipts = new HomeBillCounts(); |
|
|
allocations.setDjlx(EasBillTypeEnum.DBQR.getCode()); |
|
|
|
|
|
allocations.setYwlx(EasBillTypeEnum.DB.getCode()); |
|
|
|
|
|
HomeBillCounts receipts =new HomeBillCounts(); |
|
|
|
|
|
Long receipt = receiptBillMapper.receiptCounts(); |
|
|
|
|
|
receipts.setCounts(receipt.toString()); |
|
|
|
|
|
receipts.setName(EasBillTypeEnum.SHDJ.getName()); |
|
|
receipts.setName(EasBillTypeEnum.SHDJ.getName()); |
|
|
receipts.setDjlx(EasBillTypeEnum.SHDJ.getCode()); |
|
|
receipts.setDjlx(EasBillTypeEnum.SHDJ.getCode()); |
|
|
receipts.setYwlx(EasBillTypeEnum.SH.getCode()); |
|
|
receipts.setYwlx(EasBillTypeEnum.SH.getCode()); |
|
|
|
|
|
allocations.setName(EasBillTypeEnum.DBQR.getName()); |
|
|
|
|
|
allocations.setDjlx(EasBillTypeEnum.DBQR.getCode()); |
|
|
|
|
|
allocations.setYwlx(EasBillTypeEnum.DB.getCode()); |
|
|
|
|
|
receipts.setCounts(receiptCount.toString()); |
|
|
|
|
|
allocations.setCounts(allocationCount.toString()); |
|
|
|
|
|
try { |
|
|
|
|
|
//receiptCount = receiptBillMapper.receiptCounts();
|
|
|
|
|
|
//allocationCount = allocationBillMapper.getAllocationCount("");
|
|
|
|
|
|
//receipts.setCounts(receiptCount.toString());
|
|
|
|
|
|
//allocations.setCounts(allocationCount.toString());
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
allCounts.add(allocations); |
|
|
|
|
|
allCounts.add(receipts); |
|
|
|
|
|
return allCounts; |
|
|
|
|
|
} |
|
|
allCounts.add(allocations); |
|
|
allCounts.add(allocations); |
|
|
allCounts.add(receipts); |
|
|
allCounts.add(receipts); |
|
|
return allCounts; |
|
|
return allCounts; |
|
@ -159,10 +169,6 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 根据条件查询 |
|
|
* 根据条件查询 |
|
|
* |
|
|
* |
|
@ -564,7 +570,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
} else { |
|
|
} else { |
|
|
SrmMsgDto srmMsgDto; |
|
|
SrmMsgDto srmMsgDto; |
|
|
String billJson = com.alibaba.fastjson.JSON.toJSONString(bill, SerializerFeature.WriteMapNullValue); |
|
|
String billJson = com.alibaba.fastjson.JSON.toJSONString(bill, SerializerFeature.WriteMapNullValue); |
|
|
srmMsgDto = wmsToSrmService.sendWebPostData(billJson,1); |
|
|
srmMsgDto = wmsToSrmService.sendWebPostData(billJson, 1); |
|
|
if (srmMsgDto != null) { |
|
|
if (srmMsgDto != null) { |
|
|
if ("false".equals(srmMsgDto.getSuccess())) { |
|
|
if ("false".equals(srmMsgDto.getSuccess())) { |
|
|
throw new BadRequestException(srmMsgDto.getMessage()); |
|
|
throw new BadRequestException(srmMsgDto.getMessage()); |
|
@ -605,7 +611,7 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
for (EasOutInBillDto bill : bills) { |
|
|
for (EasOutInBillDto bill : bills) { |
|
|
try { |
|
|
try { |
|
|
String billJson = com.alibaba.fastjson.JSON.toJSONString(bill, SerializerFeature.WriteMapNullValue); |
|
|
String billJson = com.alibaba.fastjson.JSON.toJSONString(bill, SerializerFeature.WriteMapNullValue); |
|
|
wmsToSrmService.sendWebPostData(billJson,1); |
|
|
wmsToSrmService.sendWebPostData(billJson, 1); |
|
|
updateBills(bill); |
|
|
updateBills(bill); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("推送Eas单据失败,单据号为:[" + bill.getBillId() + "]异常原因:" + e.toString()); |
|
|
log.error("推送Eas单据失败,单据号为:[" + bill.getBillId() + "]异常原因:" + e.toString()); |
|
@ -620,9 +626,6 @@ public class EasOutInBillServiceImpl extends ServiceImpl<EasOutInBillMapper, Eas |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 多选删除 |
|
|
* 多选删除 |
|
|
* |
|
|
* |
|
|