Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
long-tern-care-service
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hubin
long-tern-care-service
Commits
5b5d820c
Commit
5b5d820c
authored
Apr 09, 2021
by
蔡镇泽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
失能人员信息列表省市区、机构
parent
389c2cb0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
19 deletions
+15
-19
DisableController.java
...n/java/com/hungraim/ism/controller/DisableController.java
+14
-18
ChDisableApplyMapper.xml
...ervice/src/main/resources/mapper/ChDisableApplyMapper.xml
+1
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ism/controller/DisableController.java
View file @
5b5d820c
...
@@ -109,52 +109,48 @@ public class DisableController {
...
@@ -109,52 +109,48 @@ public class DisableController {
@RequestMapping
(
"/addDisable"
)
@RequestMapping
(
"/addDisable"
)
public
Result
addDisable
(
ChDisableApply
chDisableApply
)
{
public
Result
addDisable
(
ChDisableApply
chDisableApply
)
{
//字段校验
//字段校验
String
msg
=
""
;
//所在省市区
//所在省市区
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictArea
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getDistrictArea
()))
{
msg
=
"所在省市不能为空!"
;
return
Result
.
failed
(
"所在省市不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getRealName
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getRealName
()))
{
msg
=
"申请人姓名不能为空!"
;
return
Result
.
failed
(
"申请人姓名不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getCertiCode
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getCertiCode
()))
{
msg
=
"身份证号码不能为空!"
;
return
Result
.
failed
(
"身份证号码不能为空!"
)
;
}
}
if
(
chDisableApply
.
getBirthday
()
==
null
)
{
if
(
chDisableApply
.
getBirthday
()
==
null
)
{
msg
=
"出生年月日不能为空!"
;
return
Result
.
failed
(
"出生年月日不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getGender
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getGender
()))
{
msg
=
"性别不能为空!"
;
return
Result
.
failed
(
"性别不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getTel
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getTel
()))
{
msg
=
"手机号不能为空!"
;
return
Result
.
failed
(
"手机号不能为空!"
)
;
}
}
if
(
chDisableApply
.
getRegist
()
==
null
)
{
if
(
chDisableApply
.
getRegist
()
==
null
)
{
msg
=
"所在户籍不能为空!"
;
return
Result
.
failed
(
"所在户籍不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAcptProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptArea
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptStreet
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptAddress
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAcptProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptArea
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptStreet
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptAddress
()))
{
msg
=
"接受评定地址不能为空!"
;
return
Result
.
failed
(
"接受评定地址不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvArea
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvStreet
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvAddress
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvArea
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvStreet
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAcptSrvAddress
()))
{
msg
=
"接受服务地址不能为空!"
;
return
Result
.
failed
(
"接受服务地址不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCode
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAddressRoadDetail
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAddressNumberDetail
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCode
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAddressRoadDetail
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAddressNumberDetail
()))
{
msg
=
"现住址不能为空!"
;
return
Result
.
failed
(
"现住址不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDisease
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDisease
()))
{
msg
=
"诊断疾病不能为空!"
;
return
Result
.
failed
(
"诊断疾病不能为空!"
)
;
}
}
if
(
chDisableApply
.
getSrvModeId
()
==
null
)
{
if
(
chDisableApply
.
getSrvModeId
()
==
null
)
{
msg
=
"申请服务方式不能为空!"
;
return
Result
.
failed
(
"申请服务方式不能为空!"
)
;
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDiseaseDesc
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDiseaseDesc
()))
{
msg
=
"疾病描述及诊断不能为空!"
;
return
Result
.
failed
(
"疾病描述及诊断不能为空!"
)
;
}
}
if
(
chDisableApply
.
getMedicalType
()
==
null
)
{
if
(
chDisableApply
.
getMedicalType
()
==
null
)
{
msg
=
"医保类型不能为空!"
;
return
Result
.
failed
(
"医保类型不能为空!"
);
}
if
(!
""
.
equals
(
msg
))
{
return
Result
.
failed
(
msg
);
}
}
disableService
.
addDisable
(
chDisableApply
);
disableService
.
addDisable
(
chDisableApply
);
return
Result
.
success
();
return
Result
.
success
();
...
...
apply/apply-service/src/main/resources/mapper/ChDisableApplyMapper.xml
View file @
5b5d820c
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
and a.DISTRICT_AREA = #{area}
and a.DISTRICT_AREA = #{area}
</if>
</if>
<if
test=
"name != null and name != ''"
>
<if
test=
"name != null and name != ''"
>
and a.REAL_NAME like
'%'#{name}'%'
and a.REAL_NAME like
CONCAT('%',#{name},'%')
</if>
</if>
<if
test=
"certiCode != null and certiCode != ''"
>
<if
test=
"certiCode != null and certiCode != ''"
>
and h.CERTI_CODE = #{certiCode}
and h.CERTI_CODE = #{certiCode}
...
...
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