|
@@ -213,14 +213,14 @@ public class InServiceImpl implements InService {
|
213
|
213
|
|
214
|
214
|
private int insert(List<Store> listSameStack, Stack stack, String userId, String belongId) throws Exception{
|
215
|
215
|
int currentLayer = 0;
|
216
|
|
- if (stack.getIsLayer().equals("1")) {
|
|
216
|
+ /*if (stack.getIsLayer().equals("1")) {
|
217
|
217
|
currentLayer = Integer.parseInt(storeMapper.selectLayerByStackId(stack.getId(), belongId));
|
218
|
218
|
} else {
|
219
|
219
|
currentLayer = -1;
|
220
|
|
- }
|
|
220
|
+ }*/
|
221
|
221
|
Price Price = new Price();
|
222
|
222
|
for (int m = 0; m < listSameStack.size(); m++) {
|
223
|
|
-
|
|
223
|
+ currentLayer = Integer.parseInt(storeMapper.selectLayerByStackId(stack.getId(), belongId));
|
224
|
224
|
if (stack.getIsLayer().equals("1")) {
|
225
|
225
|
listSameStack.get(m).setLayer(currentLayer + m + 1);
|
226
|
226
|
} else {
|