Commit bbd2c759 authored by zhangwanglin's avatar zhangwanglin

服务机构分配服务方式绑定护理机构提供服务方式

parent 78717895
package com.hungraim.ltc.pojo.entity.disable;
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.*;
import com.hungraim.ltc.pojo.entity.PageInfo;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* 护理机构表
......@@ -52,6 +50,8 @@ public class ChSrvOrgan extends PageInfo implements Serializable {
private Integer lcu;
private String checkRemarkLp;
private String srvType;
@TableField(exist = false)
private List<SrvTypeData> srvTypeData;
private String districtProvincial;
private String checkNameLp;
private Integer cardType;
......
package com.hungraim.ltc.pojo.entity.disable;
import lombok.Data;
/**
* @author zwl
* @ClassName SrvTypeData
* @description
* @date 2023/9/13 16:57
**/
@Data
public class SrvTypeData {
private String value;
private String label;
}
......@@ -13,6 +13,7 @@ import com.hungraim.ltc.governance.service.*;
import com.hungraim.ltc.pojo.entity.account.ChPunchDetailsVO;
import com.hungraim.ltc.pojo.entity.disable.ChDisableInfo;
import com.hungraim.ltc.pojo.entity.disable.ChSrvOrgan;
import com.hungraim.ltc.pojo.entity.disable.SrvTypeData;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvProgram;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvSend;
import com.hungraim.ltc.pojo.vo.disable.ChSrvTaskDetailVo;
......@@ -31,10 +32,7 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.text.ParseException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
/**
* @author jiaguokai
......@@ -218,6 +216,29 @@ public class BuildBedController {
// 总记录数
long total = page.getTotal();
List<ChSrvOrgan> records = page.getRecords();
for (ChSrvOrgan record : records) {
List<SrvTypeData> srvTypeDataList = new ArrayList<>();
String srvType = record.getSrvType();
List<String> list = Arrays.asList(srvType.split(","));
for (String value : list) {
SrvTypeData srvTypeData = new SrvTypeData();
String lable = "";
if(value.equals("1")){
lable = "医疗";
}else if(value.equals("2")){
lable = "养老";
}else if(value.equals("3")){
lable = "上门";
}else {
continue;
}
srvTypeData.setLabel(lable);
srvTypeData.setValue(value);
srvTypeDataList.add(srvTypeData);
}
record.setSrvTypeData(srvTypeDataList);
}
Map map = new HashMap<>();
map.put("total", total);
map.put("recors", records);
......
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