| | |
| | | @GetMapping("/query_one") |
| | | @ApiOperation(value = "查询one") |
| | | @LogSave(operationType = "文书管理", contain = "查看文书") |
| | | public CommonResult searchOne(@RequestParam Integer id) { |
| | | return CommonResult.success(iWritService.getById(id)); |
| | | public CommonResult searchOne(@RequestParam Long id) { |
| | | return CommonResult.success(iWritService.selectByCaseId(id)); |
| | | } |
| | | |
| | | @PutMapping("/modification") |
| | |
| | | @ApiOperation(value = "批量") |
| | | @LogSave(operationType = "文书管理", contain = "删除文书") |
| | | public CommonResult delete(@PathVariable Long id) { |
| | | Writ writ = iWritService.getById(id); |
| | | writ.setValue(""); |
| | | return CommonResult.success(iWritService.updateById(writ)); |
| | | iWritService.deleteValueByCaseId(id); |
| | | return CommonResult.success(true); |
| | | } |
| | | |
| | | @PutMapping("/deletion_batch") |
| | |
| | | public interface WritMapper extends BaseMapper<Writ> { |
| | | |
| | | Page<WritVO> selectWritPage(Page<Writ> writPage, @Param("keyword") String keyword); |
| | | |
| | | void deleteValueByCaseId(@Param("baseCaseId") Long baseCaseId); |
| | | } |
| | |
| | | |
| | | |
| | | Page<WritVO> selectWritPage(Page<Writ> writPage, String keyword); |
| | | |
| | | Writ selectByCaseId(Long baseCaseId); |
| | | |
| | | void deleteValueByCaseId(Long id); |
| | | } |
| | |
| | | package com.ycl.service.caseHandler.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.entity.caseHandler.Writ; |
| | | import com.ycl.mapper.caseHandler.WritMapper; |
| | |
| | | public Page<WritVO> selectWritPage(Page<Writ> writPage, String keyword) { |
| | | return writMapper.selectWritPage(writPage, keyword); |
| | | } |
| | | |
| | | @Override |
| | | public Writ selectByCaseId(Long baseCaseId) { |
| | | LambdaQueryWrapper<Writ> queryWrapper = new LambdaQueryWrapper<Writ>().eq(Writ::getBaseCaseId, baseCaseId); |
| | | return baseMapper.selectOne(queryWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteValueByCaseId(Long id) { |
| | | writMapper.deleteValueByCaseId(id); |
| | | } |
| | | } |
| | |
| | | base_case_id |
| | | , illegal_building_id, writ_type, writ_code, illegal_type, send_time, limit_time, send_content, rectify_time, rectify_situation, remark, writ_pic, original_pic, rectified_pic, othen_pic, create_user, create_time |
| | | </sql> |
| | | <update id="deleteValueByCaseId"> |
| | | update ums_writ set value = null where base_case_id = #{baseCaseId} |
| | | </update> |
| | | <select id="selectWritPage" resultMap="VoMap"> |
| | | SELECT w.*, wt.`name` as writ_type_name,bc.`code` event_code,dd.`name` category_name,wt.code template_code |
| | | FROM ums_writ w |