点位状态更新

This commit is contained in:
ldj_willow
2022-11-04 17:42:36 +08:00
parent 19db98e95b
commit 1d4a81efcb
5 changed files with 149 additions and 79 deletions

View File

@@ -179,7 +179,7 @@ public class PointServiceImpl implements PointService {
dto.setMaterial_id(null);
dto.setInstorage_time(now);
dto.setStanding_time(BigDecimal.valueOf(0));
} else { // 有料
} else if (pointStatus.equals("3")) { // 有料
if (ObjectUtil.isEmpty(dto.getMaterial_id())) throw new BadRequestException("物料不能为空");
if (ObjectUtil.isEmpty(dto.getIvt_qty())) throw new BadRequestException("库存数不能为空");
JSONObject materialObj = materialBaseTab.query("material_id = '" + dto.getMaterial_id() + "'").uniqueResult(0);