提交 8f00aeb1 authored 作者: 宋文杰's avatar 宋文杰

fix(info template): fix bugs to modify virtual deleted from really deleted

上级 04b05e90
......@@ -76,7 +76,7 @@ public class InfoTemplatesController extends BaseController {
@SysLog("删除信息模板表")
@DeleteMapping("/{templateId}")
public R removeById(@PathVariable Integer templateId){
return new R<>(infoTemplatesService.removeById(templateId));
return new R<>(infoTemplatesService.del(templateId));
}
}
......@@ -24,4 +24,13 @@ public interface InfoTemplatesMapper extends BaseMapper<InfoTemplates> {
* @Date: 2019/4/30
*/
IPage<InfoTemplates> getInfoTemplatePage(Page page, Integer createDeptId);
/**
* @Description: 假删除信息模板
* @Param: [templateId]
* @return: boolean
* @Author: songwenjie
* @Date: 2019/5/7
*/
boolean del(int templateId);
}
......@@ -21,4 +21,13 @@ public interface InfoTemplatesService extends IService<InfoTemplates> {
* @Date: 2019/4/30
*/
IPage<InfoTemplates> getInfoTemplatePage(Page page, Integer createDeptId);
/**
* @Description: 假删除信息模板
* @Param: [templateId]
* @return: boolean
* @Author: songwenjie
* @Date: 2019/5/7
*/
boolean del(int templateId);
}
......@@ -27,4 +27,15 @@ public class InfoTemplatesServiceImpl extends ServiceImpl<InfoTemplatesMapper, I
public IPage<InfoTemplates> getInfoTemplatePage(Page page, Integer createDeptId){
return baseMapper.getInfoTemplatePage(page,createDeptId);
}
/**
* @Description: 假删除信息模板
* @Param: [templateId]
* @return: boolean
* @Author: songwenjie
* @Date: 2019/5/7
*/
public boolean del(int templateId){
return baseMapper.del(templateId);
}
}
......@@ -44,7 +44,7 @@
t.template_name,t.template_type,
r.receiver_id,r.receiver_name
from `info_templates` t
inner join
right join
info_informations i
on t.template_id = i.template_id
inner join
......@@ -60,7 +60,7 @@
t.template_name,t.template_type,
r.receiver_id,group_concat(r.receiver_name) as receiver_name
from `info_templates` t
inner join
right join
info_informations i
on t.template_id = i.template_id
inner join
......
......@@ -17,7 +17,11 @@
<select id="getInfoTemplatePage" resultMap="infoTemplatesMap">
select * from info_templates
where create_dept_id = #{createDeptId}
and is_del = 0
</select>
<!--假删除信息模板-->
<update id="del">
update info_templates set is_del=1 where template_id = #{templateId}
</update>
</mapper>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论