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
b7c18cd2
Commit
b7c18cd2
authored
Apr 15, 2026
by
MMF
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMF 2026-04-15 帮扶反馈
parent
98f403cd
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
20 deletions
+56
-20
qianhe-system/src/main/resources/mapper/system/SysUserMapper.xml
+3
-0
qianhe-ydsj/src/main/java/com/qianhe/zqbf/domain/ZqbfXmzBfxqQuery.java
+2
-0
qianhe-ydsj/src/main/java/com/qianhe/zqbf/domain/ZqbfXmzBfzjVo.java
+12
-0
qianhe-ydsj/src/main/java/com/qianhe/zqbf/service/impl/ZqbfXmzBfxqServiceImpl.java
+3
-3
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfxmMapper.xml
+1
-1
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfxqMapper.xml
+26
-14
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfzjMapper.xml
+9
-2
No files found.
qianhe-system/src/main/resources/mapper/system/SysUserMapper.xml
View file @
b7c18cd2
...
@@ -117,6 +117,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -117,6 +117,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"userName != null and userName != ''"
>
<if
test=
"userName != null and userName != ''"
>
AND u.user_name like concat('%', #{userName}, '%')
AND u.user_name like concat('%', #{userName}, '%')
</if>
</if>
<if
test=
"nickName != null and nickName != ''"
>
AND u.nick_name like concat('%', #{nickName}, '%')
</if>
<if
test=
"phonenumber != null and phonenumber != ''"
>
<if
test=
"phonenumber != null and phonenumber != ''"
>
AND u.phonenumber like concat('%', #{phonenumber}, '%')
AND u.phonenumber like concat('%', #{phonenumber}, '%')
</if>
</if>
...
...
qianhe-ydsj/src/main/java/com/qianhe/zqbf/domain/ZqbfXmzBfxqQuery.java
View file @
b7c18cd2
...
@@ -9,6 +9,7 @@ import lombok.NoArgsConstructor;
...
@@ -9,6 +9,7 @@ import lombok.NoArgsConstructor;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
* 最强帮扶 帮扶计划 Model
* 最强帮扶 帮扶计划 Model
...
@@ -39,6 +40,7 @@ public class ZqbfXmzBfxqQuery extends BaseEntity {
...
@@ -39,6 +40,7 @@ public class ZqbfXmzBfxqQuery extends BaseEntity {
* 当前状态,字典
* 当前状态,字典
*/
*/
private
String
dqzt
;
private
String
dqzt
;
private
List
<
String
>
dqztList
;
/**
/**
* 开始时间
* 开始时间
*/
*/
...
...
qianhe-ydsj/src/main/java/com/qianhe/zqbf/domain/ZqbfXmzBfzjVo.java
View file @
b7c18cd2
...
@@ -92,4 +92,16 @@ public class ZqbfXmzBfzjVo implements Serializable {
...
@@ -92,4 +92,16 @@ public class ZqbfXmzBfzjVo implements Serializable {
* 预留5
* 预留5
*/
*/
private
String
yl5
;
private
String
yl5
;
/**
* 用户ID
*/
private
Long
user_id
;
/**
* 用户名
*/
private
String
user_name
;
/**
* 昵称
*/
private
String
nick_name
;
}
}
qianhe-ydsj/src/main/java/com/qianhe/zqbf/service/impl/ZqbfXmzBfxqServiceImpl.java
View file @
b7c18cd2
...
@@ -41,10 +41,10 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService {
...
@@ -41,10 +41,10 @@ public class ZqbfXmzBfxqServiceImpl implements ZqbfXmzBfxqService {
* 基层单位(查询本部门以及一下数据)
* 基层单位(查询本部门以及一下数据)
*/
*/
@Override
@Override
@DataScope
(
deptAlias
=
"dept"
,
userAlias
=
"bfzj"
)
@DataScope
(
deptAlias
=
"dept"
)
public
List
<
ZqbfXmzBfxqVo
>
list
(
ZqbfXmzBfxqQuery
zqbfXmzBfxqQuery
)
{
public
List
<
ZqbfXmzBfxqVo
>
list
(
ZqbfXmzBfxqQuery
zqbfXmzBfxqQuery
)
{
if
(
SecurityUtils
.
hasPermi
(
MtConstant
.
SGZQ_XMZ
)
||
SecurityUtils
.
hasPermi
(
MtConstant
.
SGZQ_XMZ_LD
))
{
if
(
SecurityUtils
.
hasPermi
(
MtConstant
.
SGZQ_XMZ
_ZJ
))
{
zqbfXmzBfxqQuery
.
set
Dqzt
(
"3"
);
zqbfXmzBfxqQuery
.
set
User_id
(
SecurityUtils
.
getUserId
()
);
}
}
List
<
ZqbfXmzBfxqVo
>
dataList
=
zqbfXmzBfxqMapper
.
list
(
zqbfXmzBfxqQuery
);
List
<
ZqbfXmzBfxqVo
>
dataList
=
zqbfXmzBfxqMapper
.
list
(
zqbfXmzBfxqQuery
);
return
dataList
;
return
dataList
;
...
...
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfxmMapper.xml
View file @
b7c18cd2
...
@@ -125,7 +125,7 @@
...
@@ -125,7 +125,7 @@
</update>
</update>
<!-- 删除 -->
<!-- 删除 -->
<delete
id=
"delete"
parameterType=
"long"
>
<delete
id=
"delete"
parameterType=
"long"
>
DELETE FROM zqbf_xmz_bfxm WHERE
BBM
IN
DELETE FROM zqbf_xmz_bfxm WHERE
xmid
IN
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
<foreach
item=
"id"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
...
...
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfxqMapper.xml
View file @
b7c18cd2
...
@@ -43,20 +43,10 @@
...
@@ -43,20 +43,10 @@
zqbf_xmz_bfxq bfxq
zqbf_xmz_bfxq bfxq
LEFT JOIN sys_dept dept ON bfxq.dwid = dept.dept_id
LEFT JOIN sys_dept dept ON bfxq.dwid = dept.dept_id
LEFT JOIN zqbf_xmz_bfxm bfxm ON bfxq.xmid = bfxm.xmid
LEFT JOIN zqbf_xmz_bfxm bfxm ON bfxq.xmid = bfxm.xmid
LEFT JOIN zqcz_xmz_ddzj ddzj ON bfxq.xqid = ddzj.xqid
LEFT JOIN zqbf_xmz_bfzj bfzj ON ddzj.ddzj = bfzj.zjid
</sql>
</sql>
<!-- 条件查询 -->
<sql
id=
"selectGroup"
>
<select
id=
"list"
parameterType=
"ZqbfXmzBfxqQuery"
resultMap=
"ZqbfXmzBfxqResult"
>
<include
refid=
"selectCommon"
></include>
<where>
<if
test=
"xqid != null "
>
AND bfxq.xqid = #{xqid}
</if>
<if
test=
"user_id != null "
>
AND ddzj.ddzj = #{user_id}
</if>
<if
test=
"dwid != null "
>
AND (dept.dept_id = #{dwid} OR FIND_IN_SET(#{dwid}, dept.ancestors))
</if>
<if
test=
"xmmc != null and xmmc != ''"
>
AND bfxm.xmmc like concat('%', #{xmmc}, '%')
</if>
<if
test=
"dqzt != null and dqzt != ''"
>
AND bfxq.dqzt
>
= #{dqzt}
</if>
<if
test=
"kssj != null"
>
AND bfxq.bfkssj
>
= #{kssj}
</if>
<if
test=
"jssj != null"
>
AND bfxq.bfjssj
<
= #{jssj}
</if>
${params.dataScope}
</where>
GROUP BY
GROUP BY
bfxq.xqid,
bfxq.xqid,
bfxq.dwid,
bfxq.dwid,
...
@@ -70,13 +60,35 @@
...
@@ -70,13 +60,35 @@
bfxq.bfjssj,
bfxq.bfjssj,
bfxq.lxr,
bfxq.lxr,
bfxq.lxdh,
bfxq.lxdh,
bfxq.gxsj,
bfxq.wcsj,
bfxq.wcsj,
bfxq.bfms
bfxq.bfms
</sql>
<!-- 条件查询 -->
<select
id=
"list"
parameterType=
"ZqbfXmzBfxqQuery"
resultMap=
"ZqbfXmzBfxqResult"
>
<include
refid=
"selectCommon"
></include>
<where>
<if
test=
"xqid != null "
>
AND bfxq.xqid = #{xqid}
</if>
<if
test=
"user_id != null "
>
AND bfzj.user_id = #{user_id}
</if>
<if
test=
"dwid != null "
>
AND (dept.dept_id = #{dwid} OR FIND_IN_SET(#{dwid}, dept.ancestors))
</if>
<if
test=
"xmmc != null and xmmc != ''"
>
AND bfxm.xmmc like concat('%', #{xmmc}, '%')
</if>
<if
test=
"dqzt != null and dqzt != ''"
>
AND bfxq.dqzt = #{dqzt}
</if>
<if
test=
"dqztList != null and not dqztList.isEmpty()"
>
AND (bfxq.dqzt IN
<foreach
collection=
"dqztList"
item=
"item"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{item}
</foreach>
)
</if>
<if
test=
"kssj != null"
>
AND bfxq.bfkssj
>
= #{kssj}
</if>
<if
test=
"jssj != null"
>
AND bfxq.bfjssj
<
= #{jssj}
</if>
${params.dataScope}
</where>
<include
refid=
"selectGroup"
></include>
ORDER BY bfxq.gxsj DESC
ORDER BY bfxq.gxsj DESC
</select>
</select>
<!-- 查询详情 -->
<!-- 查询详情 -->
<select
id=
"info"
parameterType=
"long"
resultMap=
"ZqbfXmzBfxqResult"
>
<select
id=
"info"
parameterType=
"long"
resultMap=
"ZqbfXmzBfxqResult"
>
<include
refid=
"selectCommon"
></include>
WHERE bfxq.xqid = #{id}
<include
refid=
"selectCommon"
></include>
WHERE bfxq.xqid = #{id}
<include
refid=
"selectGroup"
></include>
</select>
</select>
<!-- 新增 -->
<!-- 新增 -->
<insert
id=
"add"
parameterType=
"ZqbfXmzBfxq"
useGeneratedKeys=
"true"
keyProperty=
"xqid"
>
<insert
id=
"add"
parameterType=
"ZqbfXmzBfxq"
useGeneratedKeys=
"true"
keyProperty=
"xqid"
>
...
...
qianhe-ydsj/src/main/resources/mapper/zqbf/ZqbfXmzBfzjMapper.xml
View file @
b7c18cd2
...
@@ -22,13 +22,16 @@
...
@@ -22,13 +22,16 @@
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl3"
column=
"yl3"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl4"
column=
"yl4"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"yl5"
column=
"yl5"
/>
<result
property=
"user_id"
column=
"user_id"
/>
<result
property=
"user_name"
column=
"user_name"
/>
<result
property=
"nick_name"
column=
"nick_name"
/>
</resultMap>
</resultMap>
<!-- 通用查询 -->
<!-- 通用查询 -->
<sql
id=
"selectCommon"
>
<sql
id=
"selectCommon"
>
SELECT
SELECT
bfzj.zjid,
bfzj.zjid,
bfzj.dwid,
bfzj.dwid,
CONCAT(
dept.dept_name, dept.create_by
) AS dwmc,
CONCAT(
dept.dept_name, dept.create_by
) AS dwmc,
bfzj.zjmc,
bfzj.zjmc,
bfzj.zjzw,
bfzj.zjzw,
bfzj.zjzj,
bfzj.zjzj,
...
@@ -42,10 +45,14 @@
...
@@ -42,10 +45,14 @@
bfzj.yl2,
bfzj.yl2,
bfzj.yl3,
bfzj.yl3,
bfzj.yl4,
bfzj.yl4,
bfzj.yl5
bfzj.yl5,
user.user_id,
user.user_name,
user.nick_name
FROM
FROM
zqbf_xmz_bfzj bfzj
zqbf_xmz_bfzj bfzj
LEFT JOIN sys_dept dept ON bfzj.dwid = dept.dept_id
LEFT JOIN sys_dept dept ON bfzj.dwid = dept.dept_id
LEFT JOIN sys_user user ON bfzj.user_id=user.user_id
</sql>
</sql>
<!-- 条件查询 -->
<!-- 条件查询 -->
<select
id=
"list"
parameterType=
"ZqbfXmzBfzjQuery"
resultMap=
"ZqbfXmzBfzjResult"
>
<select
id=
"list"
parameterType=
"ZqbfXmzBfzjQuery"
resultMap=
"ZqbfXmzBfzjResult"
>
...
...
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