Commit d1c8429d authored by “xuhd”'s avatar “xuhd”

问题96、疾病诊断新增维护

parent 284a83e7
package com.hungraim.ltc.pojo.vo;
import com.hungraim.ltc.pojo.entity.disable.ChFndDiseaseType;
import lombok.Data;
import java.util.List;
@Data
public class ChFndDiseaseTypeListVO {
private List<ChFndDiseaseType> chFndDiseaseTypes;
}
package com.hungraim.ltc.governance.controller;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ltc.governance.dao.FndDiseaseTypeMapper;
import com.hungraim.ltc.governance.service.NursingServiceItemsService;
import com.hungraim.ltc.pojo.entity.disable.ChCfgSrvDisableLevel;
import com.hungraim.ltc.pojo.entity.disable.ChFndDiseaseType;
import com.hungraim.ltc.pojo.entity.disable.ChServiceType;
import com.hungraim.ltc.pojo.entity.serviceManage.ChSrvOrganProject;
import com.hungraim.ltc.pojo.vo.ChFndDiseaseTypeListVO;
import com.hungraim.ltc.pojo.vo.disable.ChServiceTypeVo;
import com.hungraim.ltc.pojo.vo.disable.SrvModeVo;
import com.hungraim.ltc.pojo.vo.governance.OrganProjectVO;
......@@ -189,13 +192,14 @@ public class NursingServiceItemsController {
* @param chFndDiseaseTypes 疾病修改的信息
* @return 返回执行结果
*/
@RequestMapping("/saveDisease")
public Result saveDisease(@RequestBody List<ChFndDiseaseType> chFndDiseaseTypes) {
@PostMapping("/saveDisease")
public Result saveDisease( ChFndDiseaseTypeListVO chFndDiseaseTypes) {
log.info("saveDisease");
if (chFndDiseaseTypes == null || chFndDiseaseTypes.size() <= 0) {
log.info(JSONObject.toJSONString(chFndDiseaseTypes.getChFndDiseaseTypes()));
if (chFndDiseaseTypes.getChFndDiseaseTypes() == null || chFndDiseaseTypes.getChFndDiseaseTypes().size() <= 0) {
return Result.failed(ResultCode.REQUEST_PARAM_ERROR);
}
nursingServiceItemsService.saveDisease(chFndDiseaseTypes);
nursingServiceItemsService.saveDisease(chFndDiseaseTypes.getChFndDiseaseTypes());
return Result.success();
}
......
......@@ -138,7 +138,7 @@ public class NursingServiceItemsServiceImpl implements NursingServiceItemsServic
@Override
public List<ChFndDiseaseType> fndAllDisease() {
QueryWrapper<ChFndDiseaseType> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("IS_VALID", "0");
//queryWrapper.eq("IS_VALID", "0");
return fndDiseaseTypeMapper.selectList(queryWrapper);
}
......
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