wms费用科目修改;
This commit is contained in:
@@ -250,4 +250,7 @@ public class UserPo {
|
|||||||
|
|
||||||
@ApiModelProperty("备注")
|
@ApiModelProperty("备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
}
|
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
}
|
||||||
+200
-98
@@ -129,111 +129,137 @@ public class ContractManageApplicationService {
|
|||||||
return contractManageDomainService.queryList(contractManageDO);
|
return contractManageDomainService.queryList(contractManageDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BigDecimal getAmount(List<SubjectAndPriceReturn> subjectAndPriceReturnList) {
|
// public BigDecimal getAmount(List<SubjectAndPriceReturn> subjectAndPriceReturnList) {
|
||||||
|
// if (subjectAndPriceReturnList == null || subjectAndPriceReturnList.size() == 1) {
|
||||||
|
// SubjectAndPriceReturn subjectAndPriceReturn = subjectAndPriceReturnList.get(0);
|
||||||
|
// Long billingRulesId = subjectAndPriceReturn.getBillingRulesId();
|
||||||
|
// String name = subjectAndPriceReturn.getName();
|
||||||
|
// BillingRulesPO billingRule = contractManageDetailMapper.getBillingRules(billingRulesId);
|
||||||
|
// List<BillingParamsPO> billingParams = contractManageDetailMapper.getBillingParams(billingRulesId);
|
||||||
|
// if (billingParams != null && billingParams.size() > 0) {
|
||||||
|
// BillingParamsPO billingParam = billingParams.get(0);
|
||||||
|
// String billingParamsJson = billingParam.getBillingParamsJson();
|
||||||
|
// String preSetRules = billingParam.getPreSetRules();
|
||||||
|
// List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {
|
||||||
|
// });
|
||||||
|
// List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {
|
||||||
|
// });
|
||||||
|
// if (billingParamsList != null && billingParamsList.size() ==2) {
|
||||||
|
// Map<String, Object> targetMap = billingParamsList.stream()
|
||||||
|
// .filter(map -> name.equals(map.get("fieldsName"))) // 关键匹配条件
|
||||||
|
// .findFirst() // 取第一个
|
||||||
|
// .orElse(null); // 没找到返回null
|
||||||
|
// String chargingId = (String) targetMap.get("chargingId");
|
||||||
|
// Integer sort = (Integer) targetMap.get("sort");
|
||||||
|
// Map<String, Object> reles = preSetRulesList.get(0);
|
||||||
|
// String price = (String) reles.get("fields"+sort);
|
||||||
|
// String billingFormula = billingRule.getBillingFormula();
|
||||||
|
// billingFormula = billingFormula.replace(chargingId, price);
|
||||||
|
// //需要判断阶梯类型进行获取各计费标志的取值,拼接公式
|
||||||
|
// List<BillingParamsDetailDTO> billingParamsEntityList = JSON.parseArray(billingParamsJson, BillingParamsDetailDTO.class);
|
||||||
|
// //将计费参数实体分成两组,即:固定参数和条件参数
|
||||||
|
// List<BillingParamsDetailDTO> fixedParamsEntityList = billingParamsEntityList.stream().filter(item -> ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
||||||
|
// List<BillingParamsDetailDTO> ladderParamsEntityList = billingParamsEntityList.stream().filter(item -> !ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
||||||
|
// if (fixedParamsEntityList != null && fixedParamsEntityList.size() > 0) {
|
||||||
|
// if (subjectAndPriceReturn.getNum() != null) {
|
||||||
|
// for (BillingParamsDetailDTO ladderParamsEntity : fixedParamsEntityList) {
|
||||||
|
// String chargingId1 = ladderParamsEntity.getChargingId();
|
||||||
|
// if (chargingId1 != chargingId) {
|
||||||
|
// billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return DynamicCalculationUtil.calculate(billingFormula);
|
||||||
|
// } else {
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// } else {
|
||||||
|
// SubjectAndPriceReturn aReturn = subjectAndPriceReturnList.get(0);
|
||||||
|
// Long id = aReturn.getBillingRulesId();
|
||||||
|
// BillingRulesPO Rule = contractManageDetailMapper.getBillingRules(id);
|
||||||
|
// String billingFormula = Rule.getBillingFormula();
|
||||||
|
// for (SubjectAndPriceReturn subjectAndPriceReturn : subjectAndPriceReturnList) {
|
||||||
|
// Long billingRulesId = subjectAndPriceReturn.getBillingRulesId();
|
||||||
|
// String name = subjectAndPriceReturn.getName();
|
||||||
|
// BillingRulesPO billingRule = contractManageDetailMapper.getBillingRules(billingRulesId);
|
||||||
|
// List<BillingParamsPO> billingParams = contractManageDetailMapper.getBillingParams(billingRulesId);
|
||||||
|
// if (billingParams != null && billingParams.size() > 0) {
|
||||||
|
// BillingParamsPO billingParam = billingParams.get(0);
|
||||||
|
// String billingParamsJson = billingParam.getBillingParamsJson();
|
||||||
|
// String preSetRules = billingParam.getPreSetRules();
|
||||||
|
// List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {
|
||||||
|
// });
|
||||||
|
// List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {
|
||||||
|
// });
|
||||||
|
// if (billingParamsList != null && billingParamsList.size() ==2) {
|
||||||
|
// } else {
|
||||||
|
// Map<String, Object> targetMap = billingParamsList.stream()
|
||||||
|
// .filter(map -> name.equals(map.get("fieldsName"))) // 关键匹配条件
|
||||||
|
// .findFirst() // 取第一个
|
||||||
|
// .orElse(null); // 没找到返回null
|
||||||
|
// String chargingId = (String) targetMap.get("chargingId");
|
||||||
|
// Integer sort = (Integer) targetMap.get("sort");
|
||||||
|
// Map<String, Object> reles = preSetRulesList.get(0);
|
||||||
|
// String price = (String) reles.get("fields"+sort);
|
||||||
|
// //String billingFormula = billingRule.getBillingFormula();
|
||||||
|
// billingFormula = billingFormula.replace(chargingId, price);
|
||||||
|
// //需要判断阶梯类型进行获取各计费标志的取值,拼接公式
|
||||||
|
// List<BillingParamsDetailDTO> billingParamsEntityList = JSON.parseArray(billingParamsJson, BillingParamsDetailDTO.class);
|
||||||
|
// //将计费参数实体分成两组,即:固定参数和条件参数
|
||||||
|
// List<BillingParamsDetailDTO> fixedParamsEntityList = billingParamsEntityList.stream().filter(item -> ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
||||||
|
// List<BillingParamsDetailDTO> ladderParamsEntityList = billingParamsEntityList.stream().filter(item -> !ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
||||||
|
// if (fixedParamsEntityList != null && fixedParamsEntityList.size() > 0) {
|
||||||
|
// if (subjectAndPriceReturn.getNum() != null) {
|
||||||
|
// for (Map<String, Object> ladderParamsEntity : billingParamsList) {
|
||||||
|
// String chargingId1 = (String) ladderParamsEntity.get("chargingId");
|
||||||
|
// String fieldsName = (String) ladderParamsEntity.get("fieldsName");
|
||||||
|
// if ("纸箱贴标单价".equals(name)) {
|
||||||
|
// if ("纸箱数量".equals(fieldsName)) {
|
||||||
|
// billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
||||||
|
// }
|
||||||
|
// } else if ("木箱贴标单价".equals(name)){
|
||||||
|
// if ("木箱数量".equals(fieldsName)) {
|
||||||
|
// billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// return DynamicCalculationUtil.calculate(billingFormula);
|
||||||
|
// }
|
||||||
|
// return BigDecimal.ZERO;
|
||||||
|
// }
|
||||||
|
public Map<String,Object> getAmount(List<SubjectAndPriceReturn> subjectAndPriceReturnList) {
|
||||||
|
Map<String,Object> map = new HashMap<>();
|
||||||
if (subjectAndPriceReturnList == null || subjectAndPriceReturnList.size() == 1) {
|
if (subjectAndPriceReturnList == null || subjectAndPriceReturnList.size() == 1) {
|
||||||
SubjectAndPriceReturn subjectAndPriceReturn = subjectAndPriceReturnList.get(0);
|
|
||||||
Long billingRulesId = subjectAndPriceReturn.getBillingRulesId();
|
|
||||||
String name = subjectAndPriceReturn.getName();
|
|
||||||
BillingRulesPO billingRule = contractManageDetailMapper.getBillingRules(billingRulesId);
|
|
||||||
List<BillingParamsPO> billingParams = contractManageDetailMapper.getBillingParams(billingRulesId);
|
|
||||||
if (billingParams != null && billingParams.size() > 0) {
|
|
||||||
BillingParamsPO billingParam = billingParams.get(0);
|
|
||||||
String billingParamsJson = billingParam.getBillingParamsJson();
|
|
||||||
String preSetRules = billingParam.getPreSetRules();
|
|
||||||
List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {
|
|
||||||
});
|
|
||||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {
|
|
||||||
});
|
|
||||||
if (billingParamsList != null && billingParamsList.size() ==2) {
|
|
||||||
Map<String, Object> targetMap = billingParamsList.stream()
|
|
||||||
.filter(map -> name.equals(map.get("fieldsName"))) // 关键匹配条件
|
|
||||||
.findFirst() // 取第一个
|
|
||||||
.orElse(null); // 没找到返回null
|
|
||||||
String chargingId = (String) targetMap.get("chargingId");
|
|
||||||
Integer sort = (Integer) targetMap.get("sort");
|
|
||||||
Map<String, Object> reles = preSetRulesList.get(0);
|
|
||||||
String price = (String) reles.get("fields"+sort);
|
|
||||||
String billingFormula = billingRule.getBillingFormula();
|
|
||||||
billingFormula = billingFormula.replace(chargingId, price);
|
|
||||||
//需要判断阶梯类型进行获取各计费标志的取值,拼接公式
|
|
||||||
List<BillingParamsDetailDTO> billingParamsEntityList = JSON.parseArray(billingParamsJson, BillingParamsDetailDTO.class);
|
|
||||||
//将计费参数实体分成两组,即:固定参数和条件参数
|
|
||||||
List<BillingParamsDetailDTO> fixedParamsEntityList = billingParamsEntityList.stream().filter(item -> ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
|
||||||
List<BillingParamsDetailDTO> ladderParamsEntityList = billingParamsEntityList.stream().filter(item -> !ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
|
||||||
if (fixedParamsEntityList != null && fixedParamsEntityList.size() > 0) {
|
|
||||||
if (subjectAndPriceReturn.getNum() != null) {
|
|
||||||
for (BillingParamsDetailDTO ladderParamsEntity : fixedParamsEntityList) {
|
|
||||||
String chargingId1 = ladderParamsEntity.getChargingId();
|
|
||||||
if (chargingId1 != chargingId) {
|
|
||||||
billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return DynamicCalculationUtil.calculate(billingFormula);
|
|
||||||
} else {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
SubjectAndPriceReturn aReturn = subjectAndPriceReturnList.get(0);
|
SubjectAndPriceReturn aReturn = subjectAndPriceReturnList.get(0);
|
||||||
Long id = aReturn.getBillingRulesId();
|
Long id = aReturn.getBillingRulesId();
|
||||||
BillingRulesPO Rule = contractManageDetailMapper.getBillingRules(id);
|
BillingRulesPO Rule = contractManageDetailMapper.getBillingRules(id);
|
||||||
String billingFormula = Rule.getBillingFormula();
|
String billingFormula = Rule.getBillingFormula();
|
||||||
for (SubjectAndPriceReturn subjectAndPriceReturn : subjectAndPriceReturnList) {
|
for (SubjectAndPriceReturn subjectAndPriceReturn : subjectAndPriceReturnList) {
|
||||||
Long billingRulesId = subjectAndPriceReturn.getBillingRulesId();
|
BigDecimal price = subjectAndPriceReturn.getPrice();
|
||||||
String name = subjectAndPriceReturn.getName();
|
BigDecimal num = subjectAndPriceReturn.getNum();
|
||||||
BillingRulesPO billingRule = contractManageDetailMapper.getBillingRules(billingRulesId);
|
String chargingId = subjectAndPriceReturn.getChargingId();
|
||||||
List<BillingParamsPO> billingParams = contractManageDetailMapper.getBillingParams(billingRulesId);
|
Integer isFee = subjectAndPriceReturn.getIsFee();
|
||||||
if (billingParams != null && billingParams.size() > 0) {
|
if (isFee != null && isFee == 1) {
|
||||||
BillingParamsPO billingParam = billingParams.get(0);
|
billingFormula = billingFormula.replace(chargingId, price.toEngineeringString());
|
||||||
String billingParamsJson = billingParam.getBillingParamsJson();
|
} else {
|
||||||
String preSetRules = billingParam.getPreSetRules();
|
billingFormula = billingFormula.replace(chargingId, num.toEngineeringString());
|
||||||
List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {
|
|
||||||
});
|
|
||||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {
|
|
||||||
});
|
|
||||||
if (billingParamsList != null && billingParamsList.size() ==2) {
|
|
||||||
} else {
|
|
||||||
Map<String, Object> targetMap = billingParamsList.stream()
|
|
||||||
.filter(map -> name.equals(map.get("fieldsName"))) // 关键匹配条件
|
|
||||||
.findFirst() // 取第一个
|
|
||||||
.orElse(null); // 没找到返回null
|
|
||||||
String chargingId = (String) targetMap.get("chargingId");
|
|
||||||
Integer sort = (Integer) targetMap.get("sort");
|
|
||||||
Map<String, Object> reles = preSetRulesList.get(0);
|
|
||||||
String price = (String) reles.get("fields"+sort);
|
|
||||||
//String billingFormula = billingRule.getBillingFormula();
|
|
||||||
billingFormula = billingFormula.replace(chargingId, price);
|
|
||||||
//需要判断阶梯类型进行获取各计费标志的取值,拼接公式
|
|
||||||
List<BillingParamsDetailDTO> billingParamsEntityList = JSON.parseArray(billingParamsJson, BillingParamsDetailDTO.class);
|
|
||||||
//将计费参数实体分成两组,即:固定参数和条件参数
|
|
||||||
List<BillingParamsDetailDTO> fixedParamsEntityList = billingParamsEntityList.stream().filter(item -> ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
|
||||||
List<BillingParamsDetailDTO> ladderParamsEntityList = billingParamsEntityList.stream().filter(item -> !ObjectUtil.equal(item.getLadderType(),1)).collect(Collectors.toList());
|
|
||||||
if (fixedParamsEntityList != null && fixedParamsEntityList.size() > 0) {
|
|
||||||
if (subjectAndPriceReturn.getNum() != null) {
|
|
||||||
for (Map<String, Object> ladderParamsEntity : billingParamsList) {
|
|
||||||
String chargingId1 = (String) ladderParamsEntity.get("chargingId");
|
|
||||||
String fieldsName = (String) ladderParamsEntity.get("fieldsName");
|
|
||||||
if ("纸箱贴标单价".equals(name)) {
|
|
||||||
if ("纸箱数量".equals(fieldsName)) {
|
|
||||||
billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
|
||||||
}
|
|
||||||
} else if ("木箱贴标单价".equals(name)){
|
|
||||||
if ("木箱数量".equals(fieldsName)) {
|
|
||||||
billingFormula = billingFormula.replace(chargingId1, subjectAndPriceReturn.getNum().toEngineeringString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return DynamicCalculationUtil.calculate(billingFormula);
|
BigDecimal calculate = DynamicCalculationUtil.calculate(billingFormula);
|
||||||
|
map.put("amount", calculate);
|
||||||
|
map.put("billingRulesId", id);
|
||||||
|
return map;
|
||||||
}
|
}
|
||||||
return BigDecimal.ZERO;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<SubjectAndPriceReturn> getSubjectAndPrice(SubjectAndPriceDTO contractManageDTO) {
|
public List<SubjectAndPriceReturn> getSubjectAndPrice(SubjectAndPriceDTO contractManageDTO) {
|
||||||
@@ -274,14 +300,16 @@ public class ContractManageApplicationService {
|
|||||||
BillingParamsPO billingParam = billingParams.get(0);
|
BillingParamsPO billingParam = billingParams.get(0);
|
||||||
String billingParamsJson = billingParam.getBillingParamsJson();
|
String billingParamsJson = billingParam.getBillingParamsJson();
|
||||||
String preSetRules = billingParam.getPreSetRules();
|
String preSetRules = billingParam.getPreSetRules();
|
||||||
|
Long billingParamsId = billingParam.getBillingParamsId();
|
||||||
List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {});
|
List<Map<String, Object>> preSetRulesList = JSON.parseObject(preSetRules, new TypeReference<List<Map<String, Object>>>() {});
|
||||||
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {});
|
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {});
|
||||||
Map<String, Object> stringObjectMap1 = preSetRulesList.get(0);
|
Map<String, Object> stringObjectMap1 = preSetRulesList.get(0);
|
||||||
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||||
String fieldsName = (String) stringObjectMap.get("fieldsName");
|
String fieldsName = (String) stringObjectMap.get("fieldsName");
|
||||||
if (fieldsName != null && ("装卸费单价".equals(fieldsName) ||
|
Integer isShow = (Integer) stringObjectMap.get("isShow");
|
||||||
"纸箱贴标单价".equals(fieldsName)||"木箱贴标单价".equals(fieldsName)
|
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||||
|| "进出仓操作费单价".equals(fieldsName))) {
|
Integer isPush = (Integer) stringObjectMap.get("isPush");
|
||||||
|
if (isFee==1) {
|
||||||
Integer sort = (Integer) stringObjectMap.get("sort");
|
Integer sort = (Integer) stringObjectMap.get("sort");
|
||||||
String chargingId = (String) stringObjectMap.get("chargingId");
|
String chargingId = (String) stringObjectMap.get("chargingId");
|
||||||
String fields = (String) stringObjectMap.get("fields");
|
String fields = (String) stringObjectMap.get("fields");
|
||||||
@@ -292,6 +320,80 @@ public class ContractManageApplicationService {
|
|||||||
subjectAndPriceReturn.setChargingId(chargingId);
|
subjectAndPriceReturn.setChargingId(chargingId);
|
||||||
subjectAndPriceReturn.setFields(fields);
|
subjectAndPriceReturn.setFields(fields);
|
||||||
subjectAndPriceReturn.setBillingRulesId(billingRulesId);
|
subjectAndPriceReturn.setBillingRulesId(billingRulesId);
|
||||||
|
subjectAndPriceReturn.setIsShow(isShow);
|
||||||
|
subjectAndPriceReturn.setIsFee(isFee);
|
||||||
|
subjectAndPriceReturn.setIsPush(isPush);
|
||||||
|
subjectAndPriceReturn.setRulesId(billingParamsId);
|
||||||
|
result.add(subjectAndPriceReturn);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<SubjectAndPriceReturn> getSubject(SubjectAndPriceDTO contractManageDTO) {
|
||||||
|
List<SubjectAndPriceReturn> result = new ArrayList<>();
|
||||||
|
Long settlementCustomersId = contractManageDTO.getSettlementCustomersId();
|
||||||
|
Long organizationId = contractManageDTO.getOrganizationId();
|
||||||
|
String sunjectCode = contractManageDTO.getSubjectCode();
|
||||||
|
Long topOrganizationId = contractManageDTO.getTopOrganizationId();
|
||||||
|
List<ContractManage> UserContractManages = contractManageMapper.selectList(new LambdaQueryWrapper<ContractManage>()
|
||||||
|
.eq(ContractManage::getSettlementCustomersId, settlementCustomersId)
|
||||||
|
.eq(ContractManage::getDelFlag, 1)
|
||||||
|
.eq(ContractManage::getOrganizationId, organizationId)
|
||||||
|
.eq(ContractManage::getTopOrganizationId, topOrganizationId)
|
||||||
|
.eq(ContractManage::getCommonContractFlag, 2));
|
||||||
|
if (UserContractManages != null && UserContractManages.size() > 0) {
|
||||||
|
}else{
|
||||||
|
List<ContractManage> commonContractManages = contractManageMapper.selectList(new LambdaQueryWrapper<ContractManage>()
|
||||||
|
.eq(ContractManage::getDelFlag, 1)
|
||||||
|
.eq(ContractManage::getOrganizationId, organizationId)
|
||||||
|
.eq(ContractManage::getTopOrganizationId, topOrganizationId)
|
||||||
|
.eq(ContractManage::getCommonContractFlag, 1));
|
||||||
|
if (commonContractManages != null && commonContractManages.size() > 0) {
|
||||||
|
ContractManage contractManage = commonContractManages.get(0);
|
||||||
|
Long contractManageId = contractManage.getContractManageId();
|
||||||
|
List<ContractManageDetail> contractManageDetails = contractManageDetailMapper.selectList(new LambdaQueryWrapper<ContractManageDetail>()
|
||||||
|
.eq(ContractManageDetail::getContractManageId, contractManageId)
|
||||||
|
.eq(ContractManageDetail::getDelFlag, 1));
|
||||||
|
if (contractManageDetails != null && contractManageDetails.size() > 0) {
|
||||||
|
for (ContractManageDetail contractManageDetail : contractManageDetails) {
|
||||||
|
String code = contractManageDetail.getFirstSubjectCode();
|
||||||
|
if (sunjectCode.equals(code)) {
|
||||||
|
Long accountingStrategyId = contractManageDetail.getAccountingStrategyId();
|
||||||
|
BillingRulesPO billingRule = contractManageDetailMapper.getBillingRules(accountingStrategyId);
|
||||||
|
if (billingRule != null) {
|
||||||
|
Long billingRulesId = billingRule.getBillingRulesId();
|
||||||
|
List<BillingParamsPO> billingParams = contractManageDetailMapper.getBillingParams(billingRulesId);
|
||||||
|
if (billingParams != null && billingParams.size() > 0) {
|
||||||
|
BillingParamsPO billingParam = billingParams.get(0);
|
||||||
|
String billingParamsJson = billingParam.getBillingParamsJson();
|
||||||
|
String preSetRules = billingParam.getPreSetRules();
|
||||||
|
Long billingParamsId = billingParam.getBillingParamsId();
|
||||||
|
List<Map<String, Object>> billingParamsList = JSON.parseObject(billingParamsJson, new TypeReference<List<Map<String, Object>>>() {});
|
||||||
|
for (Map<String, Object> stringObjectMap : billingParamsList) {
|
||||||
|
String fieldsName = (String) stringObjectMap.get("fieldsName");
|
||||||
|
Integer isShow = (Integer) stringObjectMap.get("isShow");
|
||||||
|
Integer isFee = (Integer) stringObjectMap.get("isFee");
|
||||||
|
Integer isPush = (Integer) stringObjectMap.get("isPush");
|
||||||
|
if (isShow==1) {
|
||||||
|
String chargingId = (String) stringObjectMap.get("chargingId");
|
||||||
|
String fields = (String) stringObjectMap.get("fields");
|
||||||
|
SubjectAndPriceReturn subjectAndPriceReturn = new SubjectAndPriceReturn();
|
||||||
|
subjectAndPriceReturn.setName(fieldsName);
|
||||||
|
subjectAndPriceReturn.setChargingId(chargingId);
|
||||||
|
subjectAndPriceReturn.setFields(fields);
|
||||||
|
subjectAndPriceReturn.setBillingRulesId(billingRulesId);
|
||||||
|
subjectAndPriceReturn.setIsShow(isShow);
|
||||||
|
subjectAndPriceReturn.setIsFee(isFee);
|
||||||
|
subjectAndPriceReturn.setIsPush(isPush);
|
||||||
|
subjectAndPriceReturn.setRulesId(billingParamsId);
|
||||||
result.add(subjectAndPriceReturn);
|
result.add(subjectAndPriceReturn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-1
@@ -1,15 +1,23 @@
|
|||||||
package com.mhd.basic.interfaces.dto.contractManage;
|
package com.mhd.basic.interfaces.dto.contractManage;
|
||||||
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class SubjectAndPriceReturn {
|
public class SubjectAndPriceReturn {
|
||||||
|
|
||||||
|
private Long rulesId;
|
||||||
private String name;
|
private String name;
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
private String chargingId;
|
private String chargingId;
|
||||||
private Long billingRulesId;
|
private Long billingRulesId;
|
||||||
private String fields;
|
private String fields;
|
||||||
private BigDecimal num;
|
private BigDecimal num;
|
||||||
|
private Integer isShow;
|
||||||
|
private Integer isPush;
|
||||||
|
private Integer isFee;
|
||||||
|
private String subjectCode;
|
||||||
|
private String subjectName;
|
||||||
|
private String serviceItemsCode;
|
||||||
|
private String serviceItemsName;
|
||||||
}
|
}
|
||||||
+11
@@ -59,6 +59,17 @@ public class ContractManageApi extends BaseController{
|
|||||||
return AjaxResult.success(contractManageApplicationService.getSubjectAndPrice(subjectAndPriceDTO));
|
return AjaxResult.success(contractManageApplicationService.getSubjectAndPrice(subjectAndPriceDTO));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取科目和单价
|
||||||
|
*/
|
||||||
|
@ApiOperation("获取需要显示的计费字段")
|
||||||
|
@GetMapping("/getSubject")
|
||||||
|
public AjaxResult getSubject(SubjectAndPriceDTO subjectAndPriceDTO)
|
||||||
|
{
|
||||||
|
//转换实体
|
||||||
|
return AjaxResult.success(contractManageApplicationService.getSubject(subjectAndPriceDTO));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取科目和单价
|
* 获取科目和单价
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -79,8 +79,9 @@
|
|||||||
a.payment_bank,
|
a.payment_bank,
|
||||||
a.payment_account,
|
a.payment_account,
|
||||||
a.invoice_title,
|
a.invoice_title,
|
||||||
a.tax_number
|
a.tax_number,
|
||||||
FROM "USER" a
|
b.SETTLEMENT_CURRENCY
|
||||||
|
FROM "USER" a left join USER_SHIPPER b on a.user_id = b.user_id
|
||||||
where a.del_flag = 1
|
where a.del_flag = 1
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|||||||
+1
@@ -1023,6 +1023,7 @@ public class BusinessDocumentApplicationService {
|
|||||||
businessDocumentDO.setTopOrganizationId(businessDocumentDO.getTopOrganizationId());
|
businessDocumentDO.setTopOrganizationId(businessDocumentDO.getTopOrganizationId());
|
||||||
businessDocumentDO.setOrganizationId(businessDocumentDO.getOrganizationId());
|
businessDocumentDO.setOrganizationId(businessDocumentDO.getOrganizationId());
|
||||||
businessDocumentDO.setOrganizationName(businessDocumentDO.getOrganizationName());
|
businessDocumentDO.setOrganizationName(businessDocumentDO.getOrganizationName());
|
||||||
|
businessDocumentDO.setOriginalBusinessNum(businessDocumentDO.getOriginalBusinessNum());
|
||||||
//调用费用计算,计算费用金额进行保存
|
//调用费用计算,计算费用金额进行保存
|
||||||
// CostCalculationDTO costCalculationDTO = new CostCalculationDTO();
|
// CostCalculationDTO costCalculationDTO = new CostCalculationDTO();
|
||||||
// costCalculationDTO.setOriginalBusinessNum(businessDocumentDO.getOriginalBusinessNum());
|
// costCalculationDTO.setOriginalBusinessNum(businessDocumentDO.getOriginalBusinessNum());
|
||||||
|
|||||||
+3
-1
@@ -268,11 +268,13 @@ public class HandoverTaskOrderApplicationService {
|
|||||||
// 1. PDA上传图片插入交接作业单
|
// 1. PDA上传图片插入交接作业单
|
||||||
handoverTaskOrderService.update(new LambdaUpdateWrapper<HandoverTaskOrder>()
|
handoverTaskOrderService.update(new LambdaUpdateWrapper<HandoverTaskOrder>()
|
||||||
.eq(HandoverTaskOrder::getOrderNumber, orderNumber)
|
.eq(HandoverTaskOrder::getOrderNumber, orderNumber)
|
||||||
|
.set(HandoverTaskOrder::getBillingJson, handoverTaskOrderDO.getBillingJson())
|
||||||
.set(HandoverTaskOrder::getPictureApp, handoverTaskOrderDO.getPictureApp()));
|
.set(HandoverTaskOrder::getPictureApp, handoverTaskOrderDO.getPictureApp()));
|
||||||
// 2. PDA上传图片插入出库管理,状态改为已出库
|
// 2. PDA上传图片插入出库管理,状态改为已出库
|
||||||
stockOutOrderService.update(new LambdaUpdateWrapper<StockOutOrder>()
|
stockOutOrderService.update(new LambdaUpdateWrapper<StockOutOrder>()
|
||||||
.eq(StockOutOrder::getOutOrderNumber, orderNumber)
|
.eq(StockOutOrder::getOutOrderNumber, orderNumber)
|
||||||
.set(StockOutOrder::getStatus, "9")
|
.set(StockOutOrder::getStatus, "9")
|
||||||
|
.set(StockOutOrder::getBillingJson, handoverTaskOrderDO.getBillingJson())
|
||||||
.set(StockOutOrder::getPictureApp, handoverTaskOrderDO.getPictureApp()));
|
.set(StockOutOrder::getPictureApp, handoverTaskOrderDO.getPictureApp()));
|
||||||
// 3. 参考PC端完成交接:根据orderNumber查询交接单ID,执行库存扣减+交接状态更新
|
// 3. 参考PC端完成交接:根据orderNumber查询交接单ID,执行库存扣减+交接状态更新
|
||||||
List<HandoverTaskOrder> handoverList = handoverTaskOrderService.list(
|
List<HandoverTaskOrder> handoverList = handoverTaskOrderService.list(
|
||||||
@@ -290,4 +292,4 @@ public class HandoverTaskOrderApplicationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+196
-4
@@ -4,6 +4,10 @@ import cn.hutool.core.util.ObjectUtil;
|
|||||||
import cn.hutool.json.JSONUtil;
|
import cn.hutool.json.JSONUtil;
|
||||||
import com.alibaba.fastjson.JSON;
|
import com.alibaba.fastjson.JSON;
|
||||||
import com.alibaba.fastjson2.JSONObject;
|
import com.alibaba.fastjson2.JSONObject;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
|
import com.mhd.common.core.domain.dto.BusinessDataPushDTO;
|
||||||
import com.mhd.common.core.domain.po.UserPo;
|
import com.mhd.common.core.domain.po.UserPo;
|
||||||
import com.mhd.common.core.enums.DictCode;
|
import com.mhd.common.core.enums.DictCode;
|
||||||
import com.mhd.common.core.exception.ServiceException;
|
import com.mhd.common.core.exception.ServiceException;
|
||||||
@@ -11,6 +15,7 @@ import com.mhd.common.core.utils.StringUtils;
|
|||||||
import com.mhd.common.core.utils.poi.ExcelUtil;
|
import com.mhd.common.core.utils.poi.ExcelUtil;
|
||||||
import com.mhd.common.core.web.domain.AjaxResult;
|
import com.mhd.common.core.web.domain.AjaxResult;
|
||||||
import com.mhd.common.security.utils.SecurityUtils;
|
import com.mhd.common.security.utils.SecurityUtils;
|
||||||
|
import com.mhd.system.api.BmsServiceFeign;
|
||||||
import com.mhd.system.api.SystemServiceFeign;
|
import com.mhd.system.api.SystemServiceFeign;
|
||||||
import com.mhd.system.api.UserServiceFeign;
|
import com.mhd.system.api.UserServiceFeign;
|
||||||
import com.mhd.system.api.domain.SysDictData;
|
import com.mhd.system.api.domain.SysDictData;
|
||||||
@@ -18,14 +23,26 @@ import com.mhd.system.api.domain.WarehouseFeignPO;
|
|||||||
import com.mhd.system.api.domain.cache.AssociationWarehouseCacheDO;
|
import com.mhd.system.api.domain.cache.AssociationWarehouseCacheDO;
|
||||||
import com.mhd.system.api.domain.cache.SystemServiceCacheUtil;
|
import com.mhd.system.api.domain.cache.SystemServiceCacheUtil;
|
||||||
import com.mhd.system.api.model.LoginUser;
|
import com.mhd.system.api.model.LoginUser;
|
||||||
|
import com.mhd.wms.domain.handoverTaskOrder.entity.HandoverTaskOrder;
|
||||||
|
import com.mhd.wms.domain.handoverTaskOrder.repository.facade.IHandoverTaskOrderService;
|
||||||
import com.mhd.wms.domain.inMaterialDetail.repository.todo.InMaterialDetailDO;
|
import com.mhd.wms.domain.inMaterialDetail.repository.todo.InMaterialDetailDO;
|
||||||
import com.mhd.wms.domain.materialBaseInfo.entity.MaterialBaseInfo;
|
import com.mhd.wms.domain.materialBaseInfo.entity.MaterialBaseInfo;
|
||||||
import com.mhd.wms.domain.materialBaseInfo.repository.facade.IMaterialBaseInfoService;
|
import com.mhd.wms.domain.materialBaseInfo.repository.facade.IMaterialBaseInfoService;
|
||||||
import com.mhd.wms.domain.materialBaseInfo.repository.po.MaterialBaseInfoPO;
|
import com.mhd.wms.domain.materialBaseInfo.repository.po.MaterialBaseInfoPO;
|
||||||
import com.mhd.wms.domain.materialBaseInfo.repository.todo.MaterialBaseInfoDO;
|
import com.mhd.wms.domain.materialBaseInfo.repository.todo.MaterialBaseInfoDO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.repository.facade.IReceiptOrderAccountService;
|
||||||
|
import com.mhd.wms.domain.stockInOrder.entity.StockInOrder;
|
||||||
|
import com.mhd.wms.domain.stockInOrder.repository.facade.IStockInOrderService;
|
||||||
import com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO;
|
import com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO;
|
||||||
import com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO;
|
import com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO;
|
||||||
import com.mhd.wms.domain.stockInOrder.service.StockInOrderDomainService;
|
import com.mhd.wms.domain.stockInOrder.service.StockInOrderDomainService;
|
||||||
|
import com.mhd.wms.domain.stockOutOrder.entity.StockOutOrder;
|
||||||
|
import com.mhd.wms.domain.stockOutOrder.repository.facade.IStockOutOrderService;
|
||||||
|
import com.mhd.wms.domain.stockOutOrder.repository.todo.StockOutOrderDO;
|
||||||
|
import com.mhd.wms.domain.stockReceiptOrder.entity.StockReceiptOrder;
|
||||||
|
import com.mhd.wms.domain.stockReceiptOrder.repository.facade.IStockReceiptOrderService;
|
||||||
|
import com.mhd.wms.domain.stockReceiptOrder.repository.todo.StockReceiptOrderDO;
|
||||||
import com.mhd.wms.interfaces.dto.stockInOrder.StockInOrderImportRowDTO;
|
import com.mhd.wms.interfaces.dto.stockInOrder.StockInOrderImportRowDTO;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.poi.ss.usermodel.*;
|
import org.apache.poi.ss.usermodel.*;
|
||||||
@@ -34,6 +51,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartFile;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
@@ -55,12 +73,24 @@ import java.util.stream.Collectors;
|
|||||||
public class StockInOrderApplicationService {
|
public class StockInOrderApplicationService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private StockInOrderDomainService stockInOrderDomainService;
|
private StockInOrderDomainService stockInOrderDomainService;
|
||||||
@Autowired
|
@Resource
|
||||||
private UserServiceFeign userServiceFeign;
|
private UserServiceFeign userServiceFeign;
|
||||||
@Autowired
|
@Resource
|
||||||
private SystemServiceFeign systemServiceFeign;
|
private SystemServiceFeign systemServiceFeign;
|
||||||
|
@Resource
|
||||||
|
private BmsServiceFeign bmsServiceFeign;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMaterialBaseInfoService materialBaseInfoService;
|
private IMaterialBaseInfoService materialBaseInfoService;
|
||||||
|
@Resource
|
||||||
|
private IReceiptOrderAccountService receiptOrderAccountService;
|
||||||
|
@Autowired
|
||||||
|
private IStockInOrderService stockInOrderService;
|
||||||
|
@Autowired
|
||||||
|
private IStockReceiptOrderService stockReceiptOrderService;
|
||||||
|
@Autowired
|
||||||
|
private IStockOutOrderService stockOutOrderService;
|
||||||
|
@Autowired
|
||||||
|
private IHandoverTaskOrderService handoverTaskOrderService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -154,7 +184,13 @@ public class StockInOrderApplicationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stockInOrderDomainService.queryList(stockInOrderDO);
|
List<StockInOrderPO> stockInOrderPOS = stockInOrderDomainService.queryList(stockInOrderDO);
|
||||||
|
for (StockInOrderPO stockInOrderPO : stockInOrderPOS) {
|
||||||
|
Long inOrderId = stockInOrderPO.getInOrderId();
|
||||||
|
List<ReceiptOrderAccount> list = receiptOrderAccountService.list(new LambdaQueryWrapper<ReceiptOrderAccount>().eq(ReceiptOrderAccount::getOrderId, inOrderId));
|
||||||
|
stockInOrderPO.setReceiptOrderAccountList(list);
|
||||||
|
}
|
||||||
|
return stockInOrderPOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -200,6 +236,162 @@ public class StockInOrderApplicationService {
|
|||||||
return stockInOrderDomainService.update(stockInOrderDO);
|
return stockInOrderDomainService.update(stockInOrderDO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Boolean saveAmount(StockInOrderDO stockInOrderDO) {
|
||||||
|
boolean r = true;
|
||||||
|
Long inOrderId = stockInOrderDO.getInOrderId();
|
||||||
|
String inOrderNumber = stockInOrderDO.getInOrderNumber();
|
||||||
|
String billingJson = stockInOrderDO.getBillingJson();
|
||||||
|
if (billingJson != null) {
|
||||||
|
stockInOrderService.update(null,new LambdaUpdateWrapper<StockInOrder>().set(StockInOrder::getBillingJson,billingJson).eq(StockInOrder::getInOrderId,inOrderId));
|
||||||
|
stockReceiptOrderService.update(null,new LambdaUpdateWrapper<StockReceiptOrder>().set(StockReceiptOrder::getBillingJson,billingJson).eq(StockReceiptOrder::getInOrderNumber,inOrderNumber));
|
||||||
|
}
|
||||||
|
receiptOrderAccountService.remove(new QueryWrapper<ReceiptOrderAccount>().lambda().eq(ReceiptOrderAccount::getOrderId, inOrderId));
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList = stockInOrderDO.getReceiptOrderAccountList();
|
||||||
|
if (receiptOrderAccountList != null && !receiptOrderAccountList.isEmpty()) {
|
||||||
|
for (ReceiptOrderAccount receiptOrderAccount : receiptOrderAccountList) {
|
||||||
|
receiptOrderAccount.setOrderId(inOrderId);
|
||||||
|
}
|
||||||
|
r = receiptOrderAccountService.saveBatch(receiptOrderAccountList);
|
||||||
|
wholeRentSynchronizationZXF(inOrderId);
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Boolean saveOutAmount(StockOutOrderDO stockOutOrderDO) {
|
||||||
|
boolean r = true;
|
||||||
|
Long outOrderId = stockOutOrderDO.getOutOrderId();
|
||||||
|
String outOrderNumber = stockOutOrderDO.getOutOrderNumber();
|
||||||
|
String billingJson = stockOutOrderDO.getBillingJson();
|
||||||
|
if (billingJson != null) {
|
||||||
|
stockOutOrderService.update(null,new LambdaUpdateWrapper<StockOutOrder>().set(StockOutOrder::getBillingJson,billingJson).eq(StockOutOrder::getOutOrderId,outOrderId));
|
||||||
|
handoverTaskOrderService.update(null,new LambdaUpdateWrapper<HandoverTaskOrder>().set(HandoverTaskOrder::getBillingJson,billingJson).eq(HandoverTaskOrder::getOrderNumber,outOrderNumber));
|
||||||
|
}
|
||||||
|
receiptOrderAccountService.remove(new QueryWrapper<ReceiptOrderAccount>().lambda().eq(ReceiptOrderAccount::getOrderId, outOrderId));
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList = stockOutOrderDO.getReceiptOrderAccountList();
|
||||||
|
if (receiptOrderAccountList != null && !receiptOrderAccountList.isEmpty()) {
|
||||||
|
for (ReceiptOrderAccount receiptOrderAccount : receiptOrderAccountList) {
|
||||||
|
receiptOrderAccount.setOrderId(outOrderId);
|
||||||
|
}
|
||||||
|
r = receiptOrderAccountService.saveBatch(receiptOrderAccountList);
|
||||||
|
wholeRentSynchronizationZXF(outOrderId);
|
||||||
|
}
|
||||||
|
return r;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 定时任务整租推送到bms装卸费
|
||||||
|
*/
|
||||||
|
public void wholeRentSynchronizationZXF(Long busId) {
|
||||||
|
StockInOrder stockInOrder = stockInOrderService.getOne(new QueryWrapper<StockInOrder>().lambda().eq(StockInOrder::getInOrderId, busId),false);
|
||||||
|
StockOutOrder stockOutOrder = stockOutOrderService.getOne(new QueryWrapper<StockOutOrder>().lambda().eq(StockOutOrder::getOutOrderId, busId),false);
|
||||||
|
if (stockInOrder != null) {
|
||||||
|
Long shipperId = stockInOrder.getShipperId();
|
||||||
|
Long organizationId = stockInOrder.getOrganizationId();
|
||||||
|
String organizationName = stockInOrder.getOrganizationName();
|
||||||
|
Long topOrganizationId = stockInOrder.getTopOrganizationId();
|
||||||
|
String inOrderNumber = stockInOrder.getInOrderNumber();
|
||||||
|
String settlementCurrency = stockInOrder.getSettlementCurrency();
|
||||||
|
String salesmanId = stockInOrder.getSalesmanId();
|
||||||
|
List<ReceiptOrderAccount> accounts = receiptOrderAccountService.list(new QueryWrapper<ReceiptOrderAccount>().lambda().eq(ReceiptOrderAccount::getOrderId, busId));
|
||||||
|
for (ReceiptOrderAccount account : accounts) {
|
||||||
|
BigDecimal amount = account.getAmount();
|
||||||
|
String subjectCode = account.getSubjectCode();
|
||||||
|
String subjectName = account.getSubjectName();
|
||||||
|
String serviceItemsCode = account.getServiceItemsCode();
|
||||||
|
if (shipperId == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
BusinessDataPushDTO businessDataPushDTO = new BusinessDataPushDTO();
|
||||||
|
businessDataPushDTO.setOrganizationId(organizationId);
|
||||||
|
businessDataPushDTO.setTopOrganizationId(topOrganizationId);
|
||||||
|
businessDataPushDTO.setOrganizationName(organizationName);
|
||||||
|
businessDataPushDTO.setBelongModuleCode("wms");
|
||||||
|
businessDataPushDTO.setBillAmount(account.getAmount());//计费金额
|
||||||
|
businessDataPushDTO.setEstimatedCost(account.getSettlementAmount());//计算金额
|
||||||
|
businessDataPushDTO.setOriginalBusinessNum(inOrderNumber);
|
||||||
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
||||||
|
if ("装卸费".equals(subjectName)) {
|
||||||
|
jsonObject.put("loading_unloading_unit_price", account.getPrice());//装卸货单价
|
||||||
|
jsonObject.put("cargo_quantity",account.getNum());//货物数量
|
||||||
|
} else if ("贴标费".equals(subjectName)) {
|
||||||
|
jsonObject.put("wooden_case_labeling_unit_price", account.getPrice());//木箱单价
|
||||||
|
jsonObject.put("carton_labeling_unit_price",account.getPrice());//纸箱单价
|
||||||
|
jsonObject.put("wooden_case_quantity",account.getNum());//木箱数量
|
||||||
|
jsonObject.put("carton_quantity",account.getNum());//纸箱数量
|
||||||
|
} else if ("进出仓操作费".equals(subjectName)) {
|
||||||
|
jsonObject.put("cargo_quantity", account.getNum());//货物数量
|
||||||
|
jsonObject.put("warehouse_handling_unit_price",account.getPrice());//进出仓操作费单价
|
||||||
|
}
|
||||||
|
businessDataPushDTO.setDocumentFormJson(jsonObject.toJSONString());
|
||||||
|
businessDataPushDTO.setDocumentTypeCode("WMS_ckjccd");
|
||||||
|
businessDataPushDTO.setSettlementEntityId(shipperId);
|
||||||
|
businessDataPushDTO.setSecondSubjectCode(subjectCode);
|
||||||
|
businessDataPushDTO.setServiceItemsCode(serviceItemsCode);
|
||||||
|
businessDataPushDTO.setDataSources(1);
|
||||||
|
businessDataPushDTO.setTaxRate(account.getRate());
|
||||||
|
|
||||||
|
businessDataPushDTO.setSettlementCurrency(settlementCurrency);
|
||||||
|
businessDataPushDTO.setSalesmanId(salesmanId);
|
||||||
|
if (amount != null&&amount.compareTo(BigDecimal.ZERO)!=0) {
|
||||||
|
bmsServiceFeign.wholeRentSynchronizationZXF(businessDataPushDTO);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (stockOutOrder != null) {
|
||||||
|
Long shipperId = stockOutOrder.getShipperId();
|
||||||
|
Long organizationId = stockOutOrder.getOrganizationId();
|
||||||
|
String organizationName = stockOutOrder.getOrganizationName();
|
||||||
|
Long topOrganizationId = stockOutOrder.getTopOrganizationId();
|
||||||
|
String inOrderNumber = stockOutOrder.getOutOrderNumber();
|
||||||
|
String settlementCurrency = stockOutOrder.getSettlementCurrency();
|
||||||
|
String salesmanId = stockOutOrder.getSalesmanId();
|
||||||
|
List<ReceiptOrderAccount> accounts = receiptOrderAccountService.list(new QueryWrapper<ReceiptOrderAccount>().lambda().eq(ReceiptOrderAccount::getOrderId, busId));
|
||||||
|
for (ReceiptOrderAccount account : accounts) {
|
||||||
|
String subjectCode = account.getSubjectCode();
|
||||||
|
String subjectName = account.getSubjectName();
|
||||||
|
String serviceItemsCode = account.getServiceItemsCode();
|
||||||
|
if (shipperId == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
BusinessDataPushDTO businessDataPushDTO = new BusinessDataPushDTO();
|
||||||
|
businessDataPushDTO.setOrganizationId(organizationId);
|
||||||
|
businessDataPushDTO.setTopOrganizationId(topOrganizationId);
|
||||||
|
businessDataPushDTO.setOrganizationName(organizationName);
|
||||||
|
businessDataPushDTO.setBelongModuleCode("wms");
|
||||||
|
businessDataPushDTO.setBillAmount(account.getAmount());//计费金额
|
||||||
|
businessDataPushDTO.setEstimatedCost(account.getSettlementAmount());//计算金额
|
||||||
|
businessDataPushDTO.setOriginalBusinessNum(inOrderNumber);
|
||||||
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
||||||
|
if ("装卸费".equals(subjectName)) {
|
||||||
|
jsonObject.put("loading_unloading_unit_price", account.getPrice());//装卸货单价
|
||||||
|
jsonObject.put("cargo_quantity",account.getNum());//货物数量
|
||||||
|
} else if ("贴标费".equals(subjectName)) {
|
||||||
|
jsonObject.put("wooden_case_labeling_unit_price", account.getPrice());//木箱单价
|
||||||
|
jsonObject.put("carton_labeling_unit_price",account.getPrice());//纸箱单价
|
||||||
|
jsonObject.put("wooden_case_quantity",account.getNum());//木箱数量
|
||||||
|
jsonObject.put("carton_quantity",account.getNum());//纸箱数量
|
||||||
|
} else if ("进出仓操作费".equals(subjectName)) {
|
||||||
|
jsonObject.put("cargo_quantity", account.getNum());//货物数量
|
||||||
|
jsonObject.put("warehouse_handling_unit_price",account.getPrice());//进出仓操作费单价
|
||||||
|
}
|
||||||
|
businessDataPushDTO.setDocumentFormJson(jsonObject.toJSONString());
|
||||||
|
businessDataPushDTO.setDocumentTypeCode("WMS_ckjccd");
|
||||||
|
businessDataPushDTO.setSettlementEntityId(shipperId);
|
||||||
|
businessDataPushDTO.setSecondSubjectCode(subjectCode);
|
||||||
|
businessDataPushDTO.setServiceItemsCode(serviceItemsCode);
|
||||||
|
businessDataPushDTO.setDataSources(1);
|
||||||
|
businessDataPushDTO.setTaxRate(account.getRate());
|
||||||
|
|
||||||
|
businessDataPushDTO.setSettlementCurrency(settlementCurrency);
|
||||||
|
businessDataPushDTO.setSalesmanId(salesmanId);
|
||||||
|
bmsServiceFeign.wholeRentSynchronizationZXF(businessDataPushDTO);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
throw new RuntimeException("未找到业务单!");
|
||||||
|
}
|
||||||
|
|
||||||
|
log.info("定时任务整租推送到bms触发--结束");
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除入库单
|
* 批量删除入库单
|
||||||
* 只有已创建状态(status = 1)的入库单可以删除
|
* 只有已创建状态(status = 1)的入库单可以删除
|
||||||
@@ -1867,4 +2059,4 @@ public class StockInOrderApplicationService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+6
@@ -38,6 +38,8 @@ import com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO;
|
|||||||
import com.mhd.wms.domain.outMaterialDetail.service.OutMaterialDetailDomainService;
|
import com.mhd.wms.domain.outMaterialDetail.service.OutMaterialDetailDomainService;
|
||||||
import com.mhd.wms.domain.pickingMaterialDetail.repository.facade.IPickingMaterialDetailService;
|
import com.mhd.wms.domain.pickingMaterialDetail.repository.facade.IPickingMaterialDetailService;
|
||||||
import com.mhd.wms.domain.pickingMaterialDetail.repository.po.PickingMaterialDetailPO;
|
import com.mhd.wms.domain.pickingMaterialDetail.repository.po.PickingMaterialDetailPO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.repository.facade.IReceiptOrderAccountService;
|
||||||
import com.mhd.wms.domain.stockOutOrder.entity.StockOutOrder;
|
import com.mhd.wms.domain.stockOutOrder.entity.StockOutOrder;
|
||||||
import com.mhd.wms.domain.stockOutOrder.repository.facade.IStockOutOrderService;
|
import com.mhd.wms.domain.stockOutOrder.repository.facade.IStockOutOrderService;
|
||||||
import com.mhd.wms.domain.stockOutOrder.repository.po.StockOutOrderPO;
|
import com.mhd.wms.domain.stockOutOrder.repository.po.StockOutOrderPO;
|
||||||
@@ -84,6 +86,8 @@ public class StockOutOrderApplicationService {
|
|||||||
private IOutMaterialDetailService outMaterialDetailService;
|
private IOutMaterialDetailService outMaterialDetailService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IPickingMaterialDetailService pickingMaterialDetailService;
|
private IPickingMaterialDetailService pickingMaterialDetailService;
|
||||||
|
@Autowired
|
||||||
|
private IReceiptOrderAccountService receiptOrderAccountService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -210,6 +214,8 @@ public class StockOutOrderApplicationService {
|
|||||||
// 复核总数量:从out_material_detail汇总check_quantity
|
// 复核总数量:从out_material_detail汇总check_quantity
|
||||||
BigDecimal checkSum = materialDetailList.stream().map(OutMaterialDetailPO::getCheckQuantity).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
BigDecimal checkSum = materialDetailList.stream().map(OutMaterialDetailPO::getCheckQuantity).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
stockOutOrderPO.setCheckQuantity(checkSum);
|
stockOutOrderPO.setCheckQuantity(checkSum);
|
||||||
|
List<ReceiptOrderAccount> list = receiptOrderAccountService.list(new LambdaQueryWrapper<ReceiptOrderAccount>().eq(ReceiptOrderAccount::getOrderId, stockOutOrderPO.getOutOrderId()));
|
||||||
|
stockOutOrderPO.setReceiptOrderAccountList(list);
|
||||||
}
|
}
|
||||||
return stockOutOrderPOS;
|
return stockOutOrderPOS;
|
||||||
}
|
}
|
||||||
|
|||||||
+6
@@ -44,6 +44,7 @@ import com.mhd.wms.domain.stockReceiptOrder.repository.po.StockReceiptOrderPO;
|
|||||||
import com.mhd.wms.domain.stockReceiptOrder.repository.todo.NoReceiptOrderDO;
|
import com.mhd.wms.domain.stockReceiptOrder.repository.todo.NoReceiptOrderDO;
|
||||||
import com.mhd.wms.domain.stockReceiptOrder.repository.todo.StockReceiptOrderDO;
|
import com.mhd.wms.domain.stockReceiptOrder.repository.todo.StockReceiptOrderDO;
|
||||||
import com.mhd.wms.domain.stockReceiptOrder.service.StockReceiptOrderDomainService;
|
import com.mhd.wms.domain.stockReceiptOrder.service.StockReceiptOrderDomainService;
|
||||||
|
import com.mhd.wms.interfaces.dto.stockReceiptOrder.StockReceiptOrderDTO;
|
||||||
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.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@@ -1561,6 +1562,10 @@ public class StockReceiptOrderApplicationService {
|
|||||||
return stockReceiptOrderDomainService.completeReceipt(receiptOrderId, true);
|
return stockReceiptOrderDomainService.completeReceipt(receiptOrderId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateInOrder(StockReceiptOrderDTO stockReceiptOrderDTO){
|
||||||
|
stockReceiptOrderDomainService.updateInOrder(stockReceiptOrderDTO);
|
||||||
|
}
|
||||||
|
|
||||||
public Boolean genStockShelfOrder(Long receiptOrderId){
|
public Boolean genStockShelfOrder(Long receiptOrderId){
|
||||||
return stockReceiptOrderDomainService.genStockShelfOrder(receiptOrderId);
|
return stockReceiptOrderDomainService.genStockShelfOrder(receiptOrderId);
|
||||||
}
|
}
|
||||||
@@ -1912,6 +1917,7 @@ public class StockReceiptOrderApplicationService {
|
|||||||
throw new ServiceException("收货单已完成收货");
|
throw new ServiceException("收货单已完成收货");
|
||||||
}
|
}
|
||||||
StockReceiptOrderDO returnStockReceiptOrderDO = new StockReceiptOrderDO();
|
StockReceiptOrderDO returnStockReceiptOrderDO = new StockReceiptOrderDO();
|
||||||
|
returnStockReceiptOrderDO.setBillingJson(stockReceiptOrderDO.getBillingJson());
|
||||||
returnStockReceiptOrderDO.setReceiptOrderAccountList(stockReceiptOrderDO.getReceiptOrderAccountList());
|
returnStockReceiptOrderDO.setReceiptOrderAccountList(stockReceiptOrderDO.getReceiptOrderAccountList());
|
||||||
returnStockReceiptOrderDO.setUpdateTime(stockReceiptOrderDO.getUpdateTime());
|
returnStockReceiptOrderDO.setUpdateTime(stockReceiptOrderDO.getUpdateTime());
|
||||||
returnStockReceiptOrderDO.setReceiptOrderId(stockReceiptOrderPO.getReceiptOrderId());
|
returnStockReceiptOrderDO.setReceiptOrderId(stockReceiptOrderPO.getReceiptOrderId());
|
||||||
|
|||||||
+3
-2
@@ -142,5 +142,6 @@ public class HandoverTaskOrder extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("作业人姓名")
|
@ApiModelProperty("作业人姓名")
|
||||||
private String operatorsName;
|
private String operatorsName;
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
}
|
private String billingJson;
|
||||||
|
}
|
||||||
+3
-2
@@ -141,5 +141,6 @@ public class HandoverTaskOrderPO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("物料明细(根据复核单数据生成,数量为复核数量)")
|
@ApiModelProperty("物料明细(根据复核单数据生成,数量为复核数量)")
|
||||||
private List<TaskHandoverMaterialDetailPO> materialDetailList;
|
private List<TaskHandoverMaterialDetailPO> materialDetailList;
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
}
|
private String billingJson;
|
||||||
|
}
|
||||||
+3
-1
@@ -142,4 +142,6 @@ public class HandoverTaskOrderDO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("app上传的图片")
|
@ApiModelProperty("app上传的图片")
|
||||||
private String pictureApp;
|
private String pictureApp;
|
||||||
}
|
|
||||||
|
private String billingJson;
|
||||||
|
}
|
||||||
+7
-1
@@ -25,6 +25,7 @@ import com.mhd.wms.domain.outMaterialDetail.entity.OutMaterialDetail;
|
|||||||
import com.mhd.wms.domain.outMaterialDetail.repository.mapper.OutMaterialDetailMapper;
|
import com.mhd.wms.domain.outMaterialDetail.repository.mapper.OutMaterialDetailMapper;
|
||||||
import com.mhd.wms.domain.pickingMaterialDetail.repository.mapper.PickingMaterialDetailMapper;
|
import com.mhd.wms.domain.pickingMaterialDetail.repository.mapper.PickingMaterialDetailMapper;
|
||||||
import com.mhd.wms.domain.pickingMaterialDetail.repository.po.PickingMaterialDetailPO;
|
import com.mhd.wms.domain.pickingMaterialDetail.repository.po.PickingMaterialDetailPO;
|
||||||
|
import com.mhd.wms.domain.stockOutOrder.repository.facade.IStockOutOrderService;
|
||||||
import com.mhd.wms.domain.taskHandoverMaterialDetail.repository.po.TaskHandoverMaterialDetailPO;
|
import com.mhd.wms.domain.taskHandoverMaterialDetail.repository.po.TaskHandoverMaterialDetailPO;
|
||||||
import com.mhd.wms.domain.shiftManage.repository.po.ShiftManagePO;
|
import com.mhd.wms.domain.shiftManage.repository.po.ShiftManagePO;
|
||||||
import com.mhd.wms.domain.shiftManage.repository.todo.ShiftManageDO;
|
import com.mhd.wms.domain.shiftManage.repository.todo.ShiftManageDO;
|
||||||
@@ -70,6 +71,8 @@ public class HandoverTaskOrderDomainService {
|
|||||||
private PickingMaterialDetailMapper pickingMaterialDetailMapper;
|
private PickingMaterialDetailMapper pickingMaterialDetailMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private IMaterialBarCodeService materialBarCodeService;
|
private IMaterialBarCodeService materialBarCodeService;
|
||||||
|
@Autowired
|
||||||
|
private IStockOutOrderService stockOutOrderService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -277,11 +280,14 @@ public class HandoverTaskOrderDomainService {
|
|||||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||||
//修改库存
|
//修改库存
|
||||||
xgkc(handoverTaskOrderIds,loginUser);
|
xgkc(handoverTaskOrderIds,loginUser);
|
||||||
|
HandoverTaskOrder handoverTaskOrder = handoverTaskOrderService.getById(handoverTaskOrderIds.get(0));
|
||||||
|
stockOutOrderService.update(null,new UpdateWrapper<StockOutOrder>().lambda().set(StockOutOrder::getBillingJson,handoverTaskOrderDO.getBillingJson()).eq(StockOutOrder::getOutOrderNumber,handoverTaskOrder.getOrderNumber()));
|
||||||
return handoverTaskOrderService.update(null, new UpdateWrapper<HandoverTaskOrder>().lambda()
|
return handoverTaskOrderService.update(null, new UpdateWrapper<HandoverTaskOrder>().lambda()
|
||||||
.set(HandoverTaskOrder::getStatus, 2)
|
.set(HandoverTaskOrder::getStatus, 2)
|
||||||
.set(HandoverTaskOrder::getUpdateBy, loginUser.getUserid())
|
.set(HandoverTaskOrder::getUpdateBy, loginUser.getUserid())
|
||||||
.set(HandoverTaskOrder::getUpdateByName, loginUser.getUsername())
|
.set(HandoverTaskOrder::getUpdateByName, loginUser.getUsername())
|
||||||
.set(HandoverTaskOrder::getUpdateTime, new Date())
|
.set(HandoverTaskOrder::getUpdateTime, new Date())
|
||||||
|
.set(HandoverTaskOrder::getBillingJson, handoverTaskOrderDO.getBillingJson())
|
||||||
.in(HandoverTaskOrder::getHandoverTaskOrderId, handoverTaskOrderIds)
|
.in(HandoverTaskOrder::getHandoverTaskOrderId, handoverTaskOrderIds)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -524,4 +530,4 @@ public class HandoverTaskOrderDomainService {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
+3
@@ -112,4 +112,7 @@ public class ReceiptOrderAccount extends BaseVOEntity {
|
|||||||
@ApiModelProperty(value = "单价")
|
@ApiModelProperty(value = "单价")
|
||||||
@Excel(name = "单价", width = 15)
|
@Excel(name = "单价", width = 15)
|
||||||
private BigDecimal price;
|
private BigDecimal price;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "计算价格json")
|
||||||
|
private String amountJson;
|
||||||
}
|
}
|
||||||
@@ -352,4 +352,12 @@ public class StockInOrder extends BaseVOEntity {
|
|||||||
@ApiModelProperty("订单状态")
|
@ApiModelProperty("订单状态")
|
||||||
@Excel(name = "订单状态")
|
@Excel(name = "订单状态")
|
||||||
private String orderStatus;
|
private String orderStatus;
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
}
|
}
|
||||||
+12
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
import com.mhd.common.core.annotation.Excel;
|
import com.mhd.common.core.annotation.Excel;
|
||||||
import com.mhd.common.core.web.domain.BaseVOEntity;
|
import com.mhd.common.core.web.domain.BaseVOEntity;
|
||||||
import com.mhd.wms.domain.inMaterialDetail.repository.po.InMaterialDetailPO;
|
import com.mhd.wms.domain.inMaterialDetail.repository.po.InMaterialDetailPO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -373,4 +374,15 @@ public class StockInOrderPO extends BaseVOEntity {
|
|||||||
@ApiModelProperty("订单状态")
|
@ApiModelProperty("订单状态")
|
||||||
@Excel(name = "订单状态")
|
@Excel(name = "订单状态")
|
||||||
private String orderStatus;
|
private String orderStatus;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
}
|
}
|
||||||
+12
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
import com.mhd.common.core.annotation.Excel;
|
import com.mhd.common.core.annotation.Excel;
|
||||||
import com.mhd.common.core.web.domain.BaseVOEntity;
|
import com.mhd.common.core.web.domain.BaseVOEntity;
|
||||||
import com.mhd.wms.domain.inMaterialDetail.repository.todo.InMaterialDetailDO;
|
import com.mhd.wms.domain.inMaterialDetail.repository.todo.InMaterialDetailDO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
@@ -379,4 +380,15 @@ public class StockInOrderDO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("入库明细-物料编码,模糊匹配")
|
@ApiModelProperty("入库明细-物料编码,模糊匹配")
|
||||||
private String materialCode;
|
private String materialCode;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
}
|
}
|
||||||
@@ -369,4 +369,14 @@ public class StockOutOrder extends BaseVOEntity {
|
|||||||
@ApiModelProperty("app上传的图片")
|
@ApiModelProperty("app上传的图片")
|
||||||
private String pictureApp;
|
private String pictureApp;
|
||||||
|
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
|
private String billingJson;
|
||||||
|
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
|
|
||||||
}
|
}
|
||||||
+11
-1
@@ -5,6 +5,7 @@ import com.mhd.common.core.annotation.Excel;
|
|||||||
import com.mhd.common.core.web.domain.BaseVOEntity;
|
import com.mhd.common.core.web.domain.BaseVOEntity;
|
||||||
import com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialCheckPO;
|
import com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialCheckPO;
|
||||||
import com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialDetailPO;
|
import com.mhd.wms.domain.outMaterialDetail.repository.po.OutMaterialDetailPO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -379,5 +380,14 @@ public class StockOutOrderPO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("出库总数量")
|
@ApiModelProperty("出库总数量")
|
||||||
private BigDecimal totalOutboundQuantity;
|
private BigDecimal totalOutboundQuantity;
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
}
|
}
|
||||||
+11
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
|||||||
import com.mhd.common.core.annotation.Excel;
|
import com.mhd.common.core.annotation.Excel;
|
||||||
import com.mhd.common.core.web.domain.BaseVOEntity;
|
import com.mhd.common.core.web.domain.BaseVOEntity;
|
||||||
import com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO;
|
import com.mhd.wms.domain.outMaterialDetail.repository.todo.OutMaterialDetailDO;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
@@ -415,4 +416,14 @@ public class StockOutOrderDO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty(name = "已分配数量总数量")
|
@ApiModelProperty(name = "已分配数量总数量")
|
||||||
private BigDecimal alreadyAllocationQuantityAll;
|
private BigDecimal alreadyAllocationQuantityAll;
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
}
|
}
|
||||||
+3
-2
@@ -129,8 +129,9 @@ public class StockReceiptOrder extends BaseVOEntity {
|
|||||||
@ApiModelProperty("备注")
|
@ApiModelProperty("备注")
|
||||||
@Excel(name = "备注")
|
@Excel(name = "备注")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
}
|
|
||||||
+3
@@ -159,4 +159,7 @@ public class StockReceiptOrderPO extends StockInOrderBasePO {
|
|||||||
private BigDecimal totalArea;
|
private BigDecimal totalArea;
|
||||||
@ApiModelProperty("费用")
|
@ApiModelProperty("费用")
|
||||||
List<ReceiptOrderAccount> receiptOrderAccountList;
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
}
|
}
|
||||||
+3
@@ -179,4 +179,7 @@ public class StockReceiptOrderDO extends StockInOrderBaseDO {
|
|||||||
|
|
||||||
@ApiModelProperty("费用")
|
@ApiModelProperty("费用")
|
||||||
List<ReceiptOrderAccount> receiptOrderAccountList;
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
}
|
}
|
||||||
+14
-55
@@ -68,6 +68,7 @@ import com.mhd.wms.domain.stockShelfOrder.repository.po.StockShelfOrderPO;
|
|||||||
import com.mhd.wms.domain.stockShelfOrder.repository.todo.StockShelfOrderDO;
|
import com.mhd.wms.domain.stockShelfOrder.repository.todo.StockShelfOrderDO;
|
||||||
import com.mhd.wms.domain.stockShelfOrder.service.StockShelfOrderDomainService;
|
import com.mhd.wms.domain.stockShelfOrder.service.StockShelfOrderDomainService;
|
||||||
import com.mhd.wms.domain.taskReceiptMaterialDetail.repository.todo.TaskReceiptMaterialDetailDO;
|
import com.mhd.wms.domain.taskReceiptMaterialDetail.repository.todo.TaskReceiptMaterialDetailDO;
|
||||||
|
import com.mhd.wms.interfaces.dto.stockReceiptOrder.StockReceiptOrderDTO;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@@ -419,8 +420,9 @@ public class StockReceiptOrderDomainService {
|
|||||||
genStockReceiptTaskOrderByReceivingGoods(stockReceiptOrderPO,stockReceiptOrderDO);
|
genStockReceiptTaskOrderByReceivingGoods(stockReceiptOrderPO,stockReceiptOrderDO);
|
||||||
//收货后上架前 生成质检
|
//收货后上架前 生成质检
|
||||||
genQualityInspectionByReceivingGoods(stockReceiptOrderDO);
|
genQualityInspectionByReceivingGoods(stockReceiptOrderDO);
|
||||||
saveAmount(stockReceiptOrderDO);
|
//saveAmount(stockReceiptOrderDO);
|
||||||
//更新入库单状态
|
//更新入库单状态
|
||||||
|
stockReceiptOrderPO.setBillingJson(stockReceiptOrderDO.getBillingJson());
|
||||||
updateStockInOrder(stockReceiptOrderPO);
|
updateStockInOrder(stockReceiptOrderPO);
|
||||||
//修改收货单 设置收货单收货需要更新的数据数据
|
//修改收货单 设置收货单收货需要更新的数据数据
|
||||||
return updateStockReceiptOrder(stockReceiptOrderDO, stockReceiptOrderPO);
|
return updateStockReceiptOrder(stockReceiptOrderDO, stockReceiptOrderPO);
|
||||||
@@ -439,60 +441,7 @@ public class StockReceiptOrderDomainService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 定时任务整租推送到bms装卸费
|
|
||||||
*/
|
|
||||||
public void wholeRentSynchronizationZXF(Long busId) {
|
|
||||||
StockReceiptOrder stockReceiptOrder = stockReceiptOrderService.getById(busId);
|
|
||||||
String inOrderNumber = stockReceiptOrder.getInOrderNumber();
|
|
||||||
StockInOrder stockInOrder = stockInOrderService.getOne(new QueryWrapper<StockInOrder>().lambda().eq(StockInOrder::getInOrderNumber, inOrderNumber),false);
|
|
||||||
Long shipperId = stockInOrder.getShipperId();
|
|
||||||
Long organizationId = stockInOrder.getOrganizationId();
|
|
||||||
String organizationName = stockInOrder.getOrganizationName();
|
|
||||||
Long topOrganizationId = stockInOrder.getTopOrganizationId();
|
|
||||||
List<ReceiptOrderAccount> accounts = receiptOrderAccountService.list(new QueryWrapper<ReceiptOrderAccount>().lambda().eq(ReceiptOrderAccount::getOrderId, busId));
|
|
||||||
for (ReceiptOrderAccount account : accounts) {
|
|
||||||
String subjectCode = account.getSubjectCode();
|
|
||||||
String subjectName = account.getSubjectName();
|
|
||||||
String serviceItemsCode = account.getServiceItemsCode();
|
|
||||||
if (shipperId == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
log.info("开始执行{}", com.alibaba.fastjson.JSONObject.toJSONString(stockReceiptOrder));
|
|
||||||
BusinessDataPushDTO businessDataPushDTO = new BusinessDataPushDTO();
|
|
||||||
businessDataPushDTO.setOrganizationId(organizationId);
|
|
||||||
businessDataPushDTO.setTopOrganizationId(topOrganizationId);
|
|
||||||
businessDataPushDTO.setOrganizationName(organizationName);
|
|
||||||
businessDataPushDTO.setBelongModuleCode("wms");
|
|
||||||
businessDataPushDTO.setBillAmount(account.getAmount());//计费金额
|
|
||||||
businessDataPushDTO.setEstimatedCost(account.getSettlementAmount());//计算金额
|
|
||||||
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|
|
||||||
if ("装卸费".equals(subjectName)) {
|
|
||||||
jsonObject.put("loading_unloading_unit_price", account.getPrice());//装卸货单价
|
|
||||||
jsonObject.put("cargo_quantity",account.getNum());//货物数量
|
|
||||||
} else if ("贴标费".equals(subjectName)) {
|
|
||||||
jsonObject.put("wooden_case_labeling_unit_price", account.getPrice());//木箱单价
|
|
||||||
jsonObject.put("carton_labeling_unit_price",account.getPrice());//纸箱单价
|
|
||||||
jsonObject.put("wooden_case_quantity",account.getNum());//木箱数量
|
|
||||||
jsonObject.put("carton_quantity",account.getNum());//纸箱数量
|
|
||||||
} else if ("进出仓操作费".equals(subjectName)) {
|
|
||||||
jsonObject.put("cargo_quantity", account.getNum());//货物数量
|
|
||||||
jsonObject.put("warehouse_handling_unit_price",account.getPrice());//进出仓操作费单价
|
|
||||||
}
|
|
||||||
businessDataPushDTO.setDocumentFormJson(jsonObject.toJSONString());
|
|
||||||
businessDataPushDTO.setDocumentTypeCode("WMS_ckjccd");
|
|
||||||
businessDataPushDTO.setSettlementEntityId(shipperId);
|
|
||||||
businessDataPushDTO.setSecondSubjectCode(subjectCode);
|
|
||||||
businessDataPushDTO.setServiceItemsCode(serviceItemsCode);
|
|
||||||
businessDataPushDTO.setDataSources(1);
|
|
||||||
businessDataPushDTO.setTaxRate(account.getRate());
|
|
||||||
|
|
||||||
//businessDataPushDTO.setSettlementCurrency(leasePO.getSettlementCurrency());
|
|
||||||
//businessDataPushDTO.setSalesmanId(leasePO.getSalesmanId());
|
|
||||||
bmsServiceFeign.wholeRentSynchronizationZXF(businessDataPushDTO);
|
|
||||||
}
|
|
||||||
log.info("定时任务整租推送到bms触发--结束");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 同步更新入库单明细的收货数量(总毛重/总净重/总面积/总体积不再写入入库单明细,逻辑已注释保留)
|
* 同步更新入库单明细的收货数量(总毛重/总净重/总面积/总体积不再写入入库单明细,逻辑已注释保留)
|
||||||
@@ -709,6 +658,7 @@ public class StockReceiptOrderDomainService {
|
|||||||
int addArm = stockReceiptOrderDO.getActualReceiptMaterialQuantity() != null ? stockReceiptOrderDO.getActualReceiptMaterialQuantity() : 0;
|
int addArm = stockReceiptOrderDO.getActualReceiptMaterialQuantity() != null ? stockReceiptOrderDO.getActualReceiptMaterialQuantity() : 0;
|
||||||
stockReceiptOrder.setReceiptMaterialQuantity(prevRmq + addArm);
|
stockReceiptOrder.setReceiptMaterialQuantity(prevRmq + addArm);
|
||||||
}
|
}
|
||||||
|
stockReceiptOrder.setBillingJson(stockReceiptOrderDO.getBillingJson());
|
||||||
stockReceiptOrder.setStatus(2);
|
stockReceiptOrder.setStatus(2);
|
||||||
stockReceiptOrder.setUpdateBy(loginUser.getUserid());
|
stockReceiptOrder.setUpdateBy(loginUser.getUserid());
|
||||||
stockReceiptOrder.setUpdateByName(loginUser.getUsername());
|
stockReceiptOrder.setUpdateByName(loginUser.getUsername());
|
||||||
@@ -736,6 +686,7 @@ public class StockReceiptOrderDomainService {
|
|||||||
StockInOrder stockInOrder = new StockInOrder();
|
StockInOrder stockInOrder = new StockInOrder();
|
||||||
stockInOrder.setInOrderNumber(stockReceiptOrderPO.getInOrderNumber());
|
stockInOrder.setInOrderNumber(stockReceiptOrderPO.getInOrderNumber());
|
||||||
stockInOrder.setStatus(3);
|
stockInOrder.setStatus(3);
|
||||||
|
stockInOrder.setBillingJson(stockReceiptOrderPO.getBillingJson());
|
||||||
stockInOrder.setUpdateBy(loginUser.getUserid());
|
stockInOrder.setUpdateBy(loginUser.getUserid());
|
||||||
stockInOrder.setUpdateByName(loginUser.getUsername());
|
stockInOrder.setUpdateByName(loginUser.getUsername());
|
||||||
stockInOrder.setUpdateTime(new Date());
|
stockInOrder.setUpdateTime(new Date());
|
||||||
@@ -808,10 +759,18 @@ public class StockReceiptOrderDomainService {
|
|||||||
.set(StockReceiptOrder::getUpdateTime, new Date())
|
.set(StockReceiptOrder::getUpdateTime, new Date())
|
||||||
.eq(StockReceiptOrder::getReceiptOrderId, receiptOrderId));
|
.eq(StockReceiptOrder::getReceiptOrderId, receiptOrderId));
|
||||||
//推送bms
|
//推送bms
|
||||||
wholeRentSynchronizationZXF(receiptOrderId);
|
//wholeRentSynchronizationZXF(receiptOrderId);
|
||||||
return update;
|
return update;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void updateInOrder(StockReceiptOrderDTO stockReceiptOrderDTO) {
|
||||||
|
String inOrderNumber = stockReceiptOrderDTO.getInOrderNumber();
|
||||||
|
Long receiptOrderId = stockReceiptOrderDTO.getReceiptOrderId();
|
||||||
|
String billingJson = stockReceiptOrderDTO.getBillingJson();
|
||||||
|
stockInOrderService.update(null, new UpdateWrapper<StockInOrder>().lambda().set(StockInOrder::getBillingJson,billingJson).eq(StockInOrder::getInOrderNumber, inOrderNumber));
|
||||||
|
stockReceiptOrderService.update(null, new UpdateWrapper<StockReceiptOrder>().lambda().set(StockReceiptOrder::getBillingJson,billingJson).eq(StockReceiptOrder::getReceiptOrderId, receiptOrderId));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收货单完成时:按累计已收与计划数量比较,更新明细 receipt_status(3 正常收完 / 4 少收 / 5 超收)
|
* 收货单完成时:按累计已收与计划数量比较,更新明细 receipt_status(3 正常收完 / 4 少收 / 5 超收)
|
||||||
* <p>PC 主子行拆分收货时:计划数量只在主行(level=1),子行 quantity 常为 0;须按「主行已收 + 其下子行已收」与主行计划比较,
|
* <p>PC 主子行拆分收货时:计划数量只在主行(level=1),子行 quantity 常为 0;须按「主行已收 + 其下子行已收」与主行计划比较,
|
||||||
|
|||||||
+3
-1
@@ -172,4 +172,6 @@ public class HandoverTaskOrderDTO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("app上传的图片")
|
@ApiModelProperty("app上传的图片")
|
||||||
private String pictureApp;
|
private String pictureApp;
|
||||||
}
|
|
||||||
|
private String billingJson;
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ package com.mhd.wms.interfaces.dto.stockInOrder;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.mhd.common.core.annotation.Excel;
|
import com.mhd.common.core.annotation.Excel;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import com.mhd.wms.interfaces.dto.inMaterialDetail.InMaterialDetailDTO;
|
import com.mhd.wms.interfaces.dto.inMaterialDetail.InMaterialDetailDTO;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -376,4 +377,15 @@ public class StockInOrderDTO extends StockInOrderBaseDTO {
|
|||||||
|
|
||||||
@ApiModelProperty("入库明细-物料编码,模糊匹配,与前端参数 materialCode 一致")
|
@ApiModelProperty("入库明细-物料编码,模糊匹配,与前端参数 materialCode 一致")
|
||||||
private String materialCode;
|
private String materialCode;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
}
|
}
|
||||||
@@ -3,6 +3,7 @@ package com.mhd.wms.interfaces.dto.stockOutOrder;
|
|||||||
import com.fasterxml.jackson.annotation.JsonAlias;
|
import com.fasterxml.jackson.annotation.JsonAlias;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.mhd.common.core.annotation.Excel;
|
import com.mhd.common.core.annotation.Excel;
|
||||||
|
import com.mhd.wms.domain.receiptOrderAccount.entity.ReceiptOrderAccount;
|
||||||
import com.mhd.wms.interfaces.dto.outMaterialDetail.OutMaterialDetailDTO;
|
import com.mhd.wms.interfaces.dto.outMaterialDetail.OutMaterialDetailDTO;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -405,4 +406,14 @@ public class StockOutOrderDTO extends StockOutOrderBaseDTO {
|
|||||||
|
|
||||||
@ApiModelProperty("出库交接图片,PDA出库交接时上传的照片,多张图片以逗号隔开")
|
@ApiModelProperty("出库交接图片,PDA出库交接时上传的照片,多张图片以逗号隔开")
|
||||||
private String pictureApp;
|
private String pictureApp;
|
||||||
|
@ApiModelProperty("计费信息")
|
||||||
|
private String billingJson;
|
||||||
|
@ApiModelProperty("结算币种")
|
||||||
|
private String settlementCurrency;
|
||||||
|
@ApiModelProperty("业务员ID")
|
||||||
|
private String salesmanId;
|
||||||
|
@ApiModelProperty("业务员名称")
|
||||||
|
private String salesmanName;
|
||||||
|
@ApiModelProperty("费用")
|
||||||
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
}
|
}
|
||||||
+3
@@ -156,4 +156,7 @@ public class StockReceiptOrderDTO extends StockInOrderBaseDTO {
|
|||||||
|
|
||||||
@ApiModelProperty("费用")
|
@ApiModelProperty("费用")
|
||||||
List<ReceiptOrderAccount> receiptOrderAccountList;
|
List<ReceiptOrderAccount> receiptOrderAccountList;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "费用参数json")
|
||||||
|
private String billingJson;
|
||||||
}
|
}
|
||||||
+28
-1
@@ -8,8 +8,11 @@ import com.mhd.common.core.utils.StringUtils;
|
|||||||
import com.mhd.wms.application.service.stockInOrder.StockInOrderApplicationService;
|
import com.mhd.wms.application.service.stockInOrder.StockInOrderApplicationService;
|
||||||
import com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO;
|
import com.mhd.wms.domain.stockInOrder.repository.po.StockInOrderPO;
|
||||||
import com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO;
|
import com.mhd.wms.domain.stockInOrder.repository.todo.StockInOrderDO;
|
||||||
|
import com.mhd.wms.domain.stockOutOrder.repository.todo.StockOutOrderDO;
|
||||||
import com.mhd.wms.interfaces.assember.stockInOrder.StockInOrderAssembler;
|
import com.mhd.wms.interfaces.assember.stockInOrder.StockInOrderAssembler;
|
||||||
|
import com.mhd.wms.interfaces.assember.stockOutOrder.StockOutOrderAssembler;
|
||||||
import com.mhd.wms.interfaces.dto.stockInOrder.StockInOrderDTO;
|
import com.mhd.wms.interfaces.dto.stockInOrder.StockInOrderDTO;
|
||||||
|
import com.mhd.wms.interfaces.dto.stockOutOrder.StockOutOrderDTO;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
@@ -32,6 +35,8 @@ public class StockInOrderApi extends BaseController {
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private StockInOrderAssembler stockInOrderAssembler;
|
private StockInOrderAssembler stockInOrderAssembler;
|
||||||
|
@Resource
|
||||||
|
private StockOutOrderAssembler stockOutOrderAssembler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 分页查询入库单列表
|
* 分页查询入库单列表
|
||||||
@@ -63,6 +68,28 @@ public class StockInOrderApi extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑入库单
|
||||||
|
*/
|
||||||
|
@ApiOperation("编辑入库单")
|
||||||
|
@PostMapping("/saveAmount")
|
||||||
|
public AjaxResult saveAmount(@RequestBody StockInOrderDTO stockInOrderDTO)
|
||||||
|
{
|
||||||
|
StockInOrderDO stockInOrderDO = stockInOrderAssembler.toDO(stockInOrderDTO);
|
||||||
|
return toAjax(stockInOrderApplicationService.saveAmount(stockInOrderDO));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑入库单
|
||||||
|
*/
|
||||||
|
@ApiOperation("编辑入库单")
|
||||||
|
@PostMapping("/saveOutAmount")
|
||||||
|
public AjaxResult saveOutAmount(@RequestBody StockOutOrderDTO stockOutOrderDTO)
|
||||||
|
{
|
||||||
|
StockOutOrderDO stockOutOrderDO = stockOutOrderAssembler.toDO(stockOutOrderDTO);
|
||||||
|
return toAjax(stockInOrderApplicationService.saveOutAmount(stockOutOrderDO));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 批量删除入库单
|
* 批量删除入库单
|
||||||
*/
|
*/
|
||||||
@@ -129,4 +156,4 @@ public class StockInOrderApi extends BaseController {
|
|||||||
return AjaxResult.success(stockInOrderApplicationService.closeOrder(stockInOrderDO));
|
return AjaxResult.success(stockInOrderApplicationService.closeOrder(stockInOrderDO));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+2
-1
@@ -79,6 +79,7 @@ public class StockReceiptOrderAppApi extends BaseController {
|
|||||||
@ApiOperation("完成收货")
|
@ApiOperation("完成收货")
|
||||||
@PostMapping("/completeReceipt")
|
@PostMapping("/completeReceipt")
|
||||||
public AjaxResult completeReceipt(@RequestBody StockReceiptOrderDTO stockReceiptOrderDTO) {
|
public AjaxResult completeReceipt(@RequestBody StockReceiptOrderDTO stockReceiptOrderDTO) {
|
||||||
|
stockReceiptOrderApplicationService.updateInOrder(stockReceiptOrderDTO);
|
||||||
return toAjax(stockReceiptOrderApplicationService.completeReceiptByApp(stockReceiptOrderDTO.getReceiptOrderId()));
|
return toAjax(stockReceiptOrderApplicationService.completeReceiptByApp(stockReceiptOrderDTO.getReceiptOrderId()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -98,4 +99,4 @@ public class StockReceiptOrderAppApi extends BaseController {
|
|||||||
return toAjax(stockReceiptOrderApplicationService.noOrderReceipt(stockReceiptOrderDO));
|
return toAjax(stockReceiptOrderApplicationService.noOrderReceipt(stockReceiptOrderDO));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="updateByName" column="update_by_name" />
|
<result property="updateByName" column="update_by_name" />
|
||||||
<result property="delFlag" column="del_flag" />
|
<result property="delFlag" column="del_flag" />
|
||||||
<result property="pictureApp" column="picture_app" />
|
<result property="pictureApp" column="picture_app" />
|
||||||
|
<result property="billingJson" column="billing_json" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time, a.platform_use_status,
|
a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time, a.platform_use_status,
|
||||||
a.order_type_code, a.order_type_name, a.expect_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id,
|
a.order_type_code, a.order_type_name, a.expect_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id,
|
||||||
a.shipper_name, a.order_number, a.picking_order_number, a.remark, a.task_distribution, a.task_distribution_time, a.create_time, a.create_by, a.create_by_name, a.update_time,
|
a.shipper_name, a.order_number, a.picking_order_number, a.remark, a.task_distribution, a.task_distribution_time, a.create_time, a.create_by, a.create_by_name, a.update_time,
|
||||||
a.update_by, a.update_by_name, a.del_flag, a.picture_app
|
a.update_by, a.update_by_name, a.del_flag, a.picture_app,a.billing_json
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<sql id="selectHandoverTaskOrderPo1">
|
<sql id="selectHandoverTaskOrderPo1">
|
||||||
|
|||||||
@@ -80,6 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="warehouseDate" column="WAREHOUSE_DATE" />
|
<result property="warehouseDate" column="WAREHOUSE_DATE" />
|
||||||
<result property="completionTime" column="COMPLETION_TIME" />
|
<result property="completionTime" column="COMPLETION_TIME" />
|
||||||
<result property="orderDate" column="ORDER_DATE" />
|
<result property="orderDate" column="ORDER_DATE" />
|
||||||
|
<result property="billingJson" column="billing_json" />
|
||||||
|
<result property="salesmanId" column="SALESMAN_ID" />
|
||||||
|
<result property="salesmanName" column="SALESMAN_NAME" />
|
||||||
|
<result property="settlementCurrency" column="SETTLEMENT_CURRENCY" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
@@ -87,7 +91,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.in_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.notice_number, a.in_order_number, a.status,
|
a.in_order_id, a.organization_id, a.organization_name, a.top_organization_id, a.notice_number, a.in_order_number, a.status,
|
||||||
a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code,
|
a.audit_status, a.audit_remark, a.audit_by, a.audit_by_name, a.audit_time, a.warehouse_id, a.warehouse_code, a.warehouse_name, a.shipper_id, a.shipper_code,
|
||||||
a.shipper_name, a.order_type_code, a.order_type_name, a.supplier_id, a.supplier_code, a.supplier_name, a.expect_time, a.supply_chain_number,
|
a.shipper_name, a.order_type_code, a.order_type_name, a.supplier_id, a.supplier_code, a.supplier_name, a.expect_time, a.supply_chain_number,
|
||||||
a.priority_level_code, a.priority_level_name, a.direct_warehouse, a.annex_url, a.material_quantity, a.quantity,
|
a.priority_level_code, a.priority_level_name, a.direct_warehouse, a.annex_url, a.material_quantity, a.quantity,a.billing_json,a.SETTLEMENT_CURRENCY,
|
||||||
|
a.SALESMAN_ID,a.SALESMAN_NAME,
|
||||||
-- 计划入库数量:入库明细表 in_material_detail 的 quantity 汇总
|
-- 计划入库数量:入库明细表 in_material_detail 的 quantity 汇总
|
||||||
(select ifnull(sum(imd.quantity), 0)
|
(select ifnull(sum(imd.quantity), 0)
|
||||||
from in_material_detail imd
|
from in_material_detail imd
|
||||||
|
|||||||
@@ -82,6 +82,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="needDeclareFlag" column="need_declare_flag"/>
|
<result property="needDeclareFlag" column="need_declare_flag"/>
|
||||||
<result property="needTransportFlag" column="need_transport_flag"/>
|
<result property="needTransportFlag" column="need_transport_flag"/>
|
||||||
<result property="pictureApp" column="picture_app"/>
|
<result property="pictureApp" column="picture_app"/>
|
||||||
|
<result property="billingJson" column="billing_json" />
|
||||||
|
<result property="salesmanId" column="SALESMAN_ID" />
|
||||||
|
<result property="salesmanName" column="SALESMAN_NAME" />
|
||||||
|
<result property="settlementCurrency" column="SETTLEMENT_CURRENCY" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
@@ -97,7 +101,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.CONTACT_PERSON,a.VEHICLE_MODEL_PLATE,a.ENTRUST_NO,a.TEL,a.DRIVER_SIGN,a.FAX,a.DECLARE_CUSTOMS,a.MANUFACTURER,
|
a.CONTACT_PERSON,a.VEHICLE_MODEL_PLATE,a.ENTRUST_NO,a.TEL,a.DRIVER_SIGN,a.FAX,a.DECLARE_CUSTOMS,a.MANUFACTURER,
|
||||||
a.CUSTOMS_DECLARER_INFO,a.DELIVERY_ADDR,a.ENTRY_EXIT_CUSTOMS,a.DEPARTURE_ARRIVAL_COUNTRY,a.CARRIER,a.CONTAINER_NO,a.CONTAINER_NO_NAME,a.OUTBOUND_DATE,
|
a.CUSTOMS_DECLARER_INFO,a.DELIVERY_ADDR,a.ENTRY_EXIT_CUSTOMS,a.DEPARTURE_ARRIVAL_COUNTRY,a.CARRIER,a.CONTAINER_NO,a.CONTAINER_NO_NAME,a.OUTBOUND_DATE,
|
||||||
a.COMPLETE_TIME,a.ORDER_DATE,a.TRANSPORT_MODE_CODE,a.TRANSPORT_MODE_NAME,a.SUPERVISION_MODE_CODE,a.SUPERVISION_MODE_NAME,
|
a.COMPLETE_TIME,a.ORDER_DATE,a.TRANSPORT_MODE_CODE,a.TRANSPORT_MODE_NAME,a.SUPERVISION_MODE_CODE,a.SUPERVISION_MODE_NAME,
|
||||||
a.CUSTOMS_INSPECTION_FLAG,a.NEED_DECLARE_FLAG,a.NEED_TRANSPORT_FLAG,a.picture_app
|
a.CUSTOMS_INSPECTION_FLAG,a.NEED_DECLARE_FLAG,a.NEED_TRANSPORT_FLAG,a.picture_app,a.billing_json,a.SETTLEMENT_CURRENCY,
|
||||||
|
a.SALESMAN_ID,a.SALESMAN_NAME
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<result property="updateBy" column="update_by" />
|
<result property="updateBy" column="update_by" />
|
||||||
<result property="updateByName" column="update_by_name" />
|
<result property="updateByName" column="update_by_name" />
|
||||||
<result property="delFlag" column="del_flag" />
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="billingJson" column="billing_json" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
@@ -43,7 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
a.status, a.platform_id, a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time,
|
a.status, a.platform_id, a.platform_code, a.platform_name, a.platform_use_time_id, a.platform_use_start_time, a.platform_use_end_time,
|
||||||
a.platform_use_status, a.quantity, a.receipt_quantity, a.receipt_material_quantity, a.material_quantity, a.abnormal, a.task_distribution, a.task_distribution_time,
|
a.platform_use_status, a.quantity, a.receipt_quantity, a.receipt_material_quantity, a.material_quantity, a.abnormal, a.task_distribution, a.task_distribution_time,
|
||||||
a.operators_by, a.operators_name, a.remark, a.create_time, a.create_by, a.create_by_name,
|
a.operators_by, a.operators_name, a.remark, a.create_time, a.create_by, a.create_by_name,
|
||||||
a.update_time, a.update_by, a.update_by_name, a.del_flag
|
a.update_time, a.update_by, a.update_by_name, a.del_flag, a.billing_json
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<sql id="selectStockReceiptOrderPo1">
|
<sql id="selectStockReceiptOrderPo1">
|
||||||
|
|||||||
+67
-27
@@ -6,7 +6,45 @@ COMMENT ON COLUMN "NGWL_TEST_SYSTEM"."EXPENSE_ACCOUNT"."IN_ORDER_DISPLAY" IS '
|
|||||||
|
|
||||||
COMMENT ON COLUMN "NGWL_TEST_SYSTEM"."EXPENSE_ACCOUNT"."OUT_ORDER_DISPLAY" IS '出库单是否固定显示 0-否 1-是';
|
COMMENT ON COLUMN "NGWL_TEST_SYSTEM"."EXPENSE_ACCOUNT"."OUT_ORDER_DISPLAY" IS '出库单是否固定显示 0-否 1-是';
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_OUT_ORDER" ADD COLUMN "SALESMAN_NAME" VARCHAR(100);
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_OUT_ORDER" ADD COLUMN "SETTLEMENT_CURRENCY" VARCHAR(100);
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_OUT_ORDER" ADD COLUMN "SALESMAN_ID" VARCHAR(100);
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_OUT_ORDER"."SALESMAN_NAME" IS '业务员名称';
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_OUT_ORDER"."SETTLEMENT_CURRENCY" IS '结算币种';
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_OUT_ORDER"."SALESMAN_ID" IS '业务员id';
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_IN_ORDER" ADD COLUMN "SALESMAN_NAME" VARCHAR(100);
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_IN_ORDER" ADD COLUMN "SETTLEMENT_CURRENCY" VARCHAR(100);
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_IN_ORDER" ADD COLUMN "SALESMAN_ID" VARCHAR(100);
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_IN_ORDER"."SALESMAN_NAME" IS '业务员名称';
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_IN_ORDER"."SETTLEMENT_CURRENCY" IS '结算币种';
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_IN_ORDER"."SALESMAN_ID" IS '业务员id'
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_OUT_ORDER" ADD COLUMN "BILLING_JSON" CLOB;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_OUT_ORDER"."BILLING_JSON" IS '计费信息';
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_IN_ORDER" ADD COLUMN "BILLING_JSON" CLOB;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_IN_ORDER"."BILLING_JSON" IS '计费信息';
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."HANDOVER_TASK_ORDER" ADD COLUMN "BILLING_JSON" CLOB;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."HANDOVER_TASK_ORDER"."BILLING_JSON" IS '计费信息';
|
||||||
|
|
||||||
|
ALTER TABLE "NGWL_TEST_WMS"."STOCK_RECEIPT_ORDER" ADD COLUMN "BILLING_JSON" CLOB;
|
||||||
|
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."STOCK_RECEIPT_ORDER"."BILLING_JSON" IS '计费信息';
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -22,7 +60,7 @@ COMMENT ON COLUMN "NGWL_TEST_SYSTEM"."EXPENSE_ACCOUNT"."OUT_ORDER_DISPLAY" IS '
|
|||||||
Target Server Version : 8014116 (08.01.4116)
|
Target Server Version : 8014116 (08.01.4116)
|
||||||
File Encoding : 65001
|
File Encoding : 65001
|
||||||
|
|
||||||
Date: 03/04/2026 16:20:24
|
Date: 10/04/2026 21:00:36
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@@ -31,35 +69,36 @@ COMMENT ON COLUMN "NGWL_TEST_SYSTEM"."EXPENSE_ACCOUNT"."OUT_ORDER_DISPLAY" IS '
|
|||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
DROP TABLE IF EXISTS "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT";
|
DROP TABLE IF EXISTS "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT";
|
||||||
CREATE TABLE "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT" (
|
CREATE TABLE "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT" (
|
||||||
"ID" VARCHAR(36) NOT NULL,
|
"ID" VARCHAR(36) NOT NULL,
|
||||||
"SYS_ORG_CODE" VARCHAR(64) DEFAULT NULL,
|
"SYS_ORG_CODE" VARCHAR(64) DEFAULT NULL,
|
||||||
"IS_DELETE" INT DEFAULT '0',
|
"IS_DELETE" INT DEFAULT '0',
|
||||||
"ORG_NAME" VARCHAR(255) DEFAULT NULL,
|
"ORG_NAME" VARCHAR(255) DEFAULT NULL,
|
||||||
"ORGANIZATION_ID" INT DEFAULT '0',
|
"ORGANIZATION_ID" INT DEFAULT '0',
|
||||||
"TOP_ORGANIZATION_ID" INT DEFAULT '0',
|
"TOP_ORGANIZATION_ID" INT DEFAULT '0',
|
||||||
"ORGANIZATION_NAME" VARCHAR(255) DEFAULT NULL,
|
"ORGANIZATION_NAME" VARCHAR(255) DEFAULT NULL,
|
||||||
"ORDER_ID" BIGINT DEFAULT NULL,
|
"ORDER_ID" BIGINT DEFAULT NULL,
|
||||||
"ACCOUNT_ID" INT DEFAULT '0',
|
"ACCOUNT_ID" INT DEFAULT '0',
|
||||||
"ACCOUNT_TYPE" INT DEFAULT '0',
|
"ACCOUNT_TYPE" INT DEFAULT '0',
|
||||||
"SUBJECT_CODE" VARCHAR(255) DEFAULT NULL,
|
"SUBJECT_CODE" VARCHAR(255) DEFAULT NULL,
|
||||||
"SUBJECT_NAME" VARCHAR(255) DEFAULT NULL,
|
"SUBJECT_NAME" VARCHAR(255) DEFAULT NULL,
|
||||||
"RATE" DECIMAL(10,2) DEFAULT '0.00',
|
"RATE" DECIMAL(10,2) DEFAULT '0.00',
|
||||||
"AMOUNT" DECIMAL(10,2) DEFAULT '0.00',
|
"AMOUNT" DECIMAL(10,2) DEFAULT '0.00',
|
||||||
"TAX_AMOUNT" DECIMAL(10,2),
|
"TAX_AMOUNT" DECIMAL(10,2),
|
||||||
"TAX_FREE_FEE" DECIMAL(10,2),
|
"TAX_FREE_FEE" DECIMAL(10,2),
|
||||||
"RECEIVE_ACCOUNT" VARCHAR2(200),
|
"RECEIVE_ACCOUNT" VARCHAR2(200),
|
||||||
"SETTLEMENT_AMOUNT" DECIMAL(10,2),
|
"SETTLEMENT_AMOUNT" DECIMAL(10,2),
|
||||||
"PRICE" DECIMAL(10,2),
|
"PRICE" DECIMAL(10,2),
|
||||||
"NUM" DECIMAL(10,2),
|
"NUM" DECIMAL(10,2),
|
||||||
"SERVICE_ITEMS_CODE" VARCHAR2(255),
|
"SERVICE_ITEMS_CODE" VARCHAR2(255),
|
||||||
"SERVICE_ITEMS_NAME" VARCHAR2(255),
|
"SERVICE_ITEMS_NAME" VARCHAR2(255),
|
||||||
"CREATE_TIME" TIMESTAMP(6),
|
"CREATE_TIME" TIMESTAMP(6),
|
||||||
"CREATE_BY" BIGINT DEFAULT 0,
|
"CREATE_BY" BIGINT DEFAULT 0,
|
||||||
"CREATE_BY_NAME" VARCHAR(20 CHAR) DEFAULT '',
|
"CREATE_BY_NAME" VARCHAR(20 CHAR) DEFAULT '',
|
||||||
"UPDATE_TIME" TIMESTAMP(6),
|
"UPDATE_TIME" TIMESTAMP(6),
|
||||||
"UPDATE_BY" BIGINT DEFAULT 0,
|
"UPDATE_BY" BIGINT DEFAULT 0,
|
||||||
"UPDATE_BY_NAME" VARCHAR(20 CHAR) DEFAULT '',
|
"UPDATE_BY_NAME" VARCHAR(20 CHAR) DEFAULT '',
|
||||||
"DEL_FLAG" TINYINT DEFAULT 1
|
"DEL_FLAG" TINYINT DEFAULT 1,
|
||||||
|
"AMOUNT_JSON" CLOB
|
||||||
)
|
)
|
||||||
;
|
;
|
||||||
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."SYS_ORG_CODE" IS '所属部门';
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."SYS_ORG_CODE" IS '所属部门';
|
||||||
@@ -88,6 +127,7 @@ COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."UPDATE_TIME" IS '最
|
|||||||
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."UPDATE_BY" IS '最后修改人用户ID';
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."UPDATE_BY" IS '最后修改人用户ID';
|
||||||
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."UPDATE_BY_NAME" IS '修改人姓名';
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."UPDATE_BY_NAME" IS '修改人姓名';
|
||||||
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."DEL_FLAG" IS '删除标记:0-无状态,1-正常,2-已删除';
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."DEL_FLAG" IS '删除标记:0-无状态,1-正常,2-已删除';
|
||||||
|
COMMENT ON COLUMN "NGWL_TEST_WMS"."RECEIPT_ORDER_ACCOUNT"."AMOUNT_JSON" IS '计算价格参数json';
|
||||||
|
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Primary Key structure for table RECEIPT_ORDER_ACCOUNT
|
-- Primary Key structure for table RECEIPT_ORDER_ACCOUNT
|
||||||
|
|||||||
Reference in New Issue
Block a user