|
|
@@ -108,6 +108,8 @@ public class OutServiceImpl implements OutService {
|
|
108
|
108
|
if (stack.getIsLayer().equals("0")) {
|
|
109
|
109
|
for (int i = 0; i < listOutRecord.size(); i++) {
|
|
110
|
110
|
listOutRecord.get(i).setBackFlag("1");
|
|
|
111
|
+// 根据出库单id修改出库单状态为已出库
|
|
|
112
|
+ int i1 = distributionMapper.updateCancleFlag(listOutRecord.get(i).getDistributionId(),listOutRecord.get(i).getId());
|
|
111
|
113
|
num += outRecordMapper.updateByPrimaryKey(listOutRecord.get(i));
|
|
112
|
114
|
store = storeMapper.selectByOutId(listOutRecord.get(i).getId(), noUserParam,userId, belongId);
|
|
113
|
115
|
storeMapper.updateByOutId(listOutRecord.get(i).getId(), noUserParam, userId, belongId);
|
|
|
@@ -132,6 +134,8 @@ public class OutServiceImpl implements OutService {
|
|
132
|
134
|
} else {
|
|
133
|
135
|
for (int i = 0; i < listOutRecord.size(); i++) {
|
|
134
|
136
|
listOutRecord.get(i).setBackFlag("1");
|
|
|
137
|
+// 根据出库单id修改出库单状态为已出库
|
|
|
138
|
+ int i1 = distributionMapper.updateCancleFlag(listOutRecord.get(i).getDistributionId(),listOutRecord.get(i).getId());
|
|
135
|
139
|
num += outRecordMapper.updateByPrimaryKey(listOutRecord.get(i));
|
|
136
|
140
|
store = storeMapper.selectByOutId(listOutRecord.get(i).getId(), noUserParam, userId, belongId);
|
|
137
|
141
|
storeMapper.updateByOutId(listOutRecord.get(i).getId(), noUserParam, userId, belongId);
|