Commit 5026ea26 authored by zhangch's avatar zhangch

接口调试,实体类修改

parent 38c89b47
...@@ -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.getAddressRoadDetail()) || StringUtils.isBlank(chDisableApply.getAddressNumberDetail())) { if (StringUtils.isBlank(chDisableApply.getAdressDistrictProvincial()) || StringUtils.isBlank(chDisableApply.getAdressDistrictCity()) || StringUtils.isBlank(chDisableApply.getAdressDistrictCode()) || StringUtils.isBlank(chDisableApply.getStreet()) || StringUtils.isBlank(chDisableApply.getAdressDetail())) {
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) {
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment