Browse Source

fix:[模板管理]优化

master
15881625488@163.com 2 months ago
parent
commit
36bac9070d
2 changed files with 1 additions and 4 deletions
  1. +0
    -3
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java
  2. +1
    -1
      hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml

+ 0
- 3
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/TemplateServiceImpl.java View File

@ -44,9 +44,6 @@ public class TemplateServiceImpl extends ServiceImpl i
if(template.getDeptId()!=null && template.getDeptId().longValue()>0){
queryWrapper.eq("t.dept_id",template.getDeptId());
}
if(template.getNeedPre()!=null && template.getNeedPre().intValue()>0){
queryWrapper.eq("t.need_pre",template.getNeedPre());
}
if(template.getStatus()!=null && template.getStatus().intValue()>0){
queryWrapper.eq("t.status",template.getStatus());
}

+ 1
- 1
hxhq-modules/hxhq-system/src/main/resources/mapper/business/TemplateMapper.xml View File

@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hxhq.business.mapper.TemplateMapper">
<select id="queryList">
SELECT t.`id`,t.`sn`,t.`show_sn`,t.`name`,t.`dept_id`,t.`status`,t.`need_pre`,t.`type`,d.`dept_name`,t.product
SELECT t.*
FROM `t_template` t
LEFT JOIN `sys_dept` d ON t.`dept_id`=d.`dept_id`
<if test="ew.sqlSegment != '' and ew.sqlSegment != null">

Loading…
Cancel
Save