|
@@ -557,26 +557,24 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public String editWarehouse(WarehouseBaseInfo warehouseBaseInfo) {
|
|
public String editWarehouse(WarehouseBaseInfo warehouseBaseInfo) {
|
|
- WarehouseBaseInfo warehouseBaseInfo1=this.selectById(warehouseBaseInfo.getId());
|
|
|
|
|
|
+ WarehouseBaseInfo warehouseBaseInfo1 = this.selectById(warehouseBaseInfo.getId());
|
|
String personPhone = warehouseBaseInfo.getPersonPhone();
|
|
String personPhone = warehouseBaseInfo.getPersonPhone();
|
|
String otherPhone = warehouseBaseInfo.getOtherPersonPhone();
|
|
String otherPhone = warehouseBaseInfo.getOtherPersonPhone();
|
|
- if(personPhone != null){
|
|
|
|
- if(!personPhone.equals(warehouseBaseInfo1.getPersonPhone())){
|
|
|
|
|
|
+ if (personPhone != null) {
|
|
|
|
+ if (!personPhone.equals(warehouseBaseInfo1.getPersonPhone())) {
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
}
|
|
}
|
|
- }
|
|
|
|
- else{
|
|
|
|
- if(warehouseBaseInfo1.getPersonPhone()!=null){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (warehouseBaseInfo1.getPersonPhone() != null) {
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if(otherPhone != null){
|
|
|
|
- if(!otherPhone.equals(warehouseBaseInfo1.getOtherPersonPhone())){
|
|
|
|
|
|
+ if (otherPhone != null) {
|
|
|
|
+ if (!otherPhone.equals(warehouseBaseInfo1.getOtherPersonPhone())) {
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
}
|
|
}
|
|
- }
|
|
|
|
- else{
|
|
|
|
- if(warehouseBaseInfo1.getOtherPersonPhone()!=null){
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (warehouseBaseInfo1.getOtherPersonPhone() != null) {
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
cacheComponent.delPrefixKey(Const.SELF_WAREHOUSE);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -837,8 +835,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
Calendar calendar = Calendar.getInstance();
|
|
Calendar calendar = Calendar.getInstance();
|
|
calendar.add(Calendar.MONTH, -3);
|
|
calendar.add(Calendar.MONTH, -3);
|
|
List<ContractManagementInfo> temp = new ArrayList();
|
|
List<ContractManagementInfo> temp = new ArrayList();
|
|
- List<ContractManagementInfo> listRedis = cacheComponent.getObjList(Const.ADMIN_CONTRACTINFO+compId+flag,ContractManagementInfo.class);
|
|
|
|
- if(listRedis != null && listRedis.size() > 0 ){
|
|
|
|
|
|
+ List<ContractManagementInfo> listRedis = cacheComponent.getObjList(Const.ADMIN_CONTRACTINFO + compId + flag, ContractManagementInfo.class);
|
|
|
|
+ if (listRedis != null && listRedis.size() > 0) {
|
|
return listRedis;
|
|
return listRedis;
|
|
}
|
|
}
|
|
//查所有合同编号
|
|
//查所有合同编号
|
|
@@ -857,7 +855,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查采购合同编号
|
|
//查采购合同编号
|
|
@@ -876,7 +874,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查销售合同编号
|
|
//查销售合同编号
|
|
@@ -896,7 +894,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查采购订单审核合同编号
|
|
//查采购订单审核合同编号
|
|
@@ -925,7 +923,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.addAll(contractManagementInfoList);
|
|
temp.addAll(contractManagementInfoList);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查销售订单审核合同编号
|
|
//查销售订单审核合同编号
|
|
@@ -953,7 +951,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.addAll(contractManagementInfoList);
|
|
temp.addAll(contractManagementInfoList);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查销售合同编号,以及移库任务编号
|
|
//查销售合同编号,以及移库任务编号
|
|
@@ -963,7 +961,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
.eq("status_flag", "1")
|
|
.eq("status_flag", "1")
|
|
.eq("contract_type", "1")
|
|
.eq("contract_type", "1")
|
|
- .ge("update_date",DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
|
|
|
|
+ .ge("update_date", DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
@@ -1015,7 +1013,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
.eq("task_type_key", "3")
|
|
.eq("task_type_key", "3")
|
|
.eq("in_out_flag", "1")
|
|
.eq("in_out_flag", "1")
|
|
- .ge("update_date",DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
|
|
|
|
+ .ge("update_date", DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (InOutWarehouseTask inOutWarehouseTask : inOutWarehouseTaskList) {
|
|
for (InOutWarehouseTask inOutWarehouseTask : inOutWarehouseTaskList) {
|
|
ContractManagementInfo contractManagementInfo = new ContractManagementInfo();
|
|
ContractManagementInfo contractManagementInfo = new ContractManagementInfo();
|
|
@@ -1055,14 +1053,13 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
//移库看成自运
|
|
//移库看成自运
|
|
contractManagementInfo.setDeliverType("1");
|
|
contractManagementInfo.setDeliverType("1");
|
|
contractManagementInfo.setContractNo(inOutWarehouseTask.getMoveTaskNo());
|
|
contractManagementInfo.setContractNo(inOutWarehouseTask.getMoveTaskNo());
|
|
- ContractManagementInfo contractManagementInfo1=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
|
|
- .eq("contract_no",inOutWarehouseTask.getWarehouseName())
|
|
|
|
- .eq("comp_id",inOutWarehouseTask.getCompId()));
|
|
|
|
- if (contractManagementInfo1!=null&&"定价采购".equals(contractManagementInfo1.getPriceType())) {
|
|
|
|
|
|
+ ContractManagementInfo contractManagementInfo1 = contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
|
|
+ .eq("contract_no", inOutWarehouseTask.getWarehouseName())
|
|
|
|
+ .eq("comp_id", inOutWarehouseTask.getCompId()));
|
|
|
|
+ if (contractManagementInfo1 != null && "定价采购".equals(contractManagementInfo1.getPriceType())) {
|
|
contractManagementInfo.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo1.getUnitContractPrice())));
|
|
contractManagementInfo.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo1.getUnitContractPrice())));
|
|
contractManagementInfo.setPriceType(contractManagementInfo1.getPriceType());
|
|
contractManagementInfo.setPriceType(contractManagementInfo1.getPriceType());
|
|
- }
|
|
|
|
- else if(contractManagementInfo1!=null&&"随行就市".equals(contractManagementInfo1.getPriceType())){
|
|
|
|
|
|
+ } else if (contractManagementInfo1 != null && "随行就市".equals(contractManagementInfo1.getPriceType())) {
|
|
contractManagementInfo.setPriceType(contractManagementInfo1.getPriceType());
|
|
contractManagementInfo.setPriceType(contractManagementInfo1.getPriceType());
|
|
}
|
|
}
|
|
contractManagementInfo.setGrade(inOutWarehouseTask.getGrade());
|
|
contractManagementInfo.setGrade(inOutWarehouseTask.getGrade());
|
|
@@ -1072,7 +1069,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查采购合同编号(不包含自运),以及移库任务编号
|
|
//查采购合同编号(不包含自运),以及移库任务编号
|
|
@@ -1172,7 +1169,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查采购合同编号(不包含自运),以及移库任务编号,销售合同
|
|
//查采购合同编号(不包含自运),以及移库任务编号,销售合同
|
|
@@ -1186,7 +1183,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("contract_type", "2")
|
|
.eq("contract_type", "2")
|
|
.eq("status_flag", "1")
|
|
.eq("status_flag", "1")
|
|
.eq("deliver_type", "2")
|
|
.eq("deliver_type", "2")
|
|
- .ge("update_date",DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
|
|
|
|
+ .ge("update_date", DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
@@ -1240,7 +1237,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("status_flag", "1")
|
|
.eq("status_flag", "1")
|
|
.eq("contract_type", "1")
|
|
.eq("contract_type", "1")
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
- .ge("update_date",DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
|
|
|
|
+ .ge("update_date", DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (ContractManagementInfo contractManagementInfo1 : contractManagementInfoList1) {
|
|
for (ContractManagementInfo contractManagementInfo1 : contractManagementInfoList1) {
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
@@ -1287,7 +1284,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
.eq("task_type_key", "3")
|
|
.eq("task_type_key", "3")
|
|
.eq("in_out_flag", "1")
|
|
.eq("in_out_flag", "1")
|
|
- .ge("update_date",DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
|
|
|
|
+ .ge("update_date", DateUtil.formatDate(calendar.getTime(), DateUtils.DATE_FMT_YYYY_MM_DD))
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (InOutWarehouseTask inOutWarehouseTask : inOutWarehouseTaskList) {
|
|
for (InOutWarehouseTask inOutWarehouseTask : inOutWarehouseTaskList) {
|
|
ContractManagementInfo contractManagementInfo1 = new ContractManagementInfo();
|
|
ContractManagementInfo contractManagementInfo1 = new ContractManagementInfo();
|
|
@@ -1324,17 +1321,17 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
contractManagementInfo1.setFireDirectionList(fireList);
|
|
contractManagementInfo1.setFireDirectionList(fireList);
|
|
}
|
|
}
|
|
contractManagementInfo1.setContractNo(inOutWarehouseTask.getMoveTaskNo());
|
|
contractManagementInfo1.setContractNo(inOutWarehouseTask.getMoveTaskNo());
|
|
- ContractManagementInfo contractManagementInfo=contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
|
|
- .eq("contract_no",inOutWarehouseTask.getWarehouseName())
|
|
|
|
- .eq("comp_id",inOutWarehouseTask.getCompId()));
|
|
|
|
- if (contractManagementInfo!=null&&contractManagementInfo.getUnitContractPrice() != null) {
|
|
|
|
|
|
+ ContractManagementInfo contractManagementInfo = contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
|
|
+ .eq("contract_no", inOutWarehouseTask.getWarehouseName())
|
|
|
|
+ .eq("comp_id", inOutWarehouseTask.getCompId()));
|
|
|
|
+ if (contractManagementInfo != null && contractManagementInfo.getUnitContractPrice() != null) {
|
|
contractManagementInfo1.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo.getUnitContractPrice())));
|
|
contractManagementInfo1.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo.getUnitContractPrice())));
|
|
}
|
|
}
|
|
//自运采购的移库
|
|
//自运采购的移库
|
|
ContractManagementInfo contractManagementInfo2 = contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
ContractManagementInfo contractManagementInfo2 = contractManagementInfoService.selectOne(new EntityWrapper<ContractManagementInfo>()
|
|
.eq("comp_id", inOutWarehouseTask.getCompId())
|
|
.eq("comp_id", inOutWarehouseTask.getCompId())
|
|
.eq("contract_no", inOutWarehouseTask.getSendWarehouse()));
|
|
.eq("contract_no", inOutWarehouseTask.getSendWarehouse()));
|
|
- if (contractManagementInfo2 != null&&contractManagementInfo2.getUnitContractPrice()!=null) {
|
|
|
|
|
|
+ if (contractManagementInfo2 != null && contractManagementInfo2.getUnitContractPrice() != null) {
|
|
contractManagementInfo1.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo2.getUnitContractPrice())));
|
|
contractManagementInfo1.setContractPrice(Float.valueOf(String.valueOf(contractManagementInfo2.getUnitContractPrice())));
|
|
}
|
|
}
|
|
//移库看成自运
|
|
//移库看成自运
|
|
@@ -1346,7 +1343,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
}
|
|
}
|
|
// temp = temp.stream().sorted(Comparator.comparing(ContractManagementInfo::getCreateDate)).collect(Collectors.toList());
|
|
// temp = temp.stream().sorted(Comparator.comparing(ContractManagementInfo::getCreateDate)).collect(Collectors.toList());
|
|
// temp = temp.subList(temp.size()-100,temp.size());
|
|
// temp = temp.subList(temp.size()-100,temp.size());
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//采购合同不包含自运
|
|
//采购合同不包含自运
|
|
@@ -1366,7 +1363,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
|
|
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查可派任务的收购合同
|
|
//查可派任务的收购合同
|
|
@@ -1379,12 +1376,12 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
//一个收购合同只能选一次
|
|
//一个收购合同只能选一次
|
|
- InOutWarehouseTask inOutWarehouseTask=iInOutWarehouseTaskService.selectOne(new EntityWrapper<InOutWarehouseTask>()
|
|
|
|
|
|
+ InOutWarehouseTask inOutWarehouseTask = iInOutWarehouseTaskService.selectOne(new EntityWrapper<InOutWarehouseTask>()
|
|
.eq("comp_id", contractManagementInfo.getCompId())
|
|
.eq("comp_id", contractManagementInfo.getCompId())
|
|
.eq("contract_no", contractManagementInfo.getContractNo())
|
|
.eq("contract_no", contractManagementInfo.getContractNo())
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
- if (inOutWarehouseTask==null){
|
|
|
|
|
|
+ if (inOutWarehouseTask == null) {
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
.eq("contract_id", contractManagementInfo.getId()));
|
|
.eq("contract_id", contractManagementInfo.getId()));
|
|
contractManagementInfo.setGoodsName(contractGoodsInfo.getGoodsName());
|
|
contractManagementInfo.setGoodsName(contractGoodsInfo.getGoodsName());
|
|
@@ -1392,7 +1389,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//查收购合同
|
|
//查收购合同
|
|
@@ -1404,13 +1401,13 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
.eq("delete_flag", "0")
|
|
.eq("delete_flag", "0")
|
|
.orderBy("update_date", false));
|
|
.orderBy("update_date", false));
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
for (ContractManagementInfo contractManagementInfo : contractManagementInfoList) {
|
|
- ContractGoodsInfo contractGoodsInfo = contractGoodsInfoService.selectOne(new EntityWrapper<ContractGoodsInfo>()
|
|
|
|
- .eq("contract_id", contractManagementInfo.getId()));
|
|
|
|
- contractManagementInfo.setGoodsName(contractGoodsInfo.getGoodsName());
|
|
|
|
- contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
|
|
- temp.add(contractManagementInfo);
|
|
|
|
|
|
+ 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);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//未结算的合同编号,用于请款收款下拉
|
|
//未结算的合同编号,用于请款收款下拉
|
|
@@ -1429,7 +1426,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
contractManagementInfo.setGoodsNameKey(contractGoodsInfo.getGoodsNameKey());
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
//flag==2 查所有执行中的合同编号,以及移库任务编号
|
|
//flag==2 查所有执行中的合同编号,以及移库任务编号
|
|
@@ -1459,7 +1456,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
contractManagementInfo.setInOutType("移库入库");
|
|
contractManagementInfo.setInOutType("移库入库");
|
|
temp.add(contractManagementInfo);
|
|
temp.add(contractManagementInfo);
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO+compId+flag,JSONObject.toJSONString(temp),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.ADMIN_CONTRACTINFO + compId + flag, JSONObject.toJSONString(temp), 60 * 60 * 24);
|
|
return temp;
|
|
return temp;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1479,8 +1476,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
}
|
|
}
|
|
- List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge,WarehouseBaseInfo.class);
|
|
|
|
- if(listRedis != null && listRedis.size() > 0 ){
|
|
|
|
|
|
+ List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE + personCharge, WarehouseBaseInfo.class);
|
|
|
|
+ if (listRedis != null && listRedis.size() > 0) {
|
|
return listRedis;
|
|
return listRedis;
|
|
}
|
|
}
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
@@ -1592,7 +1589,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.SELF_WAREHOUSE + personCharge, JSONObject.toJSONString(warehouseBaseInfoList), 60 * 60 * 24);
|
|
return warehouseBaseInfoList;
|
|
return warehouseBaseInfoList;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1611,8 +1608,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
if (personCharge == null || personCharge.isEmpty()) {
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
personCharge = AuthSecurityUtils.getStaffById(AuthSecurityUtils.getCurrentUserId()).getStaffMobilePhone();
|
|
}
|
|
}
|
|
- List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE+personCharge+compId,WarehouseBaseInfo.class);
|
|
|
|
- if(listRedis != null && listRedis.size() > 0 ){
|
|
|
|
|
|
+ List<WarehouseBaseInfo> listRedis = cacheComponent.getObjList(Const.SELF_WAREHOUSE + personCharge + compId, WarehouseBaseInfo.class);
|
|
|
|
+ if (listRedis != null && listRedis.size() > 0) {
|
|
return listRedis;
|
|
return listRedis;
|
|
}
|
|
}
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
Wrapper<WarehouseBaseInfo> warehouseBaseInfoWrapper = new EntityWrapper<>();
|
|
@@ -1739,7 +1736,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
- cacheComponent.putRaw(Const.SELF_WAREHOUSE+personCharge+compId,JSONObject.toJSONString(warehouseBaseInfoList),60*60*24);
|
|
|
|
|
|
+ cacheComponent.putRaw(Const.SELF_WAREHOUSE + personCharge + compId, JSONObject.toJSONString(warehouseBaseInfoList), 60 * 60 * 24);
|
|
return warehouseBaseInfoList;
|
|
return warehouseBaseInfoList;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2295,12 +2292,12 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
ExportVView exportVView = dataList.get(i);
|
|
ExportVView exportVView = dataList.get(i);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
rowx.setHeightInPoints(20);
|
|
rowx.setHeightInPoints(20);
|
|
- if(!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getJiaorenli())){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getJiaorenli())) {
|
|
//水分累计和
|
|
//水分累计和
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
}
|
|
}
|
|
@@ -2313,7 +2310,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
jiaorenliTotal = jiaorenliTotal + ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getJiaorenli()) ? exportVView.getJiaorenli() : "0")) * ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getNetWeight()) ? exportVView.getNetWeight() : "0"))));
|
|
jiaorenliTotal = jiaorenliTotal + ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getJiaorenli()) ? exportVView.getJiaorenli() : "0")) * ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getNetWeight()) ? exportVView.getNetWeight() : "0"))));
|
|
// netWeightPriceTotal = netWeightPriceTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeightPrice()!=null?exportVView.getNetWeightPrice():"0")));
|
|
// netWeightPriceTotal = netWeightPriceTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeightPrice()!=null?exportVView.getNetWeightPrice():"0")));
|
|
netWeightTotal = netWeightTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTotal = netWeightTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
- amountIngPayableTotal = amountIngPayableTotal + (exportVView.getAmountIngPayable()!=null ? exportVView.getAmountIngPayable() : 0);
|
|
|
|
|
|
+ amountIngPayableTotal = amountIngPayableTotal + (exportVView.getAmountIngPayable() != null ? exportVView.getAmountIngPayable() : 0);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -2701,21 +2698,21 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
cell.setCellValue(editDouble(exportVView.getUnitDeduction()));
|
|
cell.setCellValue(editDouble(exportVView.getUnitDeduction()));
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(35);
|
|
cell = rowx.createCell(35);
|
|
- if(exportVView.getPureWeightPrice() == null){
|
|
|
|
|
|
+ if (exportVView.getPureWeightPrice() == null) {
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice())).toString());
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice())).toString());
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice() * 1000)).toString());
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice() * 1000)).toString());
|
|
}
|
|
}
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(36);
|
|
cell = rowx.createCell(36);
|
|
- if(exportVView.getPureWeight() == null){
|
|
|
|
|
|
+ if (exportVView.getPureWeight() == null) {
|
|
cell.setCellValue(editFloat(exportVView.getPureWeight()));
|
|
cell.setCellValue(editFloat(exportVView.getPureWeight()));
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
cell.setCellValue(editDouble(Double.valueOf(exportVView.getPureWeight()) / 1000));
|
|
cell.setCellValue(editDouble(Double.valueOf(exportVView.getPureWeight()) / 1000));
|
|
}
|
|
}
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(37);
|
|
cell = rowx.createCell(37);
|
|
- cell.setCellValue(editDouble(exportVView.getAmountIngPayable()!=null ? exportVView.getAmountIngPayable() : 0));
|
|
|
|
|
|
+ cell.setCellValue(editDouble(exportVView.getAmountIngPayable() != null ? exportVView.getAmountIngPayable() : 0));
|
|
cell.setCellStyle(contextstyle);
|
|
cell.setCellStyle(contextstyle);
|
|
cell = rowx.createCell(38);
|
|
cell = rowx.createCell(38);
|
|
cell.setCellValue(new Formatter().format("%.2f", editDouble(exportVView.getAmountEdPayable())).toString());
|
|
cell.setCellValue(new Formatter().format("%.2f", editDouble(exportVView.getAmountEdPayable())).toString());
|
|
@@ -3171,12 +3168,12 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
ExportVView exportVView = dataList.get(i);
|
|
ExportVView exportVView = dataList.get(i);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
rowx.setHeightInPoints(20);
|
|
rowx.setHeightInPoints(20);
|
|
- if(!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getJiaorenli())){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getJiaorenli())) {
|
|
//水分累计和
|
|
//水分累计和
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
}
|
|
}
|
|
@@ -3189,7 +3186,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
jiaorenliTotal = jiaorenliTotal + ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getJiaorenli()) ? exportVView.getJiaorenli() : "0")) * ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getNetWeight()) ? exportVView.getNetWeight() : "0"))));
|
|
jiaorenliTotal = jiaorenliTotal + ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getJiaorenli()) ? exportVView.getJiaorenli() : "0")) * ((Double.parseDouble(!StringUtils.isEmpty(exportVView.getNetWeight()) ? exportVView.getNetWeight() : "0"))));
|
|
// netWeightPriceTotal = netWeightPriceTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeightPrice()!=null?exportVView.getNetWeightPrice():"0")));
|
|
// netWeightPriceTotal = netWeightPriceTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeightPrice()!=null?exportVView.getNetWeightPrice():"0")));
|
|
netWeightTotal = netWeightTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTotal = netWeightTotal + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
- amountIngPayableTotal = amountIngPayableTotal + (exportVView.getAmountIngPayable()!=null ? exportVView.getAmountIngPayable() : 0);
|
|
|
|
|
|
+ amountIngPayableTotal = amountIngPayableTotal + (exportVView.getAmountIngPayable() != null ? exportVView.getAmountIngPayable() : 0);
|
|
}
|
|
}
|
|
HSSFRow rowp = sheet.createRow((int) (rownum));
|
|
HSSFRow rowp = sheet.createRow((int) (rownum));
|
|
rowp.setHeightInPoints(20);
|
|
rowp.setHeightInPoints(20);
|
|
@@ -3562,21 +3559,21 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
cell.setCellValue(editDouble(exportVView.getUnitDeduction()));
|
|
cell.setCellValue(editDouble(exportVView.getUnitDeduction()));
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(35);
|
|
cell = rowx.createCell(35);
|
|
- if(exportVView.getPureWeightPrice() == null){
|
|
|
|
|
|
+ if (exportVView.getPureWeightPrice() == null) {
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice())).toString());
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice())).toString());
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice() * 1000)).toString());
|
|
cell.setCellValue(new Formatter().format("%.3f", editDouble(exportVView.getPureWeightPrice() * 1000)).toString());
|
|
}
|
|
}
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(36);
|
|
cell = rowx.createCell(36);
|
|
- if(exportVView.getPureWeight() == null){
|
|
|
|
|
|
+ if (exportVView.getPureWeight() == null) {
|
|
cell.setCellValue(editFloat(exportVView.getPureWeight()));
|
|
cell.setCellValue(editFloat(exportVView.getPureWeight()));
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
cell.setCellValue(editDouble(Double.valueOf(exportVView.getPureWeight()) / 1000));
|
|
cell.setCellValue(editDouble(Double.valueOf(exportVView.getPureWeight()) / 1000));
|
|
}
|
|
}
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(37);
|
|
cell = rowx.createCell(37);
|
|
- cell.setCellValue(editDouble(exportVView.getAmountIngPayable()!=null ? exportVView.getAmountIngPayable() : 0));
|
|
|
|
|
|
+ cell.setCellValue(editDouble(exportVView.getAmountIngPayable() != null ? exportVView.getAmountIngPayable() : 0));
|
|
cell.setCellStyle(contextstyle);
|
|
cell.setCellStyle(contextstyle);
|
|
cell = rowx.createCell(38);
|
|
cell = rowx.createCell(38);
|
|
cell.setCellValue(new Formatter().format("%.2f", editDouble(exportVView.getAmountEdPayable())).toString());
|
|
cell.setCellValue(new Formatter().format("%.2f", editDouble(exportVView.getAmountEdPayable())).toString());
|
|
@@ -4043,12 +4040,12 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
Double netWeightTmp = 0d;//应收合计
|
|
Double netWeightTmp = 0d;//应收合计
|
|
for (int i = 0; i < dataList.size(); i++) {
|
|
for (int i = 0; i < dataList.size(); i++) {
|
|
ExportVView exportVView = dataList.get(i);
|
|
ExportVView exportVView = dataList.get(i);
|
|
- if(!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getJiaorenli())){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getJiaorenli())) {
|
|
//水分累计和
|
|
//水分累计和
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
}
|
|
}
|
|
@@ -4357,7 +4354,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
cell.setCellValue(date);
|
|
cell.setCellValue(date);
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
cell = rowx.createCell(7);
|
|
cell = rowx.createCell(7);
|
|
- if(!StringUtils.isEmpty(exportVView.getContractNo())){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(exportVView.getContractNo())) {
|
|
cell.setCellValue(editString(exportVView.getContractNo()));
|
|
cell.setCellValue(editString(exportVView.getContractNo()));
|
|
}
|
|
}
|
|
cell.setCellStyle(styleDetail);
|
|
cell.setCellStyle(styleDetail);
|
|
@@ -4942,12 +4939,12 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
ExportVView exportVView = dataList.get(i);
|
|
ExportVView exportVView = dataList.get(i);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
HSSFRow rowx = sheet.createRow((int) rownum);
|
|
rowx.setHeightInPoints(20);
|
|
rowx.setHeightInPoints(20);
|
|
- if(!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
- &&!StringUtils.isEmpty(exportVView.getJiaorenli())){
|
|
|
|
|
|
+ if (!StringUtils.isEmpty(exportVView.getWaterContent())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImpurity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getMildewGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getImperfectGrain())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getBulkDensity())
|
|
|
|
+ && !StringUtils.isEmpty(exportVView.getJiaorenli())) {
|
|
//水分累计和
|
|
//水分累计和
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
netWeightTmp = netWeightTmp + (Double.valueOf(String.valueOf(exportVView.getNetWeight() != null ? exportVView.getNetWeight() : "0")));
|
|
}
|
|
}
|
|
@@ -5415,6 +5412,7 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
public Integer getTemWareHouseCountByCondition(Map<String, Object> pageView) {
|
|
public Integer getTemWareHouseCountByCondition(Map<String, Object> pageView) {
|
|
return baseMapper.getTemWareHouseCountByCondition(pageView);
|
|
return baseMapper.getTemWareHouseCountByCondition(pageView);
|
|
}
|
|
}
|
|
|
|
+
|
|
private String addDateOneDay(Date date) {
|
|
private String addDateOneDay(Date date) {
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
|
|
sdf.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai"));
|
|
@@ -5581,8 +5579,8 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- *
|
|
|
|
* 库点利润详情列表
|
|
* 库点利润详情列表
|
|
|
|
+ *
|
|
* @param warehouseBaseInfo
|
|
* @param warehouseBaseInfo
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@@ -5612,9 +5610,15 @@ public class WarehouseBaseInfoServiceImpl extends ServiceImpl<WarehouseBaseInfoM
|
|
return page;
|
|
return page;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 库点利润列表
|
|
|
|
+ *
|
|
|
|
+ * @param warehouseBaseInfo
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@Override
|
|
@Override
|
|
public WarehouseBaseInfo selectWarehouseChart(WarehouseBaseInfo warehouseBaseInfo) {
|
|
public WarehouseBaseInfo selectWarehouseChart(WarehouseBaseInfo warehouseBaseInfo) {
|
|
- WarehouseBaseInfo warehouseBaseInfo1=new WarehouseBaseInfo();
|
|
|
|
|
|
+ WarehouseBaseInfo warehouseBaseInfo1 = new WarehouseBaseInfo();
|
|
Map<String, Object> pageView = new HashMap<>();
|
|
Map<String, Object> pageView = new HashMap<>();
|
|
// 公司ID
|
|
// 公司ID
|
|
pageView.put("compId", AuthSecurityUtils.getCurrentUserInfo().getCompId());
|
|
pageView.put("compId", AuthSecurityUtils.getCurrentUserInfo().getCompId());
|