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
5026ea26
Commit
5026ea26
authored
Apr 12, 2021
by
zhangch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口调试,实体类修改
parent
38c89b47
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
DisableController.java
...n/java/com/hungraim/ism/controller/DisableController.java
+3
-4
ChDisableApply.java
.../com/hungraim/ltc/pojo/entity/disable/ChDisableApply.java
+3
-1
No files found.
apply/apply-service/src/main/java/com/hungraim/ism/controller/DisableController.java
View file @
5026ea26
...
@@ -9,7 +9,6 @@ import com.hungraim.ltc.util.Result;
...
@@ -9,7 +9,6 @@ import com.hungraim.ltc.util.Result;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -137,7 +136,7 @@ public class DisableController {
...
@@ -137,7 +136,7 @@ public class DisableController {
* 新增失能申请
* 新增失能申请
*/
*/
@RequestMapping
(
"/addDisable"
)
@RequestMapping
(
"/addDisable"
)
public
Result
addDisable
(
@RequestBody
ChDisableApply
chDisableApply
)
{
public
Result
addDisable
(
ChDisableApply
chDisableApply
)
{
//字段校验
//字段校验
//所在省市区
//所在省市区
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
()))
{
...
@@ -167,10 +166,10 @@ public class DisableController {
...
@@ -167,10 +166,10 @@ public class DisableController {
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
()))
{
return
Result
.
failed
(
"接受服务地址不能为空!"
);
return
Result
.
failed
(
"接受服务地址不能为空!"
);
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCode
())
||
StringUtils
.
isBlank
(
chDisableApply
.
get
AddressRoadDetail
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAddressNumber
Detail
()))
{
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictProvincial
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCity
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdressDistrictCode
())
||
StringUtils
.
isBlank
(
chDisableApply
.
get
Street
())
||
StringUtils
.
isBlank
(
chDisableApply
.
getAdress
Detail
()))
{
return
Result
.
failed
(
"现住址不能为空!"
);
return
Result
.
failed
(
"现住址不能为空!"
);
}
}
if
(
StringUtils
.
isBlank
(
chDisableApply
.
getDisease
())
)
{
if
(
chDisableApply
.
getDiseTypeF
()
==
null
||
chDisableApply
.
getDiseTypeS
()
==
null
)
{
return
Result
.
failed
(
"诊断疾病不能为空!"
);
return
Result
.
failed
(
"诊断疾病不能为空!"
);
}
}
if
(
chDisableApply
.
getSrvModeId
()
==
null
)
{
if
(
chDisableApply
.
getSrvModeId
()
==
null
)
{
...
...
common/common-core/src/main/java/com/hungraim/ltc/pojo/entity/disable/ChDisableApply.java
View file @
5026ea26
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.pojo.entity.disable;
...
@@ -2,6 +2,7 @@ package com.hungraim.ltc.pojo.entity.disable;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -51,6 +52,7 @@ public class ChDisableApply implements Serializable {
...
@@ -51,6 +52,7 @@ public class ChDisableApply implements Serializable {
/**
/**
* 出生年月
* 出生年月
*/
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
birthday
;
private
Date
birthday
;
/**
/**
...
@@ -249,7 +251,7 @@ public class ChDisableApply implements Serializable {
...
@@ -249,7 +251,7 @@ public class ChDisableApply implements Serializable {
private
Long
webEndEmp
;
private
Long
webEndEmp
;
/**
/**
* 街道
*
现住址
街道
*/
*/
private
String
street
;
private
String
street
;
...
...
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