| | |
| | | */ |
| | | @ApiOperation(value = "内外部环境要素控制删除") |
| | | @GetMapping("/factor/control/deleted") |
| | | public CommonResult deletedFactorControl(@RequestParam("factorControlId") Integer factorControlId){ |
| | | return factorControlService.deletedFactorControl(factorControlId); |
| | | public CommonResult deletedFactorControl(@RequestParam("factorControlId") Integer factorControlId,@RequestParam("factorDiscrenId") Integer factorDiscrenId){ |
| | | return factorControlService.deletedFactorControl(factorControlId,factorDiscrenId); |
| | | } |
| | | |
| | | /** |
| | |
| | | void insertBatch(@Param("factorContents") List<FactorContent> factorContents); |
| | | |
| | | void deletedByFactorId(@Param("id") Integer id); |
| | | |
| | | void updateByFactorId(@Param("factorDiscrenId") Integer factorDiscrenId); |
| | | } |
| | |
| | | |
| | | CommonResult updateFactorControl(FactorControl factorControl); |
| | | |
| | | CommonResult deletedFactorControl(Integer factorControlId); |
| | | CommonResult deletedFactorControl(Integer factorControlId,Integer factorDiscrenId); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CommonResult deletedFactorControl(Integer factorControlId) { |
| | | public CommonResult deletedFactorControl(Integer factorControlId,Integer factorDiscrenId) { |
| | | FactorControl factorControl = new FactorControl(); |
| | | factorControl.setId(factorControlId); |
| | | factorControl.setUpdateTime(LocalDateTime.now()); |
| | | factorControl.setUpdateBy(SecurityUtils.getUsername()); |
| | | factorControl.setDelFlag(2); |
| | | factorControlMapper.updateById(factorControl); |
| | | factorContentMapper.updateByFactorId(factorDiscrenId); |
| | | return CommonResult.success(); |
| | | } |
| | | } |
| | |
| | | #{item.type}) |
| | | </foreach> |
| | | </insert> |
| | | <update id="updateByFactorId"> |
| | | UPDATE |
| | | `factor_content` |
| | | SET |
| | | `influence` = NULL, |
| | | `monitor_method` = NULL, |
| | | `review` = NULL, |
| | | `solutions` = NULL, |
| | | `result` = NULL |
| | | WHERE |
| | | `factor_discern_id` = #{factorDiscrenId} |
| | | </update> |
| | | <delete id="deletedByFactorId"> |
| | | DELETE |
| | | FROM |