|
@@ -174,12 +174,12 @@ public class BaseInfoController extends BaseController {
|
|
|
@PostMapping("/update")
|
|
|
public Object update(@RequestBody @ApiParam(value = "修改请求bean") @Validated({Update.class}) BaseInfoReq req,
|
|
|
@CurrentUser CacheUserVO user) {
|
|
|
- BaseInfo model = this.baseInfoService.getById(req.getId());
|
|
|
- BeanUtils.copyProperties(req, model);
|
|
|
- model.setCrownBetween(model.getCrownPrefix() +"-"+ model.getCrownFrom() + " 至 "
|
|
|
- + model.getCrownPrefix() +"-"+ model.getCrownTo());
|
|
|
- // model.setUpdateBy(user.getName());
|
|
|
- this.baseInfoService.updateById(model);
|
|
|
+// BaseInfo model = this.baseInfoService.getById(req.getId());
|
|
|
+// BeanUtils.copyProperties(req, model);
|
|
|
+// model.setCrownBetween(model.getCrownPrefix() +"-"+ model.getCrownFrom() + " 至 "
|
|
|
+// + model.getCrownPrefix() +"-"+ model.getCrownTo());
|
|
|
+// this.baseInfoService.updateById(model);
|
|
|
+ this.baseInfoService.updateRfidInfo(req);
|
|
|
return "";
|
|
|
}
|
|
|
/**
|