【丽水】新增接口/smartor/maternityArchive/batchDelete /smartor/childArchive/batchDelete
| | |
| | | return toAjax(patChildArchiveService.deletePatChildArchiveByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除儿科档案") |
| | | //@PreAuthorize("@ss.hasPermi('system:childArchive:remove')") |
| | | @Log(title = "儿科档案", businessType = BusinessType.DELETE) |
| | | @PostMapping("/batchDelete") |
| | | public AjaxResult batchDelete(@RequestBody Long[] ids) { |
| | | return toAjax(patChildArchiveService.batchDeletePatChildArchiveByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改儿科档案 |
| | | */ |
| | |
| | | return toAjax(patMaternityArchiveService.deletePatMaternityArchiveByIds(ids)); |
| | | } |
| | | |
| | | @ApiOperation("批量删除妇科档案") |
| | | //@PreAuthorize("@ss.hasPermi('system:maternityArchive:remove')") |
| | | @Log(title = "妇科档案", businessType = BusinessType.DELETE) |
| | | @PostMapping("/batchDelete") |
| | | public AjaxResult batchDelete(@RequestBody Long[] ids) { |
| | | return toAjax(patMaternityArchiveService.batchDeletePatMaternityArchiveByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | * 新增或修改妇科档案 |
| | | */ |
| | |
| | | public int deletePatChildArchiveDetailById(Long id); |
| | | |
| | | public int deletePatChildArchiveDetailByIds(Long[] ids); |
| | | |
| | | public int deletePatChildArchiveDetailByArchiveIds(Long[] archiveIds); |
| | | } |
| | |
| | | public int deletePatMaternityArchiveDetailById(Long id); |
| | | |
| | | public int deletePatMaternityArchiveDetailByIds(Long[] ids); |
| | | |
| | | public int deletePatMaternityArchiveDetailByArchiveIds(Long[] archiveIds); |
| | | } |
| | |
| | | |
| | | public int deletePatChildArchiveDetailByIds(Long[] ids); |
| | | |
| | | public int deletePatChildArchiveDetailByArchiveIds(Long[] archiveIds); |
| | | |
| | | public int deletePatChildArchiveDetailById(Long id); |
| | | } |
| | |
| | | |
| | | public int deletePatChildArchiveByIds(Long[] ids); |
| | | |
| | | public int batchDeletePatChildArchiveByIds(Long[] ids); |
| | | |
| | | public int deletePatChildArchiveById(Long id); |
| | | |
| | | public int insertOrUpdateChildArchive(PatChildArchiveDetail patChildArchiveDetail); |
| | |
| | | |
| | | public int deletePatMaternityArchiveDetailByIds(Long[] ids); |
| | | |
| | | public int deletePatMaternityArchiveDetailByArchiveIds(Long[] archiveIds); |
| | | |
| | | public int deletePatMaternityArchiveDetailById(Long id); |
| | | } |
| | |
| | | |
| | | public int deletePatMaternityArchiveByIds(Long[] ids); |
| | | |
| | | public int batchDeletePatMaternityArchiveByIds(Long[] ids); |
| | | |
| | | public int deletePatMaternityArchiveById(Long id); |
| | | |
| | | public int insertOrUpdateMaternityArchive(PatMaternityArchiveDetail patMaternityArchiveDetail); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatChildArchiveDetailByArchiveIds(Long[] archiveIds) |
| | | { |
| | | return patChildArchiveDetailMapper.deletePatChildArchiveDetailByArchiveIds(archiveIds); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatChildArchiveDetailById(Long id) |
| | | { |
| | | return patChildArchiveDetailMapper.deletePatChildArchiveDetailById(id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int batchDeletePatChildArchiveByIds(Long[] ids) |
| | | { |
| | | // 先删除对应的详情表数据 |
| | | patChildArchiveDetailService.deletePatChildArchiveDetailByArchiveIds(ids); |
| | | // 再删除主表数据 |
| | | return patChildArchiveMapper.deletePatChildArchiveByIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatChildArchiveById(Long id) |
| | | { |
| | | return patChildArchiveMapper.deletePatChildArchiveById(id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatMaternityArchiveDetailByArchiveIds(Long[] archiveIds) |
| | | { |
| | | return patMaternityArchiveDetailMapper.deletePatMaternityArchiveDetailByArchiveIds(archiveIds); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatMaternityArchiveDetailById(Long id) |
| | | { |
| | | return patMaternityArchiveDetailMapper.deletePatMaternityArchiveDetailById(id); |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int batchDeletePatMaternityArchiveByIds(Long[] ids) |
| | | { |
| | | // 先删除对应的详情表数据 |
| | | patMaternityArchiveDetailService.deletePatMaternityArchiveDetailByArchiveIds(ids); |
| | | // 再删除主表数据 |
| | | return patMaternityArchiveMapper.deletePatMaternityArchiveByIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public int deletePatMaternityArchiveById(Long id) |
| | | { |
| | | return patMaternityArchiveMapper.deletePatMaternityArchiveById(id); |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="deletePatChildArchiveDetailByArchiveIds" parameterType="String"> |
| | | update pat_child_archive_detail set del_flag = '1' where archiveid in |
| | | <foreach item="archiveId" collection="array" open="(" separator="," close=")"> |
| | | #{archiveId} |
| | | </foreach> |
| | | </update> |
| | | </mapper> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="deletePatMaternityArchiveDetailByArchiveIds" parameterType="String"> |
| | | update pat_maternity_archive_detail set del_flag = '1' where archiveid in |
| | | <foreach item="archiveId" collection="array" open="(" separator="," close=")"> |
| | | #{archiveId} |
| | | </foreach> |
| | | </update> |
| | | </mapper> |