|
|
@ -154,10 +154,10 @@ public class AnnualCompAwardController extends JeecgController<AnnualCompAward, |
|
|
|
//@RequiresPermissions("annualcompaward:annual_comp_award:add")
|
|
|
|
//@RequiresPermissions("annualcompaward:annual_comp_award:add")
|
|
|
|
@PostMapping(value = "/add") |
|
|
|
@PostMapping(value = "/add") |
|
|
|
public Result<String> add(@RequestBody AnnualCompAward annualCompAward) { |
|
|
|
public Result<String> add(@RequestBody AnnualCompAward annualCompAward) { |
|
|
|
if (annualCompAward != null) { |
|
|
|
/* if (annualCompAward != null) { |
|
|
|
AnnualCompPoint annualCompPoint = annualCompPointService.query().eq("obj_name", annualCompAward.getAnnucompid()).one(); |
|
|
|
AnnualCompPoint annualCompPoint = annualCompPointService.query().eq("obj_name", annualCompAward.getAnnucompid()).one(); |
|
|
|
annualCompAward.setAnnucompid(annualCompPoint.getId()); |
|
|
|
annualCompAward.setAnnucompid(annualCompPoint.getId()); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
annualCompAwardService.save(annualCompAward); |
|
|
|
annualCompAwardService.save(annualCompAward); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
return Result.OK("添加成功!"); |
|
|
|
} |
|
|
|
} |
|
|
|