Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qianhe-ydsj
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangyun
qianhe-ydsj
Commits
c4c6534a
Commit
c4c6534a
authored
Aug 22, 2025
by
wangqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页统计
parent
0b1bdf69
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
293 additions
and
2 deletions
+293
-2
qianhe-system/src/main/java/com/qianhe/system/mapper/SysDeptMapper.java
+3
-0
qianhe-system/src/main/java/com/qianhe/system/service/ISysDeptService.java
+3
-0
qianhe-system/src/main/java/com/qianhe/system/service/impl/SysDeptServiceImpl.java
+11
-0
qianhe-system/src/main/resources/mapper/system/SysDeptMapper.xml
+41
-0
qianhe-ydsj/src/main/java/com/qianhe/controller/AmainController.java
+0
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/Amain.java
+21
-0
qianhe-ydsj/src/main/java/com/qianhe/domain/SjLhsc.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjFybpZbMapper.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsYdjcjlMapper.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjZbMapper.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjLhscMapper.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/IAmainService.java
+29
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpZbService.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsYdjcjlService.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsZsdwkhpjZbService.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/ISjLhscService.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/AmainServiceImpl.java
+0
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjBzxxServiceImpl.java
+1
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpZbServiceImpl.java
+6
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsYdjcjlServiceImpl.java
+6
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsZsdwkhpjZbServiceImpl.java
+5
-0
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjLhscServiceImpl.java
+6
-0
qianhe-ydsj/src/main/resources/mapper/SjBzxxMapper.xml
+3
-2
qianhe-ydsj/src/main/resources/mapper/SjFybpZbMapper.xml
+28
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsYdjcjlMapper.xml
+22
-0
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjZbMapper.xml
+51
-0
qianhe-ydsj/src/main/resources/mapper/SjLhscMapper.xml
+39
-0
No files found.
qianhe-system/src/main/java/com/qianhe/system/mapper/SysDeptMapper.java
View file @
c4c6534a
...
...
@@ -19,6 +19,9 @@ public interface SysDeptMapper
*/
public
List
<
SysDept
>
selectDeptList
(
SysDept
dept
);
public
List
<
SysDept
>
selectDeptList_ejdw
(
SysDept
dept
);
public
List
<
SysDept
>
selectDeptList_sjdw
(
SysDept
dept
);
/**
* 根据角色ID查询部门树信息
*
...
...
qianhe-system/src/main/java/com/qianhe/system/service/ISysDeptService.java
View file @
c4c6534a
...
...
@@ -19,6 +19,9 @@ public interface ISysDeptService
*/
public
List
<
SysDept
>
selectDeptList
(
SysDept
dept
);
public
List
<
SysDept
>
selectDeptList_ejdw
(
SysDept
dept
);
public
List
<
SysDept
>
selectDeptList_sjdw
(
SysDept
dept
);
/**
* 查询部门管理数据
*
...
...
qianhe-system/src/main/java/com/qianhe/system/service/impl/SysDeptServiceImpl.java
View file @
c4c6534a
...
...
@@ -49,6 +49,17 @@ public class SysDeptServiceImpl implements ISysDeptService
return
deptMapper
.
selectDeptList
(
dept
);
}
public
List
<
SysDept
>
selectDeptList_ejdw
(
SysDept
dept
)
{
return
deptMapper
.
selectDeptList_ejdw
(
dept
);
}
public
List
<
SysDept
>
selectDeptList_sjdw
(
SysDept
dept
)
{
return
deptMapper
.
selectDeptList_sjdw
(
dept
);
}
/**
* 查询部门树结构信息
*
...
...
qianhe-system/src/main/resources/mapper/system/SysDeptMapper.xml
View file @
c4c6534a
...
...
@@ -178,4 +178,45 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update sys_dept set del_flag = '2' where dept_id = #{deptId}
</delete>
<select
id=
"selectDeptList_ejdw"
parameterType=
"SysDept"
resultMap=
"SysDeptResult"
>
select * from sys_dept d
where d.del_flag = '0'
and d.dept_id !='972'
and dwjb = '3'
<if
test=
"deptId != null and deptId != 0"
>
AND dept_id = #{deptId}
</if>
<if
test=
"parentId != null and parentId != 0"
>
AND parent_id = #{parentId}
</if>
<if
test=
"deptName != null and deptName != ''"
>
AND dept_name like concat('%', #{deptName}, '%')
</if>
<if
test=
"status != null and status != ''"
>
AND status = #{status}
</if>
order by d.parent_id, d.order_num
</select>
<select
id=
"selectDeptList_sjdw"
parameterType=
"SysDept"
resultMap=
"SysDeptResult"
>
select * from sys_dept d
where d.del_flag = '0'
and d.parent_id !='972'
and dwjb = '4'
<if
test=
"deptId != null and deptId != 0"
>
AND dept_id = #{deptId}
</if>
<if
test=
"parentId != null and parentId != 0"
>
AND parent_id = #{parentId}
</if>
<if
test=
"deptName != null and deptName != ''"
>
AND dept_name like concat('%', #{deptName}, '%')
</if>
<if
test=
"status != null and status != ''"
>
AND status = #{status}
</if>
order by d.parent_id, d.order_num
</select>
</mapper>
qianhe-ydsj/src/main/java/com/qianhe/controller/AmainController.java
0 → 100644
View file @
c4c6534a
This diff is collapsed.
Click to expand it.
qianhe-ydsj/src/main/java/com/qianhe/domain/Amain.java
0 → 100644
View file @
c4c6534a
package
com
.
qianhe
.
domain
;
import
com.qianhe.common.annotation.Excel
;
import
com.qianhe.common.core.domain.BaseEntity
;
import
lombok.Data
;
/**
* 公共附件对象 gg_fjb
*
* @author qianhe
* @date 2025-08-04
*/
@Data
public
class
Amain
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
nd
;
}
qianhe-ydsj/src/main/java/com/qianhe/domain/SjLhsc.java
View file @
c4c6534a
...
...
@@ -39,6 +39,8 @@ public class SjLhsc extends BaseEntity
@Excel
(
name
=
"单位"
)
private
String
deptId
;
private
String
parentId
;
/** 会议地点 */
@Excel
(
name
=
"会议地点"
)
private
String
hydd
;
...
...
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjFybpZbMapper.java
View file @
c4c6534a
...
...
@@ -28,6 +28,8 @@ public interface SjFybpZbMapper
*/
public
List
<
SjFybpZb
>
selectSjFybpZbList
(
SjFybpZb
sjFybpZb
);
public
List
<
SjFybpZb
>
selectSjFybpZbList_main
(
SjFybpZb
sjFybpZb
);
/**
* 新增三基-费用报批主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsYdjcjlMapper.java
View file @
c4c6534a
...
...
@@ -27,6 +27,8 @@ public interface SjGfjsYdjcjlMapper
*/
public
List
<
SjGfjsYdjcjl
>
selectSjGfjsYdjcjlList
(
SjGfjsYdjcjl
sjGfjsYdjcjl
);
public
List
<
SjGfjsYdjcjl
>
selectSjGfjsYdjcjlList_main
(
SjGfjsYdjcjl
sjGfjsYdjcjl
);
/**
* 新增规范建设 月度检查记录
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjGfjsZsdwkhpjZbMapper.java
View file @
c4c6534a
...
...
@@ -30,6 +30,8 @@ public interface SjGfjsZsdwkhpjZbMapper
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList_Bfz
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList_main
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 新增规范建设-直属单位考核评价主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/mapper/SjLhscMapper.java
View file @
c4c6534a
...
...
@@ -30,6 +30,8 @@ public interface SjLhscMapper
*/
public
List
<
SjLhsc
>
selectSjLhscList
(
SjLhsc
sjLhsc
);
public
List
<
SjLhsc
>
selectSjLhscList_main
(
SjLhsc
sjLhsc
);
/**
* 新增三基-例会上传
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/IAmainService.java
0 → 100644
View file @
c4c6534a
package
com
.
qianhe
.
service
;
import
com.qianhe.common.core.domain.entity.SysDept
;
import
com.qianhe.domain.*
;
import
com.qianhe.domain.Vo.SjfybpVo
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* 首页Service接口
*
* @author qianhe
* @date 2024-07-05
*/
public
interface
IAmainService
{
public
Map
<
String
,
Map
<
String
,
Integer
>>
statisticsMeetings
(
List
<
SysDept
>
depts
,
List
<
SjLhsc
>
lhList
);
public
Map
countDepartmentExpenses
(
List
<
SysDept
>
depts
,
List
<
SjFybpZb
>
fyList
);
public
Map
<
String
,
Map
<
String
,
Integer
>>
statisticsGradingEvaluation
(
List
<
SysDept
>
depts
,
List
<
SjGfjsZsdwkhpjZb
>
fdpjList
);
public
Map
<
String
,
Map
<
String
,
Integer
>>
statisticsMonthlyIssues
(
List
<
SysDept
>
depts
,
List
<
SjGfjsYdjcjl
>
ydwtList
);
public
Map
<
String
,
Map
<
String
,
Integer
>>
statisticsQuarterlyTests
(
List
<
SysDept
>
depts
,
List
<
SjGfjsZsdwkhpjZb
>
fdpjList
);
}
qianhe-ydsj/src/main/java/com/qianhe/service/ISjFybpZbService.java
View file @
c4c6534a
...
...
@@ -27,6 +27,8 @@ public interface ISjFybpZbService
*/
public
List
<
SjFybpZb
>
selectSjFybpZbList
(
SjFybpZb
sjFybpZb
);
public
List
<
SjFybpZb
>
selectSjFybpZbList_main
(
SjFybpZb
sjFybpZb
);
/**
* 新增三基-费用报批主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsYdjcjlService.java
View file @
c4c6534a
...
...
@@ -28,6 +28,8 @@ public interface ISjGfjsYdjcjlService
*/
public
List
<
SjGfjsYdjcjl
>
selectSjGfjsYdjcjlList
(
SjGfjsYdjcjl
sjGfjsYdjcjl
);
public
List
<
SjGfjsYdjcjl
>
selectSjGfjsYdjcjlList_main
(
SjGfjsYdjcjl
sjGfjsYdjcjl
);
/**
* 新增指导帮扶-基层单位问题采集
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/ISjGfjsZsdwkhpjZbService.java
View file @
c4c6534a
...
...
@@ -30,6 +30,8 @@ public interface ISjGfjsZsdwkhpjZbService
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList_Bfz
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList_main
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
);
/**
* 新增指导帮扶-直属单位考核评价主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/ISjLhscService.java
View file @
c4c6534a
...
...
@@ -28,6 +28,8 @@ public interface ISjLhscService
*/
public
List
<
SjLhsc
>
selectSjLhscList
(
SjLhsc
sjLhsc
);
public
List
<
SjLhsc
>
selectSjLhscList_main
(
SjLhsc
sjLhsc
);
/**
* 新增三基-例会上传
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/AmainServiceImpl.java
0 → 100644
View file @
c4c6534a
This diff is collapsed.
Click to expand it.
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjBzxxServiceImpl.java
View file @
c4c6534a
...
...
@@ -105,6 +105,7 @@ public class SjBzxxServiceImpl implements ISjBzxxService
@Override
@DataScope
(
deptAlias
=
"d"
)
public
SjBzxx
selectBzxxTj
(
SjBzxx
sjBzxx
)
{
return
sjBzxxMapper
.
selectBzxxTj
(
sjBzxx
);
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjFybpZbServiceImpl.java
View file @
c4c6534a
...
...
@@ -75,6 +75,12 @@ public class SjFybpZbServiceImpl implements ISjFybpZbService
return
sjFybpZbMapper
.
selectSjFybpZbList
(
sjFybpZb
);
}
@Override
public
List
<
SjFybpZb
>
selectSjFybpZbList_main
(
SjFybpZb
sjFybpZb
)
{
return
sjFybpZbMapper
.
selectSjFybpZbList_main
(
sjFybpZb
);
}
/**
* 新增三基-费用报批主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsYdjcjlServiceImpl.java
View file @
c4c6534a
...
...
@@ -50,6 +50,12 @@ public class SjGfjsYdjcjlServiceImpl implements ISjGfjsYdjcjlService
return
sjGfjsYdjcjlMapper
.
selectSjGfjsYdjcjlList
(
sjGfjsYdjcjl
);
}
@Override
public
List
<
SjGfjsYdjcjl
>
selectSjGfjsYdjcjlList_main
(
SjGfjsYdjcjl
sjGfjsYdjcjl
)
{
return
sjGfjsYdjcjlMapper
.
selectSjGfjsYdjcjlList_main
(
sjGfjsYdjcjl
);
}
/**
* 新增规范建设 月度检查记录
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjGfjsZsdwkhpjZbServiceImpl.java
View file @
c4c6534a
...
...
@@ -54,6 +54,11 @@ public class SjGfjsZsdwkhpjZbServiceImpl implements ISjGfjsZsdwkhpjZbService
return
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZbList_Bfz
(
sjGfjsZsdwkhpjZb
);
}
public
List
<
SjGfjsZsdwkhpjZb
>
selectSjGfjsZsdwkhpjZbList_main
(
SjGfjsZsdwkhpjZb
sjGfjsZsdwkhpjZb
)
{
return
sjGfjsZsdwkhpjZbMapper
.
selectSjGfjsZsdwkhpjZbList_main
(
sjGfjsZsdwkhpjZb
);
}
/**
* 新增指导帮扶-直属单位考核评价主
*
...
...
qianhe-ydsj/src/main/java/com/qianhe/service/impl/SjLhscServiceImpl.java
View file @
c4c6534a
...
...
@@ -70,6 +70,12 @@ public class SjLhscServiceImpl implements ISjLhscService
return
sjLhscMapper
.
selectSjLhscList
(
sjLhsc
);
}
@Override
public
List
<
SjLhsc
>
selectSjLhscList_main
(
SjLhsc
sjLhsc
)
{
return
sjLhscMapper
.
selectSjLhscList_main
(
sjLhsc
);
}
/**
* 新增三基-例会上传
*
...
...
qianhe-ydsj/src/main/resources/mapper/SjBzxxMapper.xml
View file @
c4c6534a
...
...
@@ -103,14 +103,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!--查询统计-->
<select
id=
"selectBzxxTj"
parameterType=
"SjBzxx"
resultMap=
"SjBzxxResult"
>
select a.dept_id, a.bzlx, count(a.id) bzzs, sum(a.rs) zrs,
d.dept_name
select count(a.id) bzzs, sum(a.rs) zrs
from sj_bzxx a
left join sys_dept d on a.dept_id=d.dept_id
where 1=1
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"bzlx != null and bzlx != ''"
>
and bzlx = #{bzlx}
</if>
<if
test=
"bzmc != null and bzmc != ''"
>
and bzmc = #{bzmc}
</if>
<!-- 数据范围过滤 -->
${params.dataScope}
limit 1
</select>
<update
id=
"plxg"
parameterType=
"SjBzxx"
>
...
...
qianhe-ydsj/src/main/resources/mapper/SjFybpZbMapper.xml
View file @
c4c6534a
...
...
@@ -230,4 +230,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
( #{item.id}, #{item.fymc}, #{item.fyrq}, #{item.deptId}, #{item.fylx}, #{item.fyms}, #{item.fyje}, #{item.zbId})
</foreach>
</insert>
<select
id=
"selectSjFybpZbList_main"
parameterType=
"SjFybpZb"
resultMap=
"SjFybpZbResult"
>
select id,fyrq, a.dept_id, fyje, zt, tjr, tjrq, sprq, spr, ysyje, spyj, a.create_by, a.create_time, a.update_by, a.update_time, a.remark, yl1, yl2, yl3, yl4, yl5, d.dept_name, u.user_name spr_name
from sj_fybp_zb a
left join sys_dept d on a.dept_id=d.dept_id
left join sys_user u on a.spr=u.user_name
<where>
<if
test=
"fyrq != null and fyrq != ''"
>
and fyrq = #{fyrq}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"fyje != null "
>
and fyje = #{fyje}
</if>
<if
test=
"zt != null and zt != ''"
>
and zt = #{zt}
</if>
<if
test=
"tjr != null and tjr != ''"
>
and tjr = #{tjr}
</if>
<if
test=
"tjrq != null and tjrq != ''"
>
and tjrq = #{tjrq}
</if>
<if
test=
"sprq != null and sprq != ''"
>
and sprq = #{sprq}
</if>
<if
test=
"spr != null and spr != ''"
>
and spr = #{spr}
</if>
<if
test=
"ysyje != null "
>
and ysyje = #{ysyje}
</if>
<if
test=
"spyj != null and spyj != ''"
>
and spyj = #{spyj}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"spcx != null and spcx != '' and spcx=='1'.toString()"
>
and zt in ('待审批','已批复')
</if>
</where>
order by a.create_time desc
</select>
</mapper>
\ No newline at end of file
qianhe-ydsj/src/main/resources/mapper/SjGfjsYdjcjlMapper.xml
View file @
c4c6534a
...
...
@@ -305,5 +305,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
order by a.rq desc
</select>
<select
id=
"selectSjGfjsYdjcjlList_main"
parameterType=
"SjGfjsYdjcjl"
resultMap=
"SjGfjsYdjcjlResult"
>
<include
refid=
"selectSjGfjsYdjcjlVo"
/>
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"rq != null and rq != ''"
>
and rq = #{rq}
</if>
<if
test=
"jcjb != null and jcjb != ''"
>
and jcjb = #{jcjb}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null "
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null "
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"sfczwt != null and sfczwt != ''"
>
and sfczwt = #{sfczwt}
</if>
<if
test=
"zt != null and zt != ''"
>
and zt = #{zt}
</if>
<if
test=
"startRq != null and startRq != ''"
>
and rq >= #{startRq}
</if>
<if
test=
"endRq != null and endRq != ''"
>
and rq
<
= #{endRq}
</if>
</where>
order by a.rq desc
</select>
</mapper>
qianhe-ydsj/src/main/resources/mapper/SjGfjsZsdwkhpjZbMapper.xml
View file @
c4c6534a
...
...
@@ -364,4 +364,54 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</delete>
<select
id=
"selectSjGfjsZsdwkhpjZbList_main"
parameterType=
"SjGfjsZsdwkhpjZb"
resultMap=
"SjGfjsZsdwkhpjZbResult"
>
<include
refid=
"selectSjGfjsZsdwkhpjZbVo"
/>
<where>
<if
test=
"deptId != null "
>
and (a.dept_id = #{deptId} or find_in_set(#{deptId},d.ancestors))
</if>
<if
test=
"parentDeptId != null "
>
and a.parent_dept_id = #{parentDeptId}
</if>
<if
test=
"nd != null and nd != ''"
>
and a.nd = #{nd}
</if>
<if
test=
"zqfw != null and zqfw != ''"
>
and a.zqfw = #{zqfw}
</if>
<if
test=
"zqlx != null and zqlx != ''"
>
and a.zqlx = #{zqlx}
</if>
<if
test=
"jb != null and jb != ''"
>
and a.jb = #{jb}
</if>
<if
test=
"deptDfl != null and deptDfl != ''"
>
and a.dept_dfl = #{deptDfl}
</if>
<if
test=
"deptLx != null and deptLx != ''"
>
and a.dept_lx = #{deptLx}
</if>
<if
test=
"deptYwfl != null and deptYwfl != ''"
>
and a.dept_ywfl = #{deptYwfl}
</if>
<if
test=
"djyjzfs != null "
>
and djyjzfs = #{djyjzfs}
</if>
<if
test=
"djyjkfs != null "
>
and djyjkfs = #{djyjkfs}
</if>
<if
test=
"djyjkfbl != null "
>
and djyjkfbl = #{djyjkfbl}
</if>
<if
test=
"djyjdf != null "
>
and djyjdf = #{djyjdf}
</if>
<if
test=
"sztszfs != null "
>
and sztszfs = #{sztszfs}
</if>
<if
test=
"sztskfs != null "
>
and sztskfs = #{sztskfs}
</if>
<if
test=
"sztsfbl != null "
>
and sztsfbl = #{sztsfbl}
</if>
<if
test=
"sztsdf != null "
>
and sztsdf = #{sztsdf}
</if>
<if
test=
"glgfzfs != null "
>
and glgfzfs = #{glgfzfs}
</if>
<if
test=
"glgfkfs != null "
>
and glgfkfs = #{glgfkfs}
</if>
<if
test=
"glgfbl != null "
>
and glgfbl = #{glgfbl}
</if>
<if
test=
"glgfdf != null "
>
and glgfdf = #{glgfdf}
</if>
<if
test=
"ywcxzfs != null "
>
and ywcxzfs = #{ywcxzfs}
</if>
<if
test=
"ywcxkfs != null "
>
and ywcxkfs = #{ywcxkfs}
</if>
<if
test=
"ywcxbl != null "
>
and ywcxbl = #{ywcxbl}
</if>
<if
test=
"ywcxdf != null "
>
and ywcxdf = #{ywcxdf}
</if>
<if
test=
"sffjxs != null "
>
and sffjxs = #{sffjxs}
</if>
<if
test=
"zkf != null "
>
and zkf = #{zkf}
</if>
<if
test=
"zkfbl != null "
>
and zkfbl = #{zkfbl}
</if>
<if
test=
"zdf != null "
>
and zdf = #{zdf}
</if>
<if
test=
"zhdf != null "
>
and zhdf = #{zhdf}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"pm != null and pm != ''"
>
and pm = #{pm}
</if>
<if
test=
"zt != null and zt != ''"
>
and a.zt = #{zt}
</if>
<if
test=
"fdjb != null and fdjb != ''"
>
and fdjb = #{fdjb}
</if>
<if
test=
"df != null "
>
and zdf
<
= #{df}
</if>
<if
test=
"kfbl != null "
>
and zkfbl >= #{kfbl}
</if>
<if
test=
"fjx != null and fjx.toString()=='1'.toString() "
>
and sffjxs >= #{fjx}
</if>
<if
test=
"fjx != null and fjx.toString()=='0'.toString() "
>
and sffjxs = #{fjx}
</if>
</where>
order by p.order_num, a.pm,a.zhdf desc
</select>
</mapper>
\ No newline at end of file
qianhe-ydsj/src/main/resources/mapper/SjLhscMapper.xml
View file @
c4c6534a
...
...
@@ -31,6 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"deptName"
column=
"dept_name"
/>
<result
property=
"parentId"
column=
"parent_id"
/>
</resultMap>
<resultMap
id=
"SjLhscSjLhscWtResult"
type=
"SjLhsc"
extends=
"SjLhscResult"
>
...
...
@@ -283,4 +284,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
( #{item.id}, #{item.lhscId}, #{item.wt}, #{item.remark}, #{item.yl1}, #{item.yl2}, #{item.yl3}, #{item.yl4}, #{item.yl5})
</foreach>
</insert>
<select
id=
"selectSjLhscList_main"
parameterType=
"SjLhsc"
resultMap=
"SjLhscResult"
>
select id, hymc, hyrq,
a.dept_id, hydd, chry,
yxqk, jjwt, czwt, tgjy,
ldyq, zt, a.dwjb, tjr, tjrq,
a.create_by, a.create_time, a.update_by,
a.update_time, remark, yl1, yl2, yl3, yl4, yl5,d.dept_name from sj_lhsc a
left join sys_dept d on a.dept_id=d.dept_id
<where>
<if
test=
"hymc != null and hymc != ''"
>
and hymc like concat('%', #{hymc}, '%')
</if>
<if
test=
"hyrq != null and hyrq != ''"
>
and hyrq = #{hyrq}
</if>
<if
test=
"deptId != null and deptId != ''"
>
and a.dept_id = #{deptId}
</if>
<if
test=
"parentId != null and parentId != ''"
>
AND d.parent_id = #{parentId}
</if>
<if
test=
"hydd != null and hydd != ''"
>
and hydd = #{hydd}
</if>
<if
test=
"chry != null and chry != ''"
>
and chry = #{chry}
</if>
<if
test=
"yxqk != null and yxqk != ''"
>
and yxqk = #{yxqk}
</if>
<if
test=
"jjwt != null and jjwt != ''"
>
and jjwt = #{jjwt}
</if>
<if
test=
"czwt != null and czwt != ''"
>
and czwt = #{czwt}
</if>
<if
test=
"tgjy != null and tgjy != ''"
>
and tgjy = #{tgjy}
</if>
<if
test=
"ldyq != null and ldyq != ''"
>
and ldyq = #{ldyq}
</if>
<if
test=
"zt != null and zt != ''"
>
and zt = #{zt}
</if>
<if
test=
"dwjb != null and dwjb != ''"
>
and a.dwjb = #{dwjb}
</if>
<if
test=
"tjr != null and tjr != ''"
>
and tjr = #{tjr}
</if>
<if
test=
"tjrq != null and tjrq != ''"
>
and tjrq = #{tjrq}
</if>
<if
test=
"yl1 != null and yl1 != ''"
>
and yl1 = #{yl1}
</if>
<if
test=
"yl2 != null and yl2 != ''"
>
and yl2 = #{yl2}
</if>
<if
test=
"yl3 != null and yl3 != ''"
>
and yl3 = #{yl3}
</if>
<if
test=
"yl4 != null and yl4 != ''"
>
and yl4 = #{yl4}
</if>
<if
test=
"yl5 != null and yl5 != ''"
>
and yl5 = #{yl5}
</if>
<if
test=
"startJd !=null and startJd !=''"
>
and DATE_FORMAT(hyrq,'%Y-%m')>=#{startJd}
</if>
<if
test=
"endJd !=null and endJd !=''"
>
and DATE_FORMAT(hyrq,'%Y-%m')
<
=#{endJd}
</if>
</where>
order by hyrq desc
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment