|
|
@@ -120,21 +120,31 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
|
|
120
|
120
|
businessRpOutboundMapper.deleteByReportId(businessRpReport.getId());
|
|
121
|
121
|
List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
|
|
122
|
122
|
for (BusinessRpInbound br: inList) {
|
|
|
123
|
+ br.setCreatedate(new Date());
|
|
|
124
|
+ br.setUpdatedate(new Date());
|
|
123
|
125
|
businessRpInboundMapper.insertSelective(br);
|
|
124
|
126
|
}
|
|
125
|
127
|
List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
|
|
126
|
128
|
for (BusinessRpOutbound ou: outlist) {
|
|
|
129
|
+ ou.setCreatedate(new Date());
|
|
|
130
|
+ ou.setUpdatedate(new Date());
|
|
127
|
131
|
businessRpOutboundMapper.insertSelective(ou);
|
|
128
|
132
|
}
|
|
129
|
133
|
}else{//保存
|
|
|
134
|
+ businessRpReport.setCreateTime(new Date());
|
|
|
135
|
+ businessRpReport.setUpdateTime(new Date());
|
|
130
|
136
|
businessRpReportMapper.insert(businessRpReport);
|
|
131
|
137
|
List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
|
|
132
|
138
|
for (BusinessRpInbound br: inList) {
|
|
|
139
|
+ br.setCreatedate(new Date());
|
|
|
140
|
+ br.setUpdatedate(new Date());
|
|
133
|
141
|
br.setRpReportId(businessRpReport.getId());
|
|
134
|
142
|
businessRpInboundMapper.insertSelective(br);
|
|
135
|
143
|
}
|
|
136
|
144
|
List<BusinessRpOutbound> outlist =businessRpReport.getBusinessRpOutboundList();
|
|
137
|
145
|
for (BusinessRpOutbound ou: outlist) {
|
|
|
146
|
+ ou.setCreatedate(new Date());
|
|
|
147
|
+ ou.setUpdatedate(new Date());
|
|
138
|
148
|
ou.setRpReportId(businessRpReport.getId());
|
|
139
|
149
|
businessRpOutboundMapper.insertSelective(ou);
|
|
140
|
150
|
}
|
|
|
@@ -155,6 +165,8 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
|
|
155
|
165
|
businessRpOutboundMapper.insertSelective(ou);
|
|
156
|
166
|
}
|
|
157
|
167
|
}else{//保存
|
|
|
168
|
+ businessRpReport.setCreateTime(new Date());
|
|
|
169
|
+ businessRpReport.setUpdateTime(new Date());
|
|
158
|
170
|
businessRpReportMapper.insert(businessRpReport);
|
|
159
|
171
|
List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
|
|
160
|
172
|
for (BusinessRpInbound br: inList) {
|