|
|
|
@ -204,13 +204,14 @@ public class CommodityController { |
|
|
|
|
CommodityCodeEntity commodityCode = new CommodityCodeEntity(); |
|
|
|
|
commodityCode.setSpjc(spjc); |
|
|
|
|
commodityCode.setSpbm(spbm); |
|
|
|
|
commodityCode.setModifyTime(new Date()); |
|
|
|
|
commodityCode.setModifyUserId(userInfoService.getUser() != null && userInfoService.getUser().getUserId() != null ?userInfoService.getUser().getUserId().toString():""); |
|
|
|
|
try { |
|
|
|
|
commodityService.batchUpdateCommodity(commodityCode,ids); |
|
|
|
|
return commodityService.batchUpdateCommodity(commodityCode,ids); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("更新集团物料失败,异常信息{}",e); |
|
|
|
|
return R.error("系统更新异常,请联系管理员"); |
|
|
|
|
} |
|
|
|
|
return R.ok(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 删除 |
|
|
|
|