Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
data_management_system
Commits
1d0bc9d1
Commit
1d0bc9d1
authored
Dec 01, 2022
by
王琮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改59877
parent
2ad2b956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
127 additions
and
69 deletions
+127
-69
FcryMapper.xml
ruoyi-system/src/main/resources/mapper/system/FcryMapper.xml
+127
-69
No files found.
ruoyi-system/src/main/resources/mapper/system/FcryMapper.xml
View file @
1d0bc9d1
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.ruoyi.system.mapper.FcryMapper"
>
<mapper
namespace=
"com.ruoyi.system.mapper.FcryMapper"
>
<resultMap
type=
"Fcry"
id=
"FcryResult"
>
<resultMap
type=
"Fcry"
id=
"FcryResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"fcPlace"
column=
"fc_place"
/>
<result
property=
"fcPlace"
column=
"fc_place"
/>
<result
property=
"room"
column=
"room"
/>
<result
property=
"room"
column=
"room"
/>
<result
property=
"jzName"
column=
"jz_name"
/>
<result
property=
"jzName"
column=
"jz_name"
/>
<result
property=
"cardNo"
column=
"card_no"
/>
<result
property=
"cardNo"
column=
"card_no"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"area"
column=
"area"
/>
<result
property=
"area"
column=
"area"
/>
<result
property=
"street"
column=
"street"
/>
<result
property=
"street"
column=
"street"
/>
<result
property=
"community"
column=
"community"
/>
<result
property=
"community"
column=
"community"
/>
<result
property=
"unit"
column=
"unit"
/>
<result
property=
"unit"
column=
"unit"
/>
<result
property=
"zrTime"
column=
"zr_time"
/>
<result
property=
"zrTime"
column=
"zr_time"
/>
<result
property=
"zcTime"
column=
"zc_time"
/>
<result
property=
"zcTime"
column=
"zc_time"
/>
<result
property=
"glPlace"
column=
"gl_place"
/>
<result
property=
"glPlace"
column=
"gl_place"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"checkCard"
column=
"check_card"
/>
<result
property=
"checkCard"
column=
"check_card"
/>
<result
property=
"peopleType"
column=
"people_type"
/>
<result
property=
"peopleType"
column=
"people_type"
/>
<result
property=
"isPositive"
column=
"is_positive"
/>
<result
property=
"isPositive"
column=
"is_positive"
/>
<result
property=
"positiveOnly"
column=
"positive_only"
/>
<result
property=
"positiveOnly"
column=
"positive_only"
/>
<result
property=
"committee"
column=
"committee"
/>
<result
property=
"committee"
column=
"committee"
/>
<result
property=
"floor"
column=
"floor"
/>
<result
property=
"floor"
column=
"floor"
/>
<result
property=
"doorplate"
column=
"doorplate"
/>
<result
property=
"doorplate"
column=
"doorplate"
/>
<result
property=
"otherGldTime"
column=
"other_gld_time"
/>
<result
property=
"otherGldTime"
column=
"other_gld_time"
/>
<result
property=
"otherFcTime"
column=
"other_fc_time"
/>
<result
property=
"otherFcTime"
column=
"other_fc_time"
/>
</resultMap>
</resultMap>
<sql
id=
"selectFcryVo"
>
<sql
id=
"selectFcryVo"
>
select id, fc_place, room, jz_name, card_no, phone, area, street, community, unit, zr_time, zc_time, gl_place,
select id,
status, del_flag, create_by, create_time, update_by, update_time, remark,check_card,people_type,is_positive,
fc_place,
positive_only,committee,floor,doorplate,other_fc_time,other_gld_time
room,
from fcry
jz_name,
card_no,
phone,
area,
street,
community,
unit,
zr_time,
zc_time,
gl_place,
status,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark,
check_card,
people_type,
is_positive,
positive_only,
committee,
floor,
doorplate,
other_fc_time,
other_gld_time
from fcry
</sql>
</sql>
<select
id=
"selectFcryList"
parameterType=
"Fcry"
resultMap=
"FcryResult"
>
<select
id=
"selectFcryList"
parameterType=
"Fcry"
resultMap=
"FcryResult"
>
select a.id, a.fc_place, a.room, a.jz_name, a.card_no, a.phone, a.area, a.street, a.community, a.unit, a.zr_time,
select a.id, a.fc_place, a.room, a.jz_name, a.card_no, a.phone, a.area, a.street, a.community, a.unit,
a.zc_time, a.gl_place, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time,
a.zr_time,
a.remark ,a.check_card ,a.people_type ,a.is_positive ,a.positive_only ,a.committee ,a.floor ,a.doorplate,
a.zc_time, a.gl_place, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time,
a.other_fc_time,a.other_gld_time from fcry a
a.remark ,a.check_card ,a.people_type ,a.is_positive ,a.positive_only ,a.committee ,a.floor ,a.doorplate,
a.other_fc_time,a.other_gld_time from fcry a
left join sys_user u on u.user_id = a.create_by
left join sys_user u on u.user_id = a.create_by
left join sys_dept d on u.dept_id = d.dept_id
left join sys_dept d on u.dept_id = d.dept_id
where a.del_flag = 0
where a.del_flag = 0
<if
test=
"fcPlace != null and fcPlace != ''"
>
and a.fc_place = #{fcPlace}
</if>
<if
test=
"fcPlace != null and fcPlace != ''"
>
and a.fc_place = #{fcPlace}
</if>
<if
test=
"room != null and room != ''"
>
and a.room like concat('%', #{room}, '%')
</if>
<if
test=
"room != null and room != ''"
>
and a.room like concat('%', #{room}, '%')
</if>
<if
test=
"jzName != null and jzName != ''"
>
and a.jz_name like concat('%', #{jzName}, '%')
</if>
<if
test=
"floor != null and floor != ''"
>
and a.floor like concat('%', #{floor}, '%')
</if>
<if
test=
"cardNo != null and cardNo != ''"
>
and a.card_no like concat('%', #{cardNo}, '%')
</if>
<if
test=
"doorplate != null and doorplate != ''"
>
and a.doorplate like concat('%', #{doorplate}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and a.phone like concat('%', #{phone}, '%')
</if>
<if
test=
"jzName != null and jzName != ''"
>
and a.jz_name like concat('%', #{jzName}, '%')
</if>
<if
test=
"area != null and area != ''"
>
and a.area = #{area}
</if>
<if
test=
"cardNo != null and cardNo != ''"
>
and a.card_no like concat('%', #{cardNo}, '%')
</if>
<if
test=
"street != null and street != ''"
>
and a.street = #{street}
</if>
<if
test=
"phone != null and phone != ''"
>
and a.phone like concat('%', #{phone}, '%')
</if>
<if
test=
"community != null and community != ''"
>
and a.community like concat('%', #{community}, '%')
</if>
<if
test=
"area != null and area != ''"
>
and a.area = #{area}
</if>
<if
test=
"unit != null and unit != ''"
>
and a.unit like concat('%', #{unit}, '%')
</if>
<if
test=
"street != null and street != ''"
>
and a.street = #{street}
</if>
<if
test=
"zrTime != null "
>
and a.zr_time = #{zrTime}
</if>
<if
test=
"community != null and community != ''"
>
and a.community like concat('%', #{community}, '%')
</if>
<if
test=
"zcTime != null "
>
and a.zc_time = #{zcTime}
</if>
<if
test=
"unit != null and unit != ''"
>
and a.unit like concat('%', #{unit}, '%')
</if>
<if
test=
"glPlace != null and glPlace != ''"
>
and a.gl_place like concat('%', #{glPlace}, '%')
</if>
<if
test=
"zrTime != null "
>
and a.zr_time = #{zrTime}
</if>
<if
test=
"status != null and status != ''"
>
and a.status = #{status}
</if>
<if
test=
"zcTime != null "
>
and a.zc_time = #{zcTime}
</if>
<if
test=
"userType != null and userType == '00'.toString()"
>
${params.dataScope}
</if>
<if
test=
"glPlace != null and glPlace != ''"
>
and a.gl_place like concat('%', #{glPlace}, '%')
</if>
<if
test=
"userType != null and userType == '2'.toString()"
>
and a.street = #{value}
</if>
<if
test=
"status != null and status != ''"
>
and a.status = #{status}
</if>
<if
test=
"userType != null and userType == '3'.toString()"
>
and a.committee = #{value}
</if>
<if
test=
"userType != null and userType == '00'.toString()"
>
${params.dataScope}
</if>
<if
test=
"userType != null and userType == '2'.toString()"
>
and a.street = #{value}
</if>
<if
test=
"userType != null and userType == '3'.toString()"
>
and a.committee = #{value}
</if>
</select>
</select>
<select
id=
"selectFcryById"
parameterType=
"Long"
resultMap=
"FcryResult"
>
<select
id=
"selectFcryById"
parameterType=
"Long"
resultMap=
"FcryResult"
>
<include
refid=
"selectFcryVo"
/>
<include
refid=
"selectFcryVo"
/>
where id = #{id}
where id = #{id}
</select>
</select>
<select
id=
"selectFcryByCard"
resultMap=
"FcryResult"
>
<select
id=
"selectFcryByCard"
resultMap=
"FcryResult"
>
select a.id, a.fc_place, a.room, a.jz_name, a.card_no, a.phone, a.area, a.street, a.community,
select a.id,
a.floor, a.unit, a.doorplate, a.zr_time, a.gl_place, a.status, a.del_flag, a.create_by,
a.fc_place,
a.create_time, a.update_by, a.update_time, a.remark , a.check_card , a.is_positive , a.positive_only,
a.room,
a.other_point_time, a.people_type,a.other_fc_time,a.other_gld_time from fcry a
a.jz_name,
where a.del_flag = 0 and a.card_no = #{cardNo}
a.card_no,
a.phone,
a.area,
a.street,
a.community,
a.floor,
a.unit,
a.doorplate,
a.zr_time,
a.gl_place,
a.status,
a.del_flag,
a.create_by,
a.create_time,
a.update_by,
a.update_time,
a.remark,
a.check_card,
a.is_positive,
a.positive_only,
a.other_point_time,
a.people_type,
a.other_fc_time,
a.other_gld_time
from fcry a
where a.del_flag = 0
and a.card_no = #{cardNo}
</select>
</select>
<select
id=
"selectGldryByCard"
resultType=
"com.ruoyi.system.domain.Gldry"
>
<select
id=
"selectGldryByCard"
resultType=
"com.ruoyi.system.domain.Gldry"
>
...
@@ -118,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -118,7 +173,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"peopleType != null"
>
people_type,
</if>
<if
test=
"peopleType != null"
>
people_type,
</if>
<if
test=
"otherFcTime != null"
>
other_fc_time,
</if>
<if
test=
"otherFcTime != null"
>
other_fc_time,
</if>
<if
test=
"otherGldTime != null"
>
other_gld_time,
</if>
<if
test=
"otherGldTime != null"
>
other_gld_time,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"fcPlace != null"
>
#{fcPlace},
</if>
<if
test=
"fcPlace != null"
>
#{fcPlace},
</if>
<if
test=
"room != null"
>
#{room},
</if>
<if
test=
"room != null"
>
#{room},
</if>
...
@@ -148,14 +203,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -148,14 +203,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"peopleType != null"
>
#{peopleType},
</if>
<if
test=
"peopleType != null"
>
#{peopleType},
</if>
<if
test=
"otherFcTime != null"
>
#{otherFcTime},
</if>
<if
test=
"otherFcTime != null"
>
#{otherFcTime},
</if>
<if
test=
"otherGldTime != null"
>
#{otherGldTime},
</if>
<if
test=
"otherGldTime != null"
>
#{otherGldTime},
</if>
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertBatchFcry"
parameterType=
"Fcry"
>
<insert
id=
"insertBatchFcry"
parameterType=
"Fcry"
>
insert into fcry (fc_place,room,jz_name,card_no,phone,area,street,community,floor,committee,
insert into fcry (fc_place,room,jz_name,card_no,phone,area,street,community,floor,committee,
unit,doorplate,zr_time,zc_time,gl_place,create_by,create_time,remark,check_card,is_positive,positive_only,people_type,other_fc_time,other_gld_time) values
unit,doorplate,zr_time,zc_time,gl_place,create_by,create_time,remark,check_card,is_positive,positive_only,people_type,other_fc_time,other_gld_time)
values
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
<foreach
item=
"item"
index=
"index"
collection=
"list"
separator=
","
>
(#{item.fcPlace},#{item.room},#{item.jzName},#{item.cardNo},#{item.phone},#{item.area},#{item.street},#{item.community},#{item.floor},#{item.committee},
(#{item.fcPlace},#{item.room},#{item.jzName},#{item.cardNo},#{item.phone},#{item.area},#{item.street},#{item.community},#{item.floor},#{item.committee},
#{item.unit},#{item.doorplate},#{item.zrTime},#{item.zcTime},#{item.glPlace},#{item.createBy},
#{item.unit},#{item.doorplate},#{item.zrTime},#{item.zcTime},#{item.glPlace},#{item.createBy},
#{item.createTime},#{item.remark},#{item.checkCard},#{item.isPositive},#{item.positiveOnly},#{item.peopleType},#{item.otherFcTime},#{item.otherGldTime})
#{item.createTime},#{item.remark},#{item.checkCard},#{item.isPositive},#{item.positiveOnly},#{item.peopleType},#{item.otherFcTime},#{item.otherGldTime})
</foreach>
</foreach>
</insert>
</insert>
...
@@ -227,7 +283,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -227,7 +283,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</insert>
</insert>
<delete
id=
"deleteFcryById"
parameterType=
"Long"
>
<delete
id=
"deleteFcryById"
parameterType=
"Long"
>
delete from fcry where id = #{id}
delete
from fcry
where id = #{id}
</delete>
</delete>
<delete
id=
"deleteFcryByIds"
parameterType=
"String"
>
<delete
id=
"deleteFcryByIds"
parameterType=
"String"
>
...
@@ -236,4 +294,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -236,4 +294,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
#{id}
</foreach>
</foreach>
</delete>
</delete>
</mapper>
</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