| | |
| | | import org.jeecg.common.constant.CommonConstant; |
| | | import org.jeecg.common.system.base.controller.JeecgController; |
| | | import org.jeecg.common.system.query.QueryGenerator; |
| | | import org.jeecg.modules.eam.constant.BusinessCodeConst; |
| | | import org.jeecg.modules.eam.entity.EamPrecisionParameters; |
| | | import org.jeecg.modules.eam.service.IEamPrecisionParametersService; |
| | | import org.jeecg.modules.system.service.ISysBusinessCodeRuleService; |
| | |
| | | * @param req |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-分页列表查询") |
| | | @ApiOperation(value="精度参数维护-分页列表查询", notes="精度参数维护-分页列表查询") |
| | | @GetMapping(value = "/list") |
| | | public Result<?> queryPageList(EamPrecisionParameters eamPrecisionParameters, |
| | |
| | | * @param eamPrecisionParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-添加") |
| | | @ApiOperation(value="精度参数维护-添加", notes="精度参数维护-添加") |
| | | @PostMapping(value = "/add") |
| | | public Result<?> add(@RequestBody EamPrecisionParameters eamPrecisionParameters) { |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq("PrecisionParametersRule"); |
| | | String codeSeq = businessCodeRuleService.generateBusinessCodeSeq(BusinessCodeConst.PRECISION_PARAMETERS_RULE); |
| | | eamPrecisionParameters.setParameterCode(codeSeq); |
| | | eamPrecisionParameters.setDelFlag(CommonConstant.DEL_FLAG_0); |
| | | eamPrecisionParametersService.save(eamPrecisionParameters); |
| | |
| | | * @param eamPrecisionParameters |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-编辑") |
| | | @ApiOperation(value="精度参数维护-编辑", notes="精度参数维护-编辑") |
| | | @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST}) |
| | | public Result<?> edit(@RequestBody EamPrecisionParameters eamPrecisionParameters) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-通过id删除") |
| | | @ApiOperation(value="精度参数维护-通过id删除", notes="精度参数维护-通过id删除") |
| | | @DeleteMapping(value = "/delete") |
| | | public Result<?> delete(@RequestParam(name="id",required=true) String id) { |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-批量删除") |
| | | @ApiOperation(value="精度参数维护-批量删除", notes="精度参数维护-批量删除") |
| | | @DeleteMapping(value = "/deleteBatch") |
| | | public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) { |
| | |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "精度参数维护-通过id查询") |
| | | @ApiOperation(value="精度参数维护-通过id查询", notes="精度参数维护-通过id查询") |
| | | @GetMapping(value = "/queryById") |
| | | public Result<?> queryById(@RequestParam(name="id",required=true) String id) { |