|
@@ -878,7 +878,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
|
return temp;
|
|
|
}
|
|
|
- //查销售合同编号
|
|
|
+ //查销售合同编号、代储合同
|
|
|
else if (flag == 1) {
|
|
|
|
|
|
List<ContractManagementInfo> contractManagementInfoList = contractManagementInfoService.selectList(new EntityWrapper<ContractManagementInfo>()
|
|
@@ -895,6 +895,21 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
|
temp.add(contractManagementInfo);
|
|
|
}
|
|
|
+ List<ContractManagementInfo> contractManagementInfoList1 = contractManagementInfoService.selectList(new EntityWrapper<ContractManagementInfo>()
|
|
|
+ .eq("comp_id", compId)
|
|
|
+ .eq("contract_type", "2")
|
|
|
+ .eq("agreement_type", "代储合同")
|
|
|
+ .eq("status_flag", "1")
|
|
|
+ .eq("delete_flag", "0")
|
|
|
+ .orderBy("update_date", false));
|
|
|
+
|
|
|
+ for (ContractManagementInfo contractManagementInfo : contractManagementInfoList1) {
|
|
|
+ ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
|
+ .eq("contract_id", contractManagementInfo.getId()));
|
|
|
+ contractManagementInfo.setGoodsName(contractGoodsInfo.getGoodsName());
|
|
|
+ contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
|
+ temp.add(contractManagementInfo);
|
|
|
+ }
|
|
|
cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
|
return temp;
|
|
|
}
|