uniapp接口更新

master
erzhongxmu 2022-08-20 10:02:54 +08:00
parent f1402b4c5c
commit f2fec6146b
1 changed files with 17 additions and 3 deletions

View File

@ -99,7 +99,6 @@ public class WmToMoveGoodsController extends BaseController {
* @param request
* @param response
* @param dataGrid
* @param user
*/
@RequestMapping(params = "datagrid")
@ -549,8 +548,23 @@ public class WmToMoveGoodsController extends BaseController {
}
t.setUpdateDate(now());
if(!wmUtil.checkstcok( t.getBinFrom(),t.getTinFrom(),t.getGoodsId(),t.getGoodsProData(),t.getBaseGoodscount())) {
D0.setOK(false);
D0.setErrorMsg("库存不足");
}else{
String movesta = "已完成";
try{
movesta = ResourceUtil.getConfigByName("wm.movesta");
}catch (Exception e){
}
t.setMoveSta(movesta);
wmToMoveGoodsService.saveOrUpdate(t);
D0.setOK(true);
}
} catch (Exception e) {
e.printStackTrace();