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
0f43cfb1
Commit
0f43cfb1
authored
Nov 28, 2022
by
gaoyingwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阳性人员加字段
parent
3e586302
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
125 additions
and
80 deletions
+125
-80
Yxry.java
ruoyi-system/src/main/java/com/ruoyi/system/domain/Yxry.java
+66
-52
YxryMapper.xml
ruoyi-system/src/main/resources/mapper/system/YxryMapper.xml
+24
-19
index.vue
ruoyi-ui/src/views/system/yxry/index.vue
+35
-9
No files found.
ruoyi-system/src/main/java/com/ruoyi/system/domain/Yxry.java
View file @
0f43cfb1
...
...
@@ -9,7 +9,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
/**
* 阳性人员对象 yxry
*
*
* @author ruoyi
* @date 2022-11-28
*/
...
...
@@ -53,6 +53,10 @@ public class Yxry extends BaseEntity
@Excel
(
name
=
"隔离状态"
)
private
String
isolationStatus
;
/** 是否已管控 */
@Excel
(
name
=
"是否已管控"
)
private
String
isControl
;
/** 小区/村名称 */
@Excel
(
name
=
"小区/村名称"
)
private
String
community
;
...
...
@@ -76,138 +80,147 @@ public class Yxry extends BaseEntity
/** 删除标志(0代表存在 2代表删除) */
private
String
delFlag
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
Long
getId
()
public
Long
getId
()
{
return
id
;
}
public
void
setSbDate
(
Date
sbDate
)
public
void
setSbDate
(
Date
sbDate
)
{
this
.
sbDate
=
sbDate
;
}
public
Date
getSbDate
()
public
Date
getSbDate
()
{
return
sbDate
;
}
public
void
setLdry
(
String
ldry
)
public
void
setLdry
(
String
ldry
)
{
this
.
ldry
=
ldry
;
}
public
String
getLdry
()
public
String
getLdry
()
{
return
ldry
;
}
public
void
setUserName
(
String
userName
)
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
public
String
getUserName
()
public
String
getUserName
()
{
return
userName
;
}
public
void
setCardNo
(
String
cardNo
)
public
void
setCardNo
(
String
cardNo
)
{
this
.
cardNo
=
cardNo
;
}
public
String
getCardNo
()
public
String
getCardNo
()
{
return
cardNo
;
}
public
void
setPhone
(
String
phone
)
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getPhone
()
public
String
getPhone
()
{
return
phone
;
}
public
void
setArea
(
String
area
)
public
void
setArea
(
String
area
)
{
this
.
area
=
area
;
}
public
String
getArea
()
public
String
getArea
()
{
return
area
;
}
public
void
setStreet
(
String
street
)
public
void
setStreet
(
String
street
)
{
this
.
street
=
street
;
}
public
String
getStreet
()
public
String
getStreet
()
{
return
street
;
}
public
void
setIsolationStatus
(
String
isolationStatus
)
public
void
setIsolationStatus
(
String
isolationStatus
)
{
this
.
isolationStatus
=
isolationStatus
;
}
public
String
getIsolationStatus
()
public
String
getIsolationStatus
()
{
return
isolationStatus
;
}
public
void
setCommunity
(
String
community
)
public
void
setIsControl
(
String
isControl
)
{
this
.
isControl
=
isControl
;
}
public
String
getIsControl
()
{
return
isControl
;
}
public
void
setCommunity
(
String
community
)
{
this
.
community
=
community
;
}
public
String
getCommunity
()
public
String
getCommunity
()
{
return
community
;
}
public
void
setUnit
(
String
unit
)
public
void
setUnit
(
String
unit
)
{
this
.
unit
=
unit
;
}
public
String
getUnit
()
public
String
getUnit
()
{
return
unit
;
}
public
void
setHasAcid
(
String
hasAcid
)
public
void
setHasAcid
(
String
hasAcid
)
{
this
.
hasAcid
=
hasAcid
;
}
public
String
getHasAcid
()
public
String
getHasAcid
()
{
return
hasAcid
;
}
public
void
setGlPlace
(
String
glPlace
)
public
void
setGlPlace
(
String
glPlace
)
{
this
.
glPlace
=
glPlace
;
}
public
String
getGlPlace
()
public
String
getGlPlace
()
{
return
glPlace
;
}
public
void
setStatus
(
String
status
)
public
void
setStatus
(
String
status
)
{
this
.
status
=
status
;
}
public
String
getStatus
()
public
String
getStatus
()
{
return
status
;
}
public
void
setDelFlag
(
String
delFlag
)
public
void
setDelFlag
(
String
delFlag
)
{
this
.
delFlag
=
delFlag
;
}
public
String
getDelFlag
()
public
String
getDelFlag
()
{
return
delFlag
;
}
...
...
@@ -215,26 +228,27 @@ public class Yxry extends BaseEntity
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"id"
,
getId
())
.
append
(
"sbDate"
,
getSbDate
())
.
append
(
"ldry"
,
getLdry
())
.
append
(
"userName"
,
getUserName
())
.
append
(
"cardNo"
,
getCardNo
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"area"
,
getArea
())
.
append
(
"street"
,
getStreet
())
.
append
(
"isolationStatus"
,
getIsolationStatus
())
.
append
(
"community"
,
getCommunity
())
.
append
(
"unit"
,
getUnit
())
.
append
(
"hasAcid"
,
getHasAcid
())
.
append
(
"glPlace"
,
getGlPlace
())
.
append
(
"status"
,
getStatus
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
.
append
(
"id"
,
getId
())
.
append
(
"sbDate"
,
getSbDate
())
.
append
(
"ldry"
,
getLdry
())
.
append
(
"userName"
,
getUserName
())
.
append
(
"cardNo"
,
getCardNo
())
.
append
(
"phone"
,
getPhone
())
.
append
(
"area"
,
getArea
())
.
append
(
"street"
,
getStreet
())
.
append
(
"isolationStatus"
,
getIsolationStatus
())
.
append
(
"isControl"
,
getIsControl
())
.
append
(
"community"
,
getCommunity
())
.
append
(
"unit"
,
getUnit
())
.
append
(
"hasAcid"
,
getHasAcid
())
.
append
(
"glPlace"
,
getGlPlace
())
.
append
(
"status"
,
getStatus
())
.
append
(
"delFlag"
,
getDelFlag
())
.
append
(
"createBy"
,
getCreateBy
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
toString
();
}
}
ruoyi-system/src/main/resources/mapper/system/YxryMapper.xml
View file @
0f43cfb1
...
...
@@ -14,6 +14,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"area"
column=
"area"
/>
<result
property=
"street"
column=
"street"
/>
<result
property=
"isolationStatus"
column=
"isolation_status"
/>
<result
property=
"isControl"
column=
"is_control"
/>
<result
property=
"community"
column=
"community"
/>
<result
property=
"unit"
column=
"unit"
/>
<result
property=
"hasAcid"
column=
"has_acid"
/>
...
...
@@ -28,35 +29,36 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql
id=
"selectYxryVo"
>
select id, sb_date, ldry, user_name, card_no, phone, area, street, isolation_status, community, unit, has_acid, gl_place, status, del_flag, create_by, create_time, update_by, update_time, remark from yxry
select id, sb_date, ldry, user_name, card_no, phone, area, street, isolation_status,
is_control,
community, unit, has_acid, gl_place, status, del_flag, create_by, create_time, update_by, update_time, remark from yxry
</sql>
<select
id=
"selectYxryList"
parameterType=
"Yxry"
resultMap=
"YxryResult"
>
select a.id, a.sb_date, a.ldry, a.user_name, a.card_no, a.phone, a.area, a.street, a.isolation_status, a.community, a.unit, a.has_acid, a.gl_place, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark from yxry a
select a.id, a.sb_date, a.ldry, a.user_name, a.card_no, a.phone, a.area, a.street, a.isolation_status, a.
is_control, a.
community, a.unit, a.has_acid, a.gl_place, a.status, a.del_flag, a.create_by, a.create_time, a.update_by, a.update_time, a.remark from yxry a
left join sys_user u on u.user_id = a.create_by
left join sys_dept d on u.dept_id = d.dept_id
where a.del_flag = 0
<if
test=
"sbDate != null "
>
and a.sb_date = #{sbDate}
</if>
<if
test=
"ldry != null and ldry != ''"
>
and a.ldry like concat('%', #{ldry}, '%')
</if>
<if
test=
"userName != null and userName != ''"
>
and a.user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"cardNo != null and cardNo != ''"
>
and a.card_no like concat('%', #{cardNo}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and a.phone like concat('%', #{phone}, '%')
</if>
<if
test=
"area != null and area != ''"
>
and a.area = #{area}
</if>
<if
test=
"street != null and street != ''"
>
and a.street = #{street}
</if>
<if
test=
"isolationStatus != null and isolationStatus != ''"
>
and a.isolation_status = #{isolationStatus}
</if>
<if
test=
"community != null and community != ''"
>
and a.community like concat('%', #{community}, '%')
</if>
<if
test=
"unit != null and unit != ''"
>
and a.unit like concat('%', #{unit}, '%')
</if>
<if
test=
"hasAcid != null and hasAcid != ''"
>
and a.has_acid like concat('%', #{hasAcid}, '%')
</if>
<if
test=
"glPlace != null and glPlace != ''"
>
and a.gl_place like concat('%', #{glPlace}, '%')
</if>
<if
test=
"status != null and status != ''"
>
and a.status = #{status}
</if>
<if
test=
"sbDate != null "
>
and a.sb_date = #{sbDate}
</if>
<if
test=
"ldry != null and ldry != ''"
>
and a.ldry like concat('%', #{ldry}, '%')
</if>
<if
test=
"userName != null and userName != ''"
>
and a.user_name like concat('%', #{userName}, '%')
</if>
<if
test=
"cardNo != null and cardNo != ''"
>
and a.card_no like concat('%', #{cardNo}, '%')
</if>
<if
test=
"phone != null and phone != ''"
>
and a.phone like concat('%', #{phone}, '%')
</if>
<if
test=
"area != null and area != ''"
>
and a.area = #{area}
</if>
<if
test=
"street != null and street != ''"
>
and a.street = #{street}
</if>
<if
test=
"isolationStatus != null and isolationStatus != ''"
>
and a.isolation_status = #{isolationStatus}
</if>
<if
test=
"isControl != null and isControl != ''"
>
and a.is_control = #{isControl}
</if>
<if
test=
"community != null and community != ''"
>
and a.community like concat('%', #{community}, '%')
</if>
<if
test=
"unit != null and unit != ''"
>
and a.unit like concat('%', #{unit}, '%')
</if>
<if
test=
"hasAcid != null and hasAcid != ''"
>
and a.has_acid like concat('%', #{hasAcid}, '%')
</if>
<if
test=
"glPlace != null and glPlace != ''"
>
and a.gl_place like concat('%', #{glPlace}, '%')
</if>
<if
test=
"status != null and status != ''"
>
and a.status = #{status}
</if>
${params.dataScope}
</select>
<select
id=
"selectYxryById"
parameterType=
"Long"
resultMap=
"YxryResult"
>
<include
refid=
"selectYxryVo"
/>
where id = #{id}
</select>
<insert
id=
"insertYxry"
parameterType=
"Yxry"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into yxry
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -68,6 +70,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"area != null"
>
area,
</if>
<if
test=
"street != null"
>
street,
</if>
<if
test=
"isolationStatus != null"
>
isolation_status,
</if>
<if
test=
"isControl != null"
>
is_control,
</if>
<if
test=
"community != null"
>
community,
</if>
<if
test=
"unit != null"
>
unit,
</if>
<if
test=
"hasAcid != null"
>
has_acid,
</if>
...
...
@@ -79,7 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"sbDate != null"
>
#{sbDate},
</if>
<if
test=
"ldry != null"
>
#{ldry},
</if>
...
...
@@ -89,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"area != null"
>
#{area},
</if>
<if
test=
"street != null"
>
#{street},
</if>
<if
test=
"isolationStatus != null"
>
#{isolationStatus},
</if>
<if
test=
"isControl != null"
>
#{isControl},
</if>
<if
test=
"community != null"
>
#{community},
</if>
<if
test=
"unit != null"
>
#{unit},
</if>
<if
test=
"hasAcid != null"
>
#{hasAcid},
</if>
...
...
@@ -100,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
</trim>
</trim>
</insert>
<update
id=
"updateYxry"
parameterType=
"Yxry"
>
...
...
@@ -114,6 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"area != null"
>
area = #{area},
</if>
<if
test=
"street != null"
>
street = #{street},
</if>
<if
test=
"isolationStatus != null"
>
isolation_status = #{isolationStatus},
</if>
<if
test=
"isControl != null"
>
is_control = #{isControl},
</if>
<if
test=
"community != null"
>
community = #{community},
</if>
<if
test=
"unit != null"
>
unit = #{unit},
</if>
<if
test=
"hasAcid != null"
>
has_acid = #{hasAcid},
</if>
...
...
ruoyi-ui/src/views/system/yxry/index.vue
View file @
0f43cfb1
...
...
@@ -71,6 +71,16 @@
/>
</el-select>
</el-form-item>
<el-form-item
label=
"是否已管控"
prop=
"isControl"
>
<el-select
v-model=
"queryParams.isControl"
placeholder=
"请选择是否已管控"
clearable
>
<el-option
v-for=
"dict in dict.type.control_status"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"小区/村名称"
prop=
"community"
>
<el-input
v-model=
"queryParams.community"
...
...
@@ -192,6 +202,11 @@
<dict-tag
:options=
"dict.type.isolation_status"
:value=
"scope.row.isolationStatus"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"是否已管控"
align=
"center"
prop=
"isControl"
>
<
template
slot-scope=
"scope"
>
<dict-tag
:options=
"dict.type.control_status"
:value=
"scope.row.isControl"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"小区/村名称"
align=
"center"
prop=
"community"
/>
<el-table-column
label=
"楼号单元号门牌号"
align=
"center"
prop=
"unit"
/>
<el-table-column
label=
"转运状态"
align=
"center"
prop=
"hasAcid"
/>
...
...
@@ -235,10 +250,10 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"日期"
prop=
"sbDate"
>
<el-date-picker
clearable
v-model=
"form.sbDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择日期"
>
v-model=
"form.sbDate"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"请选择日期"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"流调人员"
prop=
"ldry"
>
...
...
@@ -259,7 +274,7 @@
v-for=
"dict in dict.type.residential_area"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -269,7 +284,7 @@
v-for=
"dict in dict.type.street_town"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -279,10 +294,19 @@
v-for=
"dict in dict.type.isolation_status"
:key=
"dict.value"
:label=
"dict.label"
:value=
"dict.value"
:value=
"dict.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"是否已管控"
>
<el-radio-group
v-model=
"form.isControl"
>
<el-radio
v-for=
"dict in dict.type.control_status"
:key=
"dict.value"
:label=
"dict.value"
>
{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"小区/村名称"
prop=
"community"
>
<el-input
v-model=
"form.community"
placeholder=
"请输入小区/村名称"
/>
</el-form-item>
...
...
@@ -300,7 +324,7 @@
<el-radio
v-for=
"dict in dict.type.sys_normal_disable"
:key=
"dict.value"
:label=
"dict.value"
:label=
"dict.value"
>
{{dict.label}}
</el-radio>
</el-radio-group>
</el-form-item>
...
...
@@ -324,7 +348,7 @@ import { listYxry, getYxry, delYxry, addYxry, updateYxry } from "@/api/system/yx
export
default
{
name
:
"Yxry"
,
dicts
:
[
'isolation_status'
,
'street_town'
,
'residential_area'
,
'sys_normal_disable'
],
dicts
:
[
'isolation_status'
,
'street_town'
,
'residential_area'
,
'sys_normal_disable'
,
'control_status'
],
data
()
{
return
{
// 遮罩层
...
...
@@ -357,6 +381,7 @@ export default {
area
:
null
,
street
:
null
,
isolationStatus
:
null
,
isControl
:
null
,
community
:
null
,
unit
:
null
,
hasAcid
:
null
,
...
...
@@ -400,6 +425,7 @@ export default {
area
:
null
,
street
:
null
,
isolationStatus
:
null
,
isControl
:
"0"
,
community
:
null
,
unit
:
null
,
hasAcid
:
null
,
...
...
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