Commit 26aa5b5d by 吴迪

【修改】机构id兼容

parent c6c8b659
......@@ -71,8 +71,13 @@ public class CodeagentController {
@RequestMapping("/update")
// @RequiresPermissions("manage:codeagent:update")
public R update(@RequestBody CodeagentEntity codeagent){
codeagentService.updateById(codeagent);
CodeagentEntity codeagentServiceById = codeagentService.getById(codeagent.getId());
if(codeagentServiceById!=null) {
codeagentService.updateById(codeagent);
} else{
codeagentService.save(codeagent);
}
return R.ok();
}
......
......@@ -47,7 +47,11 @@ public class BranchEntityVo implements Serializable {
private String personname;
private String id;
public String getBranchCode() {
return branchCode.trim();
}
public void setBranchCode(String branchCode) {
this.branchCode = branchCode.trim();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment