|
|
@@ -94,35 +94,37 @@ public class PushServiceImpl implements PushsService{
|
|
94
|
94
|
criteria.andTypeIn(listType);//默认查询通知单类型数据
|
|
95
|
95
|
List<BusinessStoreWareDetail> json = businessStoreWareDetailMapper.selectByExample(businessStoreWareDetailExample);
|
|
96
|
96
|
mains.put("fromData",json);//从表数据以json形式插入主表数据
|
|
97
|
|
-
|
|
98
|
97
|
//处理储备粮中的通知单
|
|
99
|
|
- if(null != mains.get("create_unit") && ("1").equals(mains.get("create_unit"))){
|
|
100
|
|
- //数量转化为公斤
|
|
101
|
|
- int a = Integer.valueOf(mains.get("shiping_count").toString())*1000;
|
|
102
|
|
- mains.put("shiping_count", a);
|
|
103
|
|
- //传字段 计划文件号 和摘要 用于分仓保管账
|
|
104
|
|
- for (BusinessStoreWareDetail businessStoreWareDetail : json) {
|
|
105
|
|
- BusinessNoticeReceive businessNoticeReceive =new BusinessNoticeReceive();
|
|
106
|
|
- businessNoticeReceive.setHouseId(businessStoreWareDetail.getHouseId());
|
|
107
|
|
- businessNoticeReceive.setWareHouseId(businessStoreWareDetail.getWareHouseId());
|
|
108
|
|
- businessNoticeReceive.setGrainKind(businessStoreWareDetail.getGrainKind());
|
|
109
|
|
- businessNoticeReceive.setGrainAttribute(businessStoreWareDetail.getGrainAttribute());
|
|
110
|
|
- businessNoticeReceive.setOrgId(businessStoreWareDetail.getOrgId());
|
|
111
|
|
- List<BusinessNoticeReceive> noticeRecevieList = receiveNoticeService.queryByExample(null, null, businessNoticeReceive, null,null);
|
|
112
|
|
- if(null != noticeRecevieList && noticeRecevieList.size()>0){
|
|
113
|
|
- String jhwjh = noticeRecevieList.get(0).getNoticeNumber();
|
|
114
|
|
- String zy = noticeRecevieList.get(0).getYwtype();
|
|
115
|
|
- if(("1").equals(zy)){ //1收储 2 销售 3轮换
|
|
116
|
|
- zy = "收储";
|
|
117
|
|
- }else if(("2").equals(zy)){
|
|
118
|
|
- zy = "销售";
|
|
119
|
|
- }else if(("3").equals(zy)){
|
|
120
|
|
- zy = "轮换";
|
|
|
98
|
+ if(null != mains.get("create_unit")){
|
|
|
99
|
+ if(mains.get("create_unit").equals(1)){
|
|
|
100
|
+ //数量转化为公斤
|
|
|
101
|
+ int a = Integer.valueOf(mains.get("shiping_count").toString())*1000;
|
|
|
102
|
+ mains.put("shiping_count", a);
|
|
|
103
|
+ //传字段 计划文件号 和摘要 用于分仓保管账
|
|
|
104
|
+ for (BusinessStoreWareDetail businessStoreWareDetail : json) {
|
|
|
105
|
+ BusinessNoticeReceive businessNoticeReceive =new BusinessNoticeReceive();
|
|
|
106
|
+ businessNoticeReceive.setHouseId(businessStoreWareDetail.getHouseId());
|
|
|
107
|
+ businessNoticeReceive.setWareHouseId(businessStoreWareDetail.getWareHouseId());
|
|
|
108
|
+ businessNoticeReceive.setGrainKind(businessStoreWareDetail.getGrainKind());
|
|
|
109
|
+ businessNoticeReceive.setGrainAttribute(businessStoreWareDetail.getGrainAttribute());
|
|
|
110
|
+ businessNoticeReceive.setOrgId(businessStoreWareDetail.getOrgId());
|
|
|
111
|
+ List<BusinessNoticeReceive> noticeRecevieList = receiveNoticeService.queryByExample(null, null, businessNoticeReceive, null,null);
|
|
|
112
|
+ if(null != noticeRecevieList && noticeRecevieList.size()>0){
|
|
|
113
|
+ String jhwjh = noticeRecevieList.get(0).getNoticeNumber();
|
|
|
114
|
+ String zy = noticeRecevieList.get(0).getYwtype();
|
|
|
115
|
+ if(("1").equals(zy)){ //1收储 2 销售 3轮换
|
|
|
116
|
+ zy = "收储";
|
|
|
117
|
+ }else if(("2").equals(zy)){
|
|
|
118
|
+ zy = "销售";
|
|
|
119
|
+ }else if(("3").equals(zy)){
|
|
|
120
|
+ zy = "轮换";
|
|
|
121
|
+ }
|
|
|
122
|
+ mains.put("jhwjh", jhwjh);
|
|
|
123
|
+ mains.put("zy", zy);
|
|
121
|
124
|
}
|
|
122
|
|
- mains.put("jhwjh", jhwjh);
|
|
123
|
|
- mains.put("zy", zy);
|
|
124
|
125
|
}
|
|
125
|
126
|
}
|
|
|
127
|
+
|
|
126
|
128
|
}
|
|
127
|
129
|
}
|
|
128
|
130
|
|