Commit 3cc435c6 authored by 蔡镇泽's avatar 蔡镇泽

待遇申请管理列表

parent f678d460
package com.hungraim.ism.controller; package com.hungraim.ism.controller;
import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ism.pojo.vo.disable.ApplicationManagementListVO; import com.hungraim.ism.pojo.vo.disable.ApplicationManagementVO;
import com.hungraim.ism.service.DisableService; import com.hungraim.ism.service.DisableService;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis;
import com.hungraim.ltc.util.Result; import com.hungraim.ltc.util.Result;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
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;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
...@@ -41,16 +38,9 @@ public class DisableController { ...@@ -41,16 +38,9 @@ public class DisableController {
* @return 待遇申请管理列表 * @return 待遇申请管理列表
*/ */
@RequestMapping("/applicationManagementList") @RequestMapping("/applicationManagementList")
public Result<List<ApplicationManagementListVO>> disableList(String organId, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode, Short treatmentType, Short applyStatus) { public Result<List<ApplicationManagementVO>> disableList(String organId, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode, String treatmentType, String applyStatus) {
IPage<ChDisableApplyHis> iPage = disableService.listDisableInfoByPage(organId, districtProvincial, districtCity, districtArea, realName, certiCode, treatmentType, applyStatus, 1, 10); IPage<ApplicationManagementVO> iPage = disableService.applicationManagementList(organId, districtProvincial, districtCity, districtArea, realName, certiCode, treatmentType, applyStatus, 1, 10);
List<ChDisableApplyHis> records = iPage.getRecords(); return Result.success(iPage.getRecords());
List<ApplicationManagementListVO> vos = new ArrayList<>();
for (ChDisableApplyHis chDisableApplyHis : records) {
ApplicationManagementListVO applicationManagementListVO = new ApplicationManagementListVO();
BeanUtil.copyProperties(chDisableApplyHis, applicationManagementListVO);
vos.add(applicationManagementListVO);
}
return Result.success(vos);
} }
} }
package com.hungraim.ism.dao; package com.hungraim.ism.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ism.pojo.vo.disable.ApplicationManagementInfoVO;
import com.hungraim.ism.pojo.vo.disable.ApplicationManagementVO;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis; import com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
...@@ -13,4 +16,19 @@ import org.springframework.stereotype.Repository; ...@@ -13,4 +16,19 @@ import org.springframework.stereotype.Repository;
@Mapper @Mapper
@Repository @Repository
public interface DisableApplyHisMapper extends BaseMapper<ChDisableApplyHis> { public interface DisableApplyHisMapper extends BaseMapper<ChDisableApplyHis> {
/**
* 查询待遇申请管理列表
*
* @param organId 机构代码
* @param provincial 省
* @param city 市
* @param area 区
* @param name 参保人员姓名
* @param certiCode 参保人身份证号码
* @param treatmentType 待遇类型
* @param applyStatus 审核状态
*/
Page<ApplicationManagementVO> applicationManagementList(Page<ApplicationManagementVO> page, String organId, String provincial, String city, String area, String name, String certiCode, String treatmentType, String applyStatus);
ApplicationManagementInfoVO selectApplicationManagementInfoById(String id);
} }
package com.hungraim.ism.service; package com.hungraim.ism.service;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis; import com.hungraim.ism.pojo.vo.disable.ApplicationManagementVO;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
/** /**
...@@ -25,6 +25,6 @@ public interface DisableService { ...@@ -25,6 +25,6 @@ public interface DisableService {
* @param applyStatus 审核状态 * @param applyStatus 审核状态
* @return list * @return list
*/ */
IPage<ChDisableApplyHis> listDisableInfoByPage(String organId, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode, Short treatmentType, Short applyStatus, int page, int pageSize); IPage<ApplicationManagementVO> applicationManagementList(String organId, String districtProvincial, String districtCity, String districtArea, String realName, String certiCode, String treatmentType, String applyStatus, int page, int pageSize);
} }
package com.hungraim.ism.service.impl; package com.hungraim.ism.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hungraim.ism.dao.DisableApplyHisMapper; import com.hungraim.ism.dao.DisableApplyHisMapper;
import com.hungraim.ltc.pojo.entity.disable.ChDisableApplyHis; import com.hungraim.ism.pojo.vo.disable.ApplicationManagementVO;
import com.hungraim.ism.service.DisableService; import com.hungraim.ism.service.DisableService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -16,21 +14,10 @@ public class DisableServiceImpl implements DisableService { ...@@ -16,21 +14,10 @@ public class DisableServiceImpl implements DisableService {
private DisableApplyHisMapper disableApplyHisMapper; private DisableApplyHisMapper disableApplyHisMapper;
@Override @Override
public IPage<ChDisableApplyHis> listDisableInfoByPage(String organId, String districtProvincial, String districtCity, public Page<ApplicationManagementVO> applicationManagementList(String organId, String districtProvincial, String districtCity,
String districtArea, String realName, String certiCode, Short treatmentType, String districtArea, String realName, String certiCode, String treatmentType,
Short applyStatus, int page, int pageSize) { String applyStatus, int page, int pageSize) {
QueryWrapper<ChDisableApplyHis> wrapper = new QueryWrapper<>(); return disableApplyHisMapper.applicationManagementList(new Page(page, 10), organId, districtProvincial, districtCity, districtArea, realName, certiCode, treatmentType, applyStatus);
ChDisableApplyHis chDisableApplyHis = new ChDisableApplyHis();
chDisableApplyHis.setOrganId(organId);
chDisableApplyHis.setDistrictProvincial(districtProvincial);
chDisableApplyHis.setDistrictCity(districtCity);
chDisableApplyHis.setDistrictArea(districtArea);
chDisableApplyHis.setRealName(realName);
chDisableApplyHis.setCertiCode(certiCode);
chDisableApplyHis.setTreatmentType(treatmentType);
chDisableApplyHis.setApplyStatus(applyStatus);
wrapper.setEntity(chDisableApplyHis);
return disableApplyHisMapper.selectPage(new Page<>(page, pageSize), wrapper);
} }
} }
\ No newline at end of file
...@@ -31,3 +31,4 @@ server: ...@@ -31,3 +31,4 @@ server:
mybatis-plus: mybatis-plus:
configuration: configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: classpath*:mapper/**/*Mapper.xml
package com.hungraim.ism.pojo.vo.disable;
/**
* 待遇申请管理详情VO
*/
public class ApplicationManagementInfoVO {
//所在省市区
//参保人姓名
//参保人身份证号码
//居住地址
//联系人电话
//联系人身份证号码
//申请人电话
//与参保人关系
//病情描述及诊断
//意向服务机构
//提交时间
//审核人
//审核结果
//备注
}
...@@ -3,8 +3,9 @@ package com.hungraim.ism.pojo.vo.disable; ...@@ -3,8 +3,9 @@ package com.hungraim.ism.pojo.vo.disable;
/** /**
* 待遇申请管理列表VO * 待遇申请管理列表VO
*/ */
public class ApplicationManagementListVO { public class ApplicationManagementVO {
//适用机构 //适用机构
private String organName;
//机构代码 //机构代码
private String organId; private String organId;
//所在省市 //所在省市
......
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