add:库存出后
This commit is contained in:
@@ -236,6 +236,12 @@ public class PmFormDataServiceImpl extends ServiceImpl<PmFormDataMapper, PmFormD
|
|||||||
child.setSto_qty(new BigDecimal(0));
|
child.setSto_qty(new BigDecimal(0));
|
||||||
child.setPcsn("");
|
child.setPcsn("");
|
||||||
}else {
|
}else {
|
||||||
|
for (StructAssignQty assignQty : maps) {
|
||||||
|
if (child.getPcsn().equals(assignQty.getPcsn())){
|
||||||
|
child.setSto_qty(assignQty.getSto_qty());
|
||||||
|
child.setPcsn(assignQty.getPcsn());
|
||||||
|
}
|
||||||
|
}
|
||||||
child.setSto_qty(BigDecimal.valueOf(maps.stream().mapToInt(a->a.getSto_qty().intValue()).sum()));
|
child.setSto_qty(BigDecimal.valueOf(maps.stream().mapToInt(a->a.getSto_qty().intValue()).sum()));
|
||||||
child.setPcsn("");
|
child.setPcsn("");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package org.nl.wms.stor_manage.struct.controller;
|
package org.nl.wms.stor_manage.struct.controller;
|
||||||
|
|
||||||
|
import cn.dev33.satoken.annotation.SaIgnore;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||||
@@ -44,6 +45,7 @@ public class StIvtStructattrController {
|
|||||||
|
|
||||||
@GetMapping
|
@GetMapping
|
||||||
@Log("仓位查询")
|
@Log("仓位查询")
|
||||||
|
@SaIgnore
|
||||||
public ResponseEntity<Object> query(StructattrQuery query, PageQuery page) {
|
public ResponseEntity<Object> query(StructattrQuery query, PageQuery page) {
|
||||||
return new ResponseEntity<>(structattrService.pageQuery(query,page), HttpStatus.OK);
|
return new ResponseEntity<>(structattrService.pageQuery(query,page), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user