Commit 8d18a253 authored by zhangch's avatar zhangch

建床新增修改接口联调

parent 8bc4db9a
...@@ -390,6 +390,7 @@ public class DisableController { ...@@ -390,6 +390,7 @@ public class DisableController {
return Result.success(searchDisableSimpleVoIPage); return Result.success(searchDisableSimpleVoIPage);
} }
/** /**
* 失能人员信息详情(失能人员信息修改申请详情页面-新增) * 失能人员信息详情(失能人员信息修改申请详情页面-新增)
* *
......
package com.hungraim.ltc.pojo.entity.governance; package com.hungraim.ltc.pojo.entity.governance;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
...@@ -12,10 +11,12 @@ import java.util.Date; ...@@ -12,10 +11,12 @@ import java.util.Date;
*/ */
@Data @Data
@TableName("CH_SRV_BUILD_BED") @TableName("CH_SRV_BUILD_BED")
@KeySequence(value = "SEQ_CH_SRV_BUILD_BED")
public class ChSrvBuildBed implements Serializable { public class ChSrvBuildBed implements Serializable {
/** /**
* 建床ID * 建床ID
*/ */
@TableId(value = "BUILD_BED_ID", type = IdType.INPUT)
private Integer buildBedId; private Integer buildBedId;
/** /**
......
package com.hungraim.ltc.pojo.entity.governance; package com.hungraim.ltc.pojo.entity.governance;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
...@@ -10,10 +13,12 @@ import java.util.Date; ...@@ -10,10 +13,12 @@ import java.util.Date;
*/ */
@Data @Data
@TableName("CH_SRV_REMOVE_BED") @TableName("CH_SRV_REMOVE_BED")
@KeySequence(value = "SEQ_CH_SRV_REMOVE_BED")
public class ChSrvRemoveBed { public class ChSrvRemoveBed {
/** /**
* 撤床ID * 撤床ID
*/ */
@TableId(value = "REMOVE_BED_ID", type = IdType.INPUT)
private Integer removeBedId; private Integer removeBedId;
/** /**
* 护理机构ID * 护理机构ID
......
package com.hungraim.ltc.pojo.vo.governance;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import java.util.List;
@Data
public class BuildBedDetailVo {
/**
* 建床ID
*/
private Integer buildBedId;
/**
* 护理机构ID
*/
private Integer srvOrganId;
/**
* 失能人员id
*/
private Integer disabInfoId;
/**
* 长护号
*/
private String changhuNo;
/**
* 专区
*/
private String specialZone;
/**
* 床号
*/
private String bedNumber;
/**
* 是否合并甲类(0:是,1:否)
*/
private Integer mergeOrNot;
/**
* 婚姻状况(0未婚、 1已婚、 2离婚、 3丧偶)
*/
private Integer maritalStatus;
/**
* 职业
*/
private String occupation;
/**
* 籍贯
*/
private String nativePlace;
/**
* 姓名
*/
private String realName;
/**
* 性别(男:M;女:F;不确定 N)
*/
private String gender;
/**
* 民族
*/
private String nation;
/**
* 身份证号码
*/
private String certiCode;
/**
* 家庭住址
*/
private String adressDetail;
/**
* 联系人
*/
private String tel;
/**
* 联系电话
*/
private String contactTel;
/**
* 建床时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date buildBedTime;
/**
* 病史陈述者
*/
private String narrator;
/**
* 记录时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date recordTime;
/**
* 护理需求等级(1:1级,2:2级,3:3级,4:4级,5:5级)
*/
private Integer nursingDemandLevel;
/**
* 保障方式(1:院护,2:专护,3:巡护)
*/
private Integer guaranteeMode;
/**
* 基本情况评估——诊断
*/
private String diagnosis;
/**
* 基本情况评估——既往史(1有,0无)
*/
private Integer pastHistory;
/**
* 基本情况评估——既往史(高血压(1有,0无))
*/
private Integer pastHypertension;
/**
* 基本情况评估——既往史(冠心病(1有,0无))
*/
private Integer pastCoronaryHeartDisease;
/**
* 基本情况评估——既往史(糖尿病(1有,0无))
*/
private Integer pastDiabetes;
/**
* 基本情况评估——既往史(脑卒中(1有,0无))
*/
private Integer pastCerebralApoplexy;
/**
* 基本情况评估——既往史(肺结核(1有,0无))
*/
private Integer pastPulmonaryTuberculosis;
/**
* 基本情况评估——既往史(肿瘤(1有,0无))
*/
private Integer pastTumour;
/**
* 基本情况评估——既往史(其它(1有,0无))
*/
private Integer pastOther;
/**
* 基本情况评估——既往史(其它-备注)
*/
private String pastOtherRemarks;
/**
* 基本情况评估——过敏史(1有,0无)
*/
private Integer allergicHistory;
/**
* 基本情况评估——过敏史(有(药物-备注))
*/
private String allergicMedicineRemarks;
/**
* 基本情况评估——过敏史(有(食物-备注))
*/
private String allergicFoodRemarks;
/**
* 基本情况评估——过敏史(有(其它-备注))
*/
private String allergicOtherRemarks;
/**
* 基本情况评估——家族史(1有,0无)
*/
private Integer familyHistory;
/**
* 基本情况评估——家族史(高血压(1有,0无))
*/
private Integer familyHypertension;
/**
* 基本情况评估——家族史(冠心病(0有,1无))
*/
private Integer familyCoronaryHeartDisease;
/**
* 基本情况评估——家族史(糖尿病(0有,1无))
*/
private Integer familyIabetes;
/**
* 基本情况评估——家族史(肿瘤(0有,1无))
*/
private Integer familyTumour;
/**
* 基本情况评估——家族史(癫痫(0有,1无))
*/
private Integer familyEpilepsy;
/**
* 基本情况评估——家族史(遗传病(0有,1无))
*/
private Integer familyHereditaryDiseases;
/**
* 基本情况评估——家族史(其它(0有,1无))
*/
private Integer familyOther;
/**
* 基本情况评估——家族史(其它-备注)
*/
private String familyOtherRemarks;
/**
* 基本情况评估——有无残疾(无残疾(0有,1无))
*/
private Integer disability;
/**
* 基本情况评估——有无残疾(听力残疾(0有,1无))
*/
private Integer disabilityHearing;
/**
* 基本情况评估——有无残疾(言语残(0有,1无))
*/
private Integer disabilitySpeech;
/**
* 基本情况评估——有无残疾(肢体残(0有,1无))
*/
private Integer disabilityLimbs;
/**
* 基本情况评估——有无残疾(智力残(0有,1无))
*/
private Integer disabilityIntelligence;
/**
* 基本情况评估——有无残疾(眼残(0有,1无))
*/
private Integer disabilityEye;
/**
* 基本情况评估——有无残疾(其它(0有,1无))
*/
private Integer disabilityOther;
/**
* 基本情况评估——有无残疾(其它-备注)
*/
private String disabilityOtherRemarks;
/**
* 基本情况评估——有无残疾(精神残(0有,1无))
*/
private Integer disabilityMentalDisability;
/**
* 生活状况评估——饮食(1:普食,2:软食,3:半流质,4:流质,5:禁食,6:管祠,7:其它)
*/
private Integer diet;
/**
* 生活状况评估——饮食(其它-备注)
*/
private String dietOtherRemarks;
/**
* 生活状况评估——睡眠(1:正常,2:异常)
*/
private Integer sleep;
/**
* 生活状况评估——睡眠(异常(入睡困难(0有,1无)))
*/
private Integer sleepDifficulty;
/**
* 生活状况评估——睡眠(异常(多梦(0有,1无)))
*/
private Integer sleepDreams;
/**
* 生活状况评估——睡眠(异常(早醒(0有,1无)))
*/
private Integer sleepWakeUpEarly;
/**
* 生活状况评估——睡眠(异常(失眠(0有,1无)))
*/
private Integer sleepInsomnia;
/**
* 生活状况评估——睡眠(异常(药物辅助(0有,1无)))
*/
private Integer sleepDrugAssisted;
/**
* 生活状况评估——睡眠(异常(其它(0有,1无)))
*/
private Integer sleepOther;
/**
* 生活状况评估——睡眠(异常-其它备注))
*/
private String sleepOtherRemarks;
/**
* 生活状况评估——排便(1:正常,2:便秘,3:腹泻,4:失禁,5:造瘘,6:其它)
*/
private Integer defecation;
/**
* 生活状况评估——排便(造瘘(自理:0:能,1:不能))
*/
private Integer defecationColostomy;
/**
* 生活状况评估——排便(其它(0有,1无)))
*/
private Integer defecationOther;
/**
* 生活状况评估——排便(其它-备注)
*/
private String defecationOtherRemarks;
/**
* 生活状况评估——排尿(1:正常,2:尿失禁,3:尿潴留,4:排尿困难,5:留置尿管,6:其它)
*/
private Integer micturition;
/**
* 生活状况评估——排尿(其它(0有,1无)))
*/
private Integer micturitionOther;
/**
* 生活状况评估——排尿(其它-备注)
*/
private String micturitionOtherRemarks;
/**
* 生活状况评估——体位(1:主体位,2:被动体位,3:被迫体位)
*/
private Integer position;
/**
* 生活状况评估——体位(被迫体位(半坐卧位(0有,1无)))
*/
private Integer positionFowlerPosition;
/**
* 生活状况评估——体位(被迫体位(端坐位(0有,1无)))
*/
private Integer positionEndSeat;
/**
* 生活状况评估——体位(被迫体位(俯卧位(0有,1无)))
*/
private Integer positionPronePosition;
/**
* 生活状况评估——体位(被迫体位(其它(0有,1无)))
*/
private Integer positionOther;
/**
* 生活状况评估——体位(被迫体位(其它-备注))
*/
private String positionOtherRemarks;
/**
* 生活状况评估——嗜好(抽烟(0有,1无))
*/
private Boolean hobbySmoking;
/**
* 生活状况评估——嗜好(饮酒(0有,1无))
*/
private Boolean hobbyDrinkWine;
/**
* 生活状况评估——嗜好(喜咸(0有,1无))
*/
private Boolean hobbyLikeSalty;
/**
* 生活状况评估——嗜好(喜甜(0有,1无))
*/
private Boolean hobbyLikeSweet;
/**
* 生活状况评估——嗜好(喜辛辣(0有,1无))
*/
private Boolean hobbyLikeSpicyFood;
/**
* 生活状况评估——嗜好(喜油腻(0有,1无))
*/
private Boolean hobbyLikeGreasy;
/**
* 生活状况评估——嗜好(其它(0有,1无))
*/
private Boolean hobbyOther;
/**
* 生活状况评估——嗜好(其它-备注)
*/
private String hobbyOtherRemarks;
/**
* 生活状况评估——吸烟(1:无,2:偶尔,3:经常,4:其它)
*/
private Integer smoke;
/**
* 生活状况评估——吸烟(经常(_年))
*/
private String smokeYear;
/**
* 生活状况评估——吸烟(经常(_支/日))
*/
private String smokeUnitDay;
/**
* 生活状况评估——吸烟(经常(已戒烟_年))
*/
private String smokeQuitSmoking;
/**
* 生活状况评估——吸烟(其它(0有,1无))
*/
private Boolean smokeOther;
/**
* 生活状况评估——吸烟(其它-备注)
*/
private String smokeOtherRemarks;
/**
* 生活状况评估——饮酒(1:无,2:偶尔,3:经常,4:其它)
*/
private String drinkWine;
/**
* 生活状况评估——饮酒(经常(_年))
*/
@TableField("DRINK_WINE__YEAR")
private String drinkWineYear;
/**
* 生活状况评估——饮酒(经常(_两/日))
*/
private String drinkWineUnitDay;
/**
* 生活状况评估——饮酒(其它(0有,1无))
*/
private Boolean drinkWineOther;
/**
* 生活状况评估——饮酒(其它-备注)
*/
private String drinkWineOtherRemarks;
/**
* 其它
*/
private String other;
/**
* 生命体征评估——体温(°C)
*/
private String temperature;
/**
* 生命体征评估——体温测量方式(1:口温,2:腋温,3:直肠温度,4:其它)
*/
private Integer temperatureMode;
/**
* 生命体征评估——体温测量方式(其它-备注)
*/
private String temperatureOtherRemarks;
/**
* 生命体征评估——脉搏(心率)__次/分
*/
private String pulseTimesBranch;
/**
* 生命体征评估——脉搏(心率)(1律齐,2早搏,3绌脉,4其它)
*/
private Integer pulseHeartRate;
/**
* 生命体征评估——脉搏(心率)(其它-备注)
*/
private String pulseOtherRemarks;
/**
* 生命体征评估——呼吸(规则(0有,1无))
*/
private Boolean breathingRule;
/**
* 生命体征评估——呼吸(规则__次/分)
*/
private String breathingTimesBranch;
/**
* 生命体征评估——呼吸(不规则(0有,1无))
*/
private Boolean breathingIrregular;
/**
* 生命体征评估——呼吸(不规则(1:咽息样,2:抽泣样,3:叹息样,4:其它))
*/
private Integer breathingIrregularType;
/**
* 生命体征评估——呼吸(不规则(其它-备注))
*/
private String breathingOtherRemarks;
/**
* 生命体征评估——血压_/
*/
private String bloodPressure;
/**
* 生命体征评估——血压_mmllg
*/
private String bloodPressureMmllg;
/**
* 心里社会评估——情绪(镇静(0有,1无))
*/
private Boolean emotionCalm;
/**
* 心里社会评估——情绪(焦虑(0有,1无))
*/
private Boolean emotionAnxious;
/**
* 心里社会评估——情绪(恐惧(0有,1无))
*/
private Boolean emotionFear;
/**
* 心里社会评估——情绪(悲哀(0有,1无))
*/
private Boolean emotionGrief;
/**
* 心里社会评估——情绪(无反应((0有,1无)))
*/
private Boolean emotionNoResponse;
/**
* 心里社会评估——情绪(其它(0有,1无))
*/
private Boolean emotionOther;
/**
* 心里社会评估——情绪(其它-备注)
*/
private String emotionOtherRemarks;
/**
* 心里社会评估——情绪(易激动(0有,1无))
*/
private Boolean emotionHotbed;
/**
* 心里社会评估——思维过程(正常(0有,1无))
*/
private Boolean thinkingProcessNormal;
/**
* 心里社会评估——思维过程(注意力分散(0有,1无))
*/
private Boolean thinkingProcessDistraction;
/**
* 心里社会评估——思维过程(远期记忆力下降(0有,1无))
*/
private Boolean thinkingProcessFar;
/**
* 心里社会评估——思维过程(近期记忆力下降(0有,1无))
*/
private Boolean thinkingProcessNear;
/**
* 心里社会评估——思维过程(思维混乱(0有,1无))
*/
private Boolean thinkingProcessConfusion;
/**
* 心里社会评估——思维过程(其它(0有,1无))
*/
private Boolean thinkingOther;
/**
* 心里社会评估——思维过程(其它——备注)
*/
private String thinkingOtherRemarks;
/**
* 心里社会评估——与亲友关系(1:和睦,2:冷淡,3:紧张,4:其它)
*/
private Integer relation;
/**
* 心里社会评估——与亲友关系(其它-备注)
*/
private String relationOtherRemarks;
/**
* 心里社会评估——就业状态(1:固定职业,2:丧失劳动能力,3:事业,4:待业,5:退休,6:其它)
*/
private Integer employmentStatus;
/**
* 心里社会评估——就业状态(其它-备注)
*/
private String employmentOtherRemarks;
/**
* 心里社会评估——居住(1:独居,2:与配偶同住,3:与子女同住,4:与亲戚同住,5:其它)
*/
private Integer live;
/**
* 心里社会评估——居住(其它-备注)
*/
private String liveOtherRemarks;
/**
* 心里社会评估——医疗费来源(1:医保,2:自费,3:其它)
*/
private Integer medicalExpenses;
/**
* 心里社会评估——医疗费来源(其它-备注)
*/
private String medicalOtherRemarks;
/**
* 跌倒风险评估——肢体活动(1:正常,2:活动障碍)
*/
private Integer physicalActivity;
/**
* 跌倒风险评估——肢体活动(活动障碍(左偏瘫(0有,1无)))
*/
private Integer physicalLeftHemiplegia;
/**
* 跌倒风险评估——肢体活动(活动障碍(右偏瘫(0有,1无)))
*/
private Integer physicalRightHemiplegia;
/**
* 跌倒风险评估——肢体活动(活动障碍(截肢(0有,1无)))
*/
private Integer physicalAmputation;
/**
* 跌倒风险评估——肢体活动(活动障碍(全瘫(0有,1无)))
*/
private Integer physicalTotalParalysis;
/**
* 跌倒风险评估——肢体活动(活动障碍(其它(0有,1无)))
*/
private Integer physicalOther;
/**
* 跌倒风险评估——肢体活动(活动障碍(其它-备注 ))
*/
private String physicalOtherRemarks;
/**
* 跌倒风险评估——肢体活动——活动障碍(1:左偏瘫,2:右偏瘫,3:截瘫,4:全瘫,5:其它)
*/
private Integer physicalActivityType;
/**
* 跌倒风险评估——使用辅助用具(1:无,2:拐杖,3:轮椅,4:助行器,5:义肢,6:其它)
*/
private Integer auxiliaryTools;
/**
* 跌倒风险评估——使用辅助工具(其它-备注)
*/
private String auxiliaryOtherRemarks;
/**
* 跌倒风险评估——疼痛(0有,1无)
*/
private Integer pain;
/**
* 跌倒风险评估——疼痛(有(部位_)
*/
private String painPosition;
/**
* 跌倒风险评估——疼痛(有(程度(1:轻微痛,2:较痛,3:剧痛))
*/
private Integer painDegree;
/**
* 跌倒风险评估——视力(正常(0有,1无))
*/
private Boolean visionNormal;
/**
* 跌倒风险评估——视力(戴眼镜(0有,1无))
*/
private Boolean visionGlasses;
/**
* 跌倒风险评估——视力(视力模糊(0有,1无))
*/
private Boolean visionVague;
/**
* 跌倒风险评估——视力(青光眼(0有,1无))
*/
private Boolean visionGlaucoma;
/**
* 跌倒风险评估——视力(视觉障碍(0有,1无))
*/
private Boolean visionObstacle;
/**
* 跌倒风险评估——视力(失明(0有,1无))
*/
private Boolean visionGoBlind;
/**
* 跌倒风险评估——视力(其它(0有,1无))
*/
private Boolean visionOther;
/**
* 跌倒风险评估——视力(其它-备注)
*/
private String visionOtherRemarks;
/**
* 跌倒风险评估——听力(正常(0有,1无))
*/
private Boolean hearingNormal;
/**
* 跌倒风险评估——听力(耳鸣(0有,1无))
*/
private Boolean hearingTinnitus;
/**
* 跌倒风险评估——听力(听力下降左(0有,1无))
*/
private Boolean hearingLeftDecline;
/**
* 跌倒风险评估——听力(听力下降右(0有,1无))
*/
private Boolean hearingRightDecline;
/**
* 跌倒风险评估——听力(耳聋左(0有,1无))
*/
private Boolean hearingLeftDeaf;
/**
* 跌倒风险评估——听力(耳聋右(0有,1无))
*/
private Boolean hearingRightDeaf;
/**
* 跌倒风险评估——听力(助听器(0有,1无))
*/
private Boolean hearingDeafAid;
/**
* 跌倒风险评估——听力(其它(0有,1无))
*/
private Boolean hearingOther;
/**
* 跌倒风险评估——听力(其它-备注)
*/
private String hearingOtherRemarks;
/**
* 跌倒风险评估——跌倒史(0有,1无)
*/
private Integer fall;
/**
* 跌倒风险评估——跌倒史(有(1:偶尔,2:经常))
*/
private Integer fallType;
/**
* 跌倒风险评估——其它(药物(0有,1无))
*/
private Boolean otherMedicine;
/**
* 跌倒风险评估——其它(乙醇阶段(0有,1无))
*/
private Boolean otherEthanolPhase;
/**
* 跌倒风险评估——其它(骨折史(0有,1无))
*/
private Boolean otherFracture;
/**
* 跌倒风险评估——其它(严重骨质疏松(0有,1无))
*/
private Boolean otherSevereOsteoporosis;
/**
* 跌倒风险评估——其它(缺氧症(0有,1无))
*/
private Boolean otherAnoxia;
/**
* 跌倒风险评估——其它(其它(0有,1无))
*/
private Boolean otherOther;
/**
* 跌倒风险评估——其它(其它-备注)
*/
private String otherOtherRemarks;
/**
* 体格检查——皮肤黏膜——皮肤颜色(1:正常,2:潮红,3:苍白,4:绀,5:黄染,6:其它)
*/
private Integer skinColor;
/**
* 体格检查——皮肤黏膜——皮肤颜色(其它-备注)
*/
private String skinColorOtherRemarks;
/**
* 体格检查——皮肤黏膜——皮肤温度(1:正常,2:干燥,3:潮湿,4:多汗,5:其它)
*/
private Integer skinTemperature;
/**
* 体格检查——皮肤黏膜——皮肤温度(其它-备注)
*/
private String skinTemperatureOtherRemarks;
/**
* 体格检查——皮肤黏膜——皮肤完整性(完整(0有,1无))
*/
private Boolean skinComplete;
/**
* 体格检查——皮肤黏膜——皮肤完整性(皮疹(0有,1无))
*/
private Boolean skinRash;
/**
* 体格检查——皮肤黏膜——皮肤完整性(出血点(0有,1无))
*/
private Boolean skinBleedingPoint;
/**
* 体格检查——皮肤黏膜——皮肤完整性(压疮(1:Ⅰ°,2:Ⅱ°,3:Ⅲ°))
*/
private Boolean skinPressureSores;
/**
* 体格检查——皮肤黏膜——皮肤完整性(部位_)
*/
private String skinPosition;
/**
* 体格检查——皮肤黏膜——皮肤完整性(大小_cm)
*/
private String skinSize;
/**
* 体格检查——皮肤黏膜——皮肤完整性(其它(0有,1无))
*/
private Boolean skinOther;
/**
* 体格检查——皮肤黏膜——皮肤完整性(其它-备注)
*/
@TableField("SKIN_OTHER_SMOKING")
private String skinOtherRemarks;
/**
* 体格检查——皮肤黏膜——皮肤完整性(压疮(1:Ⅰ°,2:Ⅱ°,3:Ⅲ°))
*/
private Integer skinPressureSoresType;
/**
* 体格检查——皮肤黏膜——皮肤完整性(大小_cm)
*/
private String skinSizeLength;
/**
* 体格检查——皮肤黏膜——口腔黏膜(正常(0有,1无))
*/
private Boolean mucosaOralNormal;
/**
* 体格检查——皮肤黏膜——口腔黏膜(充血(0有,1无))
*/
private Boolean mucosaOralCongestion;
/**
* 体格检查——皮肤黏膜——口腔黏膜(白斑(0有,1无))
*/
private Boolean mucosaOralLeukoplakia;
/**
* 体格检查——皮肤黏膜——口腔黏膜(溃疡(0有,1无))
*/
private Boolean mucosaOralUlcer;
/**
* 体格检查——皮肤黏膜——口腔黏膜(糜烂(0有,1无))
*/
private Boolean mucosaOralErosion;
/**
* 体格检查——皮肤黏膜——口腔黏膜(其它(0有,1无))
*/
private Boolean mucosaOralOther;
/**
* 体格检查——皮肤黏膜——口腔黏膜(其它-备注)
*/
private String mucosaOralOtherRemarks;
/**
* 体格检查——腹部检查(平软(0有,1无))
*/
private Boolean abdominalSoft;
/**
* 体格检查——腹部检查(肌紧张(0有,1无))
*/
private Boolean abdominalMuscularTension;
/**
* 体格检查——腹部检查(压痛(0有,1无))
*/
private Boolean abdominalTenderness;
/**
* 体格检查——腹部检查(反跳痛(0有,1无))
*/
private Boolean abdominalReboundPain;
/**
* 体格检查——腹部检查(可触及包块(0有,1无))
*/
private Boolean abdominalPalpableParcel;
/**
* 体格检查——腹部检查(可触及包块(部位及性质_))
*/
private String abdominalPalpablePosition;
/**
* 体格检查——腹部检查(腹胀(0有,1无))
*/
private Boolean abdominalAbdominalDistention;
/**
* 体格检查——腹部检查(腹水(0有,1无))
*/
private Boolean abdominalAscites;
/**
* 体格检查——腹部检查(腹围_cm)
*/
private Integer abdominalCircumference;
/**
* 体格检查——神经系统——意识(清楚(0有,1无))
*/
private Boolean nervousSystemClear;
/**
* 体格检查——神经系统——意识(嗜睡(0有,1无))
*/
private Boolean nervousSystemDrowsiness;
/**
* 体格检查——神经系统——意识(模糊(0有,1无))
*/
private Boolean nervousSystemVague;
/**
* 体格检查——神经系统——意识(昏睡(0有,1无))
*/
private Boolean nervousSystemLethargy;
/**
* 体格检查——神经系统——意识(谵妄(0有,1无))
*/
private Boolean nervousSystemDelirium;
/**
* 体格检查——神经系统——意识(昏迷(0有,1无))
*/
private Boolean nervousSystemComa;
/**
* 体格检查——神经系统——意识(昏迷(1:轻度昏迷,2:中度昏迷,3:重度昏迷))
*/
private Integer nervousSystemComaType;
/**
* 体格检查——神经系统——沟通(1:正常,2:表达困难,3:语言障碍,4:失语,5:其它)
*/
private Integer nervousSystemCommunicate;
/**
* 体格检查——神经系统——沟通(其它-备注)
*/
private String communicateOtherRemarks;
/**
* 体格检查——神经系统——定向力(1:准确,2:障碍)
*/
private Integer directionalForce;
/**
* 体格检查——神经系统——定向力(障碍(自我(0有,1无)))
*/
private Integer obstacleSelf;
/**
* 体格检查——神经系统——定向力(障碍(时间(0有,1无)))
*/
private Integer obstacleTime;
/**
* 体格检查——神经系统——定向力(障碍(地点(0有,1无)))
*/
@TableField("DOBSTACLE_PLACE")
private Integer obstaclePlace;
/**
* 体格检查——神经系统——定向力(障碍(人物(0有,1无)))
*/
private Integer obstaclePersonage;
/**
* 体格检查——呼吸系统——呼吸方式(1:自主呼吸,2:辅助呼吸,3:机械通气)
*/
private Integer breathingPattern;
/**
* 体格检查——呼吸系统——症状(咳嗽(0有,1无))
*/
private Boolean respiratorySymptomCough;
/**
* 体格检查——呼吸系统——症状(咳痰(0有,1无))
*/
private Boolean expectoration;
/**
* 体格检查——呼吸系统——症状(咳痰(粘痰(0有,1无)))
*/
private Boolean stickyPhlegm;
/**
* 体格检查——呼吸系统——症状(咳痰(黄痰(0有,1无)))
*/
private Boolean yellowPhlegm;
/**
* 体格检查——呼吸系统——症状(咳痰(浓痰(0有,1无)))
*/
private Boolean phlegm;
/**
* 体格检查——呼吸系统——症状(咳痰(铁锈色痰(0有,1无)))
*/
private Boolean rustySputum;
/**
* 体格检查——呼吸系统——症状(咳痰(红色痰(0有,1无)))
*/
private Boolean redSputum;
/**
* 体格检查——呼吸系统——症状(其它(0有,1无))
*/
private Boolean respiratoryOther;
/**
* 体格检查——呼吸系统——症状(其它-备注)
*/
@TableField("RESPIRATORY_OTHER_SMOKING")
private String respiratoryOtherRemarks;
/**
* 体格检查——循环系统(心悸(0有,1无))
*/
private Boolean circulatoryPalpitation;
/**
* 体格检查——循环系统(胸闷(0有,1无))
*/
private Boolean circulatoryChestTightness;
/**
* 体格检查——循环系统(胸痛(0有,1无))
*/
private Boolean circulatoryChestPain;
/**
* 体格检查——循环系统(胸痛(针刺样(0有,1无)))
*/
private Boolean circulatoryAcupuncture;
/**
* 体格检查——循环系统(胸痛(压榨样(0有,1无)))
*/
private Boolean circulatoryPress;
/**
* 体格检查——循环系统(胸痛(烧灼样(0有,1无)))
*/
private Boolean circulatoryBurning;
/**
* 体格检查——循环系统(胸痛(其它(0有,1无)))
*/
private Boolean chestPainOther;
/**
* 体格检查——循环系统(胸痛(其它-备注))
*/
private String chestPainOtherRemarks;
/**
* 体格检查——循环系统(水肿(0有,1无))
*/
private Boolean circulatoryEdema;
/**
* 体格检查——循环系统(水肿(1:凹陷性,2:非凹陷性))
*/
private Integer circulatoryEdemaType;
/**
* 体格检查——循环系统(晕厥(0有,1无))
*/
private Boolean circulatorySyncope;
/**
* 体格检查——循环系统(晕厥(1:偶尔,2:经常))
*/
private Boolean circulatorySyncopeType;
/**
* 体格检查——循环系统(紫绀(0有,1无))
*/
private Boolean circulatoryCyanosis;
/**
* 体格检查——循环系统(紫绀(部位_))
*/
private Integer circulatoryCyanosisPosition;
/**
* 体格检查——循环系统(其它(0有,1无))
*/
private Boolean circulatoryOther;
/**
* 体格检查——循环系统(其它-备注)
*/
private String circulatoryOtherRemarks;
/**
* 体格检查——消化系统(恶心(0有,1无))
*/
private Boolean digestionNausea;
/**
* 体格检查——消化系统(呕吐(0有,1无))
*/
private Boolean digestionVomit;
/**
* 体格检查——消化系统(呕吐_次/天)
*/
private Integer vomitTimesDay;
/**
* 体格检查——消化系统(呕吐_总量)
*/
private Integer vomitTotal;
/**
* 体格检查——消化系统(呕吐_ml)
*/
private Integer vomitMl;
/**
* 体格检查——消化系统(暖气(0有,1无))
*/
private Boolean digestionHeating;
/**
* 体格检查——消化系统(反酸(0有,1无))
*/
private Boolean digestionAcidRegurgitation;
/**
* 体格检查——消化系统(灼烧感(0有,1无))
*/
private Boolean digestionBurningSensation;
/**
* 体格检查——消化系统(其它(0有,1无))
*/
private Boolean digestionOther;
/**
* 体格检查——消化系统(其它-备注)
*/
private String digestionOtherRemarks;
/**
* 体格检查——外阴、生殖系统——女性——外阴(正常(0有,1无))
*/
private Boolean fVulvaNormal;
/**
* 体格检查——外阴、生殖系统——女性——外阴(瘙痒(0有,1无))
*/
private Boolean fVulvaItch;
/**
* 体格检查——外阴、生殖系统——女性——外阴(白斑(0有,1无))
*/
private Boolean fVulvaLeukoplakia;
/**
* 体格检查——外阴、生殖系统——女性——外阴(其它(0有,1无))
*/
private Boolean fVulvaOther;
/**
* 体格检查——外阴、生殖系统——女性——外阴(其它-备注))
*/
private String fVulvaOtherRemarks;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(月经紊乱(0有,1无))
*/
private Boolean fMenstrualDisorder;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(痛经(0有,1无))
*/
private Boolean fDysmenorrhea;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(月经量过多(0有,1无)))
*/
private Boolean fMenorrhagia;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(月经量过少(0有,1无))
*/
private Boolean fHypomenorrhea;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(白带异常(0有,1无))
*/
private Boolean fAbnormalLeucorrhea;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(已绝经(0有,1无))
*/
private Boolean fMenopause;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(其它(0有,1无))
*/
private Boolean fReproductionOther;
/**
* 体格检查——外阴、生殖系统——女性——生殖系统(其它-备注)
*/
private String fReproductionOtherRemarks;
/**
* 体格检查——外阴、生殖系统——男性——外阴(正常(0有,1无))
*/
private Boolean mVulvaNormal;
/**
* 体格检查——外阴、生殖系统——男性——外阴(瘙痒(0有,1无))
*/
private Boolean mVulvaItch;
/**
* 体格检查——外阴、生殖系统——男性——外阴(白斑(0有,1无))
*/
private Boolean mVulvaLeukoplakia;
/**
* 体格检查——外阴、生殖系统——男性——外阴(其它(0有,1无))
*/
private Boolean mVulvaOther;
/**
* 体格检查——外阴、生殖系统——男性——外阴(其它-备注))
*/
private String mVulvaOtherRemarks;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(前列腺增生(0有,1无))
*/
private Boolean mProstaticHyperplasia;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(前列腺炎(0有,1无))
*/
private Boolean mProstatitis;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(前列腺钙化(0有,1无))
*/
private Boolean mCalcificationOfProstate;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(前列腺囊肿(0有,1无))
*/
private Boolean mProstaticCyst;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(其它(0有,1无))
*/
private Boolean mReproductionOther;
/**
* 体格检查——外阴、生殖系统——男性——生殖系统(其它-备注)
*/
private String mReproductionOtherRemarks;
/**
* 置管与治疗——鼻胃管(0有,1无)
*/
private Boolean nasogastricTube;
/**
* 置管与治疗——留置尿管(0有,1无)
*/
private Boolean indwellingCatheter;
/**
* 置管与治疗——气管插管(0有,1无)
*/
private Boolean endotrachealIntubation;
/**
* 置管与治疗——造瘘管(0有,1无)
*/
private Boolean fistulae;
/**
* 置管与治疗——膀胱冲洗(0有,1无)
*/
private Boolean bladderIrrigation;
/**
* 置管与治疗——膀胱滴药(0有,1无)
*/
private Boolean bladderDrops;
/**
* 置管与治疗——肛管排气(0有,1无)
*/
private Boolean analExhaust;
/**
* 置管与治疗——其它(0有,1无)
*/
private Boolean catheterizationOther;
/**
* 置管与治疗——其它-备注(0有,1无)
*/
private String catheterizationOtherRemarks;
/**
* 补充说明
*/
private String supplementaryNotes;
/**
* 评估时间
*/
private Date evaluationTime;
/**
* 状态(0已建床,1已撤床)
*/
private Integer status;
/**
* 创建人
*/
private Integer defineEmg;
/**
* 创建时间
*/
private Date effTime;
/**
* 终止人
*/
private Integer endEmg;
/**
* 终止时间
*/
private Date endTime;
/**
* 首次操作时间
*/
private Date fcd;
/**
* 首次操作人
*/
private Integer fcu;
/**
* 末次操作时间
*/
private Date lcd;
/**
* 末次操作人
*/
private Integer lcu;
/**
* 床位费
*/
private Integer bedFee;
/**
* 伙食费
*/
private Integer boardExpenses;
/**
* 护理方式ID
*/
private Integer srvModeId;
/**
* 护理方式
*/
private String srvMode;
/**
* 结算状态(0,未结算;1,结算中;2,已结算)
*/
private Integer accountStatus;
/**
* 处理意见
*/
private String processingOpinion;
/**
* 辅助检查(可粘贴)
*/
private String auxiliaryExamination;
/**
* 体格检查
*/
private String physicalCheck;
/**
* 主诉
*/
private String relate;
/**
* 现病史
*/
private String historyPresentIllness;
/**
* 甲类慢性病名称
*/
private String mergeName;
/**
* 建床附件
*/
private List<ChFndAttach> fileDataList;
}
...@@ -60,14 +60,14 @@ public enum AttachType { ...@@ -60,14 +60,14 @@ public enum AttachType {
SRV_ORGAN_EMP((short) 15), SRV_ORGAN_EMP((short) 15),
/** /**
* 16:服务计划制定附件; * 16:护理人员服务项目结束附件;
*/ */
SRV_TASK((short) 16), SRV_TASK((short) 16),
/** /**
* 17:鉴定机构人员附件; * 17:建床;
*/ */
APR_EMP((short) 17); BUILD_BED((short) 17);
private Short uploadType; private Short uploadType;
......
...@@ -9,15 +9,14 @@ import com.hungraim.ltc.governance.service.IBuildBedService; ...@@ -9,15 +9,14 @@ import com.hungraim.ltc.governance.service.IBuildBedService;
import com.hungraim.ltc.governance.service.SrvSendService; import com.hungraim.ltc.governance.service.SrvSendService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan; import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.disable.ChrSrvVo; import com.hungraim.ltc.pojo.vo.disable.ChrSrvVo;
import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq; import com.hungraim.ltc.pojo.vo.disable.SearchDisableSimpleVo;
import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO; import com.hungraim.ltc.pojo.vo.governance.*;
import com.hungraim.ltc.pojo.vo.governance.DisableInfoVo;
import com.hungraim.ltc.pojo.vo.governance.SrvSendVO;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import com.hungraim.ltc.util.ResultCode;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
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.*; import org.springframework.web.bind.annotation.*;
...@@ -56,38 +55,37 @@ public class BuildBedController { ...@@ -56,38 +55,37 @@ public class BuildBedController {
* 建床管理新增 * 建床管理新增
*/ */
@PostMapping("/addBuild") @PostMapping("/addBuild")
public Result<Boolean> buildBed(ChSrvBuildBed buildBed) { public Result<Boolean> buildBed(BuildBedDetailVo buildBedDetailVo) {
/*if (StringUtils.isBlank(buildBed.getRealName())) { if (StringUtils.isBlank(buildBedDetailVo.getRealName())) {
//姓名 //姓名
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(buildBed.getGender())) { if (StringUtils.isBlank(buildBedDetailVo.getGender())) {
//性别 //性别
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(buildBed.getCertiCode())) { if (StringUtils.isBlank(buildBedDetailVo.getCertiCode())) {
//身份证号 //身份证号
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(buildBed.getAdressDetail())) { if (StringUtils.isBlank(buildBedDetailVo.getAdressDetail())) {
//家庭住址 //家庭住址
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (buildBed.getNursingDemandLevel() != null && buildBed.getNursingDemandLevel() >= 1 && buildBed.getNursingDemandLevel() <= 5) { if (buildBedDetailVo.getNursingDemandLevel() != null && buildBedDetailVo.getNursingDemandLevel() >= 1 && buildBedDetailVo.getNursingDemandLevel() <= 5) {
//护理需求等级 //护理需求等级
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (StringUtils.isBlank(buildBed.getChanghuNo())) { if (StringUtils.isBlank(buildBedDetailVo.getChanghuNo())) {
//长护号 //长护号
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
} }
if (buildBed.getGuaranteeMode() != null && buildBed.getGuaranteeMode() >= 1 && buildBed.getGuaranteeMode() <= 3) { if (buildBedDetailVo.getGuaranteeMode() != null && buildBedDetailVo.getGuaranteeMode() >= 1 && buildBedDetailVo.getGuaranteeMode() <= 3) {
//保障方式 //保障方式
return Result.failed(ResultCode.REQUEST_PARAM_ERROR); return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}*/ }
buildBed.setRecordTime(new Date());//建床时间 buildBedService.saveOrUpdateBuildBed(buildBedDetailVo);
boolean b = buildBedService.save(buildBed); return Result.success();
return Result.success(b);
} }
/** /**
...@@ -190,5 +188,22 @@ public class BuildBedController { ...@@ -190,5 +188,22 @@ public class BuildBedController {
return Result.success(); return Result.success();
} }
/**
* 失能人员信息修改申请详情页搜索失能人员接口
*
* @param pageNum 翻页参数
* @param pageSize 翻页参数
* @param realName 失能人员姓名
* @return 返回一组人员信息
*/
@GetMapping("/buildBedSearchByRealName")
public Result<IPage<SearchDisableSimpleVo>> buildBedSearchByRealName(@RequestParam(defaultValue = "1") Integer pageNum, @RequestParam(defaultValue = "10") Integer pageSize, Integer srvOrganId, String realName) {
if (StringUtils.isBlank(realName) || null == srvOrganId) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
IPage<SearchDisableSimpleVo> searchDisableSimpleVoIPage = sendService.buildBedSearchByRealName(pageNum, pageSize,srvOrganId, realName);
return Result.success(searchDisableSimpleVoIPage);
}
} }
...@@ -7,6 +7,7 @@ import com.hungraim.ltc.pojo.entity.assessment.ChAprTask; ...@@ -7,6 +7,7 @@ import com.hungraim.ltc.pojo.entity.assessment.ChAprTask;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan; import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.disable.SearchDisableSimpleVo;
import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq; import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq;
import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchRsp; import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchRsp;
import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO; import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO;
...@@ -65,6 +66,23 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> { ...@@ -65,6 +66,23 @@ public interface SrvSendMapper extends BaseMapper<ChSrvSend> {
" on s.disab_info_id = i.disable_info_id" + " on s.disab_info_id = i.disable_info_id" +
" where i.disable_info_id=#{disableInfoId}") " where i.disable_info_id=#{disableInfoId}")
List<DisableInfoTaskVO> selectTaskByDisableInfoId(Integer disableInfoId); List<DisableInfoTaskVO> selectTaskByDisableInfoId(Integer disableInfoId);
@Select("SELECT max(srv_send_id) id from CH_SRV_SEND") @Select("SELECT max(srv_send_id) id from CH_SRV_SEND")
Long selectMaxId(); Long selectMaxId();
@Select("SELECT " +
"t2.DISAB_INFO_ID," +
"t2.REAL_NAME," +
"t2.CERTI_CODE certifNum," +
"t2.BIRTHDAY," +
"t2.GENDER," +
"t2.TEL," +
"t2.DISE_TYPE_S " +
" FROM " +
"CH_SRV_SEND t1" +
" LEFT JOIN CH_DISABLE_INFO t2 ON t1.DISAB_INFO_ID = t2.DISAB_INFO_ID " +
" WHERE " +
"t1.SRV_ORGAN_ID = #{srvOrganId} " +
" AND t2.REAL_NAME LIKE CONCAT( '%', CONCAT( #{realName}, '%' ) )")
IPage<SearchDisableSimpleVo> buildBedSearchByRealName(Page<SearchDisableSimpleVo> page, Integer srvOrganId, String realName);
} }
...@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.service; ...@@ -2,6 +2,7 @@ package com.hungraim.ltc.governance.service;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed; import com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed;
import com.hungraim.ltc.pojo.vo.governance.BuildBedDetailVo;
import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq; import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
...@@ -12,8 +13,5 @@ public interface IBuildBedService extends IService<ChSrvBuildBed> { ...@@ -12,8 +13,5 @@ public interface IBuildBedService extends IService<ChSrvBuildBed> {
Result searchOrgBed(BuildBedSearchReq req); Result searchOrgBed(BuildBedSearchReq req);
void saveOrUpdateBuildBed(BuildBedDetailVo buildBedDetailVo);
} }
...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan; import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.disable.SearchDisableSimpleVo;
import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO; import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO;
import com.hungraim.ltc.pojo.vo.governance.SrvSendVO; import com.hungraim.ltc.pojo.vo.governance.SrvSendVO;
...@@ -22,4 +23,5 @@ public interface SrvSendService extends IService<ChSrvSend> { ...@@ -22,4 +23,5 @@ public interface SrvSendService extends IService<ChSrvSend> {
Long selectMaxId(); Long selectMaxId();
IPage<SearchDisableSimpleVo> buildBedSearchByRealName(Integer pageNum, Integer pageSize, Integer srvOrganId, String realName);
} }
...@@ -167,7 +167,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan> ...@@ -167,7 +167,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
aprEmpMapper.updateById(chAprEmp); aprEmpMapper.updateById(chAprEmp);
chAprEmp.setEmpId(chAprEmp.getEmpId()); chAprEmp.setEmpId(chAprEmp.getEmpId());
} }
updateAttachs(chAprEmp.getFileDataList(), chAprEmp.getEmpId().longValue(), AttachType.APR_EMP.getUploadType()); updateAttachs(chAprEmp.getFileDataList(), chAprEmp.getEmpId().longValue(), AttachType.APR_ORGAN_EMP.getUploadType());
} }
@Override @Override
...@@ -208,7 +208,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan> ...@@ -208,7 +208,7 @@ public class AprOrganServiceImpl extends ServiceImpl<AprOrganMapper, ChAprOrgan>
//查询附件列表 //查询附件列表
try { try {
// 返回对应的附件列表 调用文件服务获取对应文件,出错或未获取到就只是相当于没有设置对应的数据,减少系统之间的耦合性 // 返回对应的附件列表 调用文件服务获取对应文件,出错或未获取到就只是相当于没有设置对应的数据,减少系统之间的耦合性
Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(aprEmpId, AttachType.APR_EMP.getUploadType()); Result<List<ChFndAttach>> listResult = attachFeignService.selectAttachs(aprEmpId, AttachType.APR_ORGAN_EMP.getUploadType());
if (!listResult.getCode().equals(ResultCode.SUCCESS.getCode())) { if (!listResult.getCode().equals(ResultCode.SUCCESS.getCode())) {
log.info("请求获取附件列表错误:错误码{},错误信息:{}", listResult.getCode(), listResult.getMsg()); log.info("请求获取附件列表错误:错误码{},错误信息:{}", listResult.getCode(), listResult.getMsg());
} }
......
...@@ -2,40 +2,36 @@ package com.hungraim.ltc.governance.service.impl; ...@@ -2,40 +2,36 @@ package com.hungraim.ltc.governance.service.impl;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hungraim.ltc.api.AttachFeignService;
import com.hungraim.ltc.governance.dao.BuildBedMapper; import com.hungraim.ltc.governance.dao.BuildBedMapper;
import com.hungraim.ltc.governance.service.IBuildBedService; import com.hungraim.ltc.governance.service.IBuildBedService;
import com.hungraim.ltc.pojo.entity.SysConfig.ChFndAttach;
import com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed; import com.hungraim.ltc.pojo.entity.governance.ChSrvBuildBed;
import com.hungraim.ltc.pojo.vo.governance.BuildBedDetailVo;
import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq; import com.hungraim.ltc.pojo.vo.governance.BuildBedSearchReq;
import com.hungraim.ltc.pojo.vo.system.AttachUpdateVo;
import com.hungraim.ltc.util.AttachType;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource; import java.util.List;
/** /**
* @author jiaguokai * @author jiaguokai
*/ */
@Slf4j @Slf4j
@Service @Service
@AllArgsConstructor
public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildBed> implements IBuildBedService { public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildBed> implements IBuildBedService {
@Resource private final BuildBedMapper buildBedMapper;
private BuildBedMapper buildBedMapper; private final AttachFeignService attachFeignService;
@Override @Override
public Result searchOrgBed(BuildBedSearchReq req) { public Result searchOrgBed(BuildBedSearchReq req) {
// QueryWrapper<ChSrvBuildBed> queryWrapper = new QueryWrapper<>();
// queryWrapper.eq("SRV_ORGAN_ID", req.getSrvOrganId());
// if (StrUtil.isNotBlank(req.getRealName())) {
// queryWrapper.like("REAL_NAME", req.getRealName());
// }
// if (StrUtil.isNotBlank(req.getCertiCode())) {
// queryWrapper.eq("CERTI_CODE", req.getCertiCode());
// }
// if (req.getStatus() != null && req.getStatus() != 2) {
// queryWrapper.eq("STATUS", req.getStatus());
// }
// Page<ChSrvBuildBed> page = buildBedMapper.selectPage(new Page<>(req.getPageNum(), req.getPageSize()), queryWrapper);
if (2 == req.getStatus()) { if (2 == req.getStatus()) {
req.setStatus(null); req.setStatus(null);
} }
...@@ -43,5 +39,32 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB ...@@ -43,5 +39,32 @@ public class BuildBedServiceImpl extends ServiceImpl<BuildBedMapper, ChSrvBuildB
return Result.success(page); return Result.success(page);
} }
@Transactional(rollbackFor = Exception.class)
@Override
public void saveOrUpdateBuildBed(BuildBedDetailVo buildBedDetailVo) {
ChSrvBuildBed chSrvBuildBed = new ChSrvBuildBed();
BeanUtils.copyProperties(buildBedDetailVo, chSrvBuildBed);
List<ChFndAttach> fileDataList = buildBedDetailVo.getFileDataList();
chSrvBuildBed.setStatus(0); // 状态(0已建床,1已撤床)
chSrvBuildBed.setAccountStatus(0); // 结算状态(0,未结算;1,结算中;2,已结算)
this.updateAttachs(buildBedDetailVo);
}
/**
* 调用feign api来修改附件数据
*
* @param buildBedDetailVo
*/
private void updateAttachs(BuildBedDetailVo buildBedDetailVo) {
// zhangch 20210525 新增附件修改逻辑
List<ChFndAttach> fileDataList = buildBedDetailVo.getFileDataList();
AttachUpdateVo attachUpdateVo = new AttachUpdateVo();
attachUpdateVo.setCtrlId(buildBedDetailVo.getBuildBedId().longValue());
attachUpdateVo.setAttachType(AttachType.BUILD_BED.getUploadType());
attachUpdateVo.setChFndAttachs(fileDataList);
attachFeignService.updateAttachs(attachUpdateVo);
}
} }
...@@ -8,6 +8,7 @@ import com.hungraim.ltc.governance.service.SrvSendService; ...@@ -8,6 +8,7 @@ import com.hungraim.ltc.governance.service.SrvSendService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo; import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan; import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend; import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.disable.SearchDisableSimpleVo;
import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO; import com.hungraim.ltc.pojo.vo.governance.DisableInfoTaskVO;
import com.hungraim.ltc.pojo.vo.governance.SrvSendVO; import com.hungraim.ltc.pojo.vo.governance.SrvSendVO;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -58,5 +59,10 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im ...@@ -58,5 +59,10 @@ public class SrvSendServiceImpl extends ServiceImpl<SrvSendMapper, ChSrvSend> im
return this.baseMapper.selectMaxId(); return this.baseMapper.selectMaxId();
} }
@Override
public IPage<SearchDisableSimpleVo> buildBedSearchByRealName(Integer pageNum, Integer pageSize, Integer srvOrganId, String realName) {
return sendMapper.buildBedSearchByRealName(new Page<SearchDisableSimpleVo>(pageNum, pageSize), srvOrganId, realName);
}
} }
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