复核代码提交

master
erzhongxmu 2023-02-02 18:23:59 +08:00
parent e90c26a88b
commit da163b87c9
1 changed files with 0 additions and 6 deletions

View File

@ -825,7 +825,6 @@ public class WmToDownGoodsController extends BaseController {
UriComponentsBuilder uriBuilder) { UriComponentsBuilder uriBuilder) {
// 调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息. // 调用JSR303 Bean Validator进行校验如果出错返回含400错误码及json格式的错误信息.
ResultDO D0 = new ResultDO(); ResultDO D0 = new ResultDO();
WmToDownGoodsEntity wmToDownGoods = (WmToDownGoodsEntity)JSONHelper.json2Object(wmToDownGoodsstr,WmToDownGoodsEntity.class); WmToDownGoodsEntity wmToDownGoods = (WmToDownGoodsEntity)JSONHelper.json2Object(wmToDownGoodsstr,WmToDownGoodsEntity.class);
WmToDownGoodsEntity t = wmToDownGoodsService.get(WmToDownGoodsEntity.class,wmToDownGoods.getId()); WmToDownGoodsEntity t = wmToDownGoodsService.get(WmToDownGoodsEntity.class,wmToDownGoods.getId());
// 保存 // 保存
@ -833,11 +832,7 @@ public class WmToDownGoodsController extends BaseController {
MyBeanUtils.copyBeanNotNull2Bean(wmToDownGoods, t); MyBeanUtils.copyBeanNotNull2Bean(wmToDownGoods, t);
t.setDownSta(Constants.wm_sta5); t.setDownSta(Constants.wm_sta5);
t.setUpdateDate(now()); t.setUpdateDate(now());
wmToDownGoodsService.saveOrUpdate(t); wmToDownGoodsService.saveOrUpdate(t);
try{ try{
String orderId = t.getOrderId(); String orderId = t.getOrderId();
String type = "fh"; String type = "fh";
@ -851,7 +846,6 @@ public class WmToDownGoodsController extends BaseController {
e.printStackTrace(); e.printStackTrace();
D0.setOK(false); D0.setOK(false);
} }
// 按Restful约定返回204状态码, 无内容. 也可以返回200状态码. // 按Restful约定返回204状态码, 无内容. 也可以返回200状态码.
return new ResponseEntity(D0, HttpStatus.OK); return new ResponseEntity(D0, HttpStatus.OK);
} }