rev: 成品入库分配修改
This commit is contained in:
@@ -72,10 +72,10 @@ public class SectattrController {
|
||||
return new ResponseEntity<>(HttpStatus.OK);
|
||||
}
|
||||
|
||||
@GetMapping("/getSect")
|
||||
@PostMapping("/getSect")
|
||||
@Log("查询库区下拉框")
|
||||
@ApiOperation("查询库区下拉框")
|
||||
public ResponseEntity<Object> querySect(@RequestParam JSONObject query) {
|
||||
public ResponseEntity<Object> querySect(@RequestBody JSONObject query) {
|
||||
List<Map> list = isectattrService.getSect(query);
|
||||
return new ResponseEntity<>(TableDataInfo.build(list), HttpStatus.OK);
|
||||
}
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
st_ivt_sectattr.sect_name,
|
||||
st_ivt_sectattr.sect_id,
|
||||
st_ivt_sectattr.sect_code,
|
||||
st_ivt_bsrealstorattr.stor_name,
|
||||
st_ivt_bsrealstorattr.stor_id,
|
||||
st_ivt_bsrealstorattr.stor_code
|
||||
stor.stor_name,
|
||||
stor.stor_id,
|
||||
stor.stor_code
|
||||
FROM
|
||||
st_ivt_sectattr
|
||||
LEFT JOIN st_ivt_bsrealstorattr stor ON st_ivt_sectattr.stor_id = stor.stor_id
|
||||
|
||||
@@ -321,6 +321,7 @@ public class StIvtIostorinvCpServiceImpl extends ServiceImpl<StIvtIostorinvCpMap
|
||||
6.更新库存、日物流表等、
|
||||
*/
|
||||
|
||||
|
||||
String struct_id = whereJson.getString("struct_id");
|
||||
StIvtStructattr attrDao = new StIvtStructattr();
|
||||
|
||||
@@ -335,10 +336,7 @@ public class StIvtIostorinvCpServiceImpl extends ServiceImpl<StIvtIostorinvCpMap
|
||||
/* 手动分配 */
|
||||
|
||||
// 查出对应仓位
|
||||
attrDao = iStIvtStructattrService.getOne(
|
||||
new QueryWrapper<StIvtStructattr>().lambda()
|
||||
.eq(StIvtStructattr::getStruct_id,struct_id)
|
||||
);
|
||||
attrDao = iStIvtStructattrService.getById(struct_id);
|
||||
}
|
||||
|
||||
if (ObjectUtil.isEmpty(attrDao.getStruct_code())) throw new BadRequestException("未找到仓位!");
|
||||
@@ -346,7 +344,18 @@ public class StIvtIostorinvCpServiceImpl extends ServiceImpl<StIvtIostorinvCpMap
|
||||
// 2.更新分配明细、分配、明细、主表
|
||||
updateDivIos(attrDao,whereJson);
|
||||
|
||||
// TODO 更新点位
|
||||
// 3.更新仓位状态 - 锁定
|
||||
StIvtIostorinvCp mstDao = this.getById(whereJson.getString("iostorinv_id"));
|
||||
|
||||
attrDao.setLock_type("01"); // TODO 暂时写死
|
||||
attrDao.setUpdate_id(SecurityUtils.getCurrentUserId());
|
||||
attrDao.setUpdate_name(SecurityUtils.getCurrentNickName());
|
||||
attrDao.setUpdate_time(new Date());
|
||||
attrDao.setInv_type(IOSEnum.IO_TYPE.code("入库"));
|
||||
attrDao.setInv_id(mstDao.getIostorinv_id());
|
||||
attrDao.setInv_code(mstDao.getBill_code());
|
||||
iStIvtStructattrService.updateById(attrDao);
|
||||
|
||||
// TODO 更新库存、物流等
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user