Commit 5b82c8d8 authored by 董天德's avatar 董天德

Merge remote-tracking branch 'origin/uat_20230303_失能评定排序_mq' into dev_ch_master

parents d7551ddc dc18762d
...@@ -782,7 +782,7 @@ public class TaskServiceImpl implements TaskService { ...@@ -782,7 +782,7 @@ public class TaskServiceImpl implements TaskService {
@Override @Override
public Map taskReportFractionDtlQueryList() { public Map taskReportFractionDtlQueryList() {
LambdaQueryWrapper<ChTaskReportFractionDtl> lwq = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ChTaskReportFractionDtl> lwq = new LambdaQueryWrapper<>();
lwq.orderBy(true,true,ChTaskReportFractionDtl::getTaskReportNum); lwq.orderBy(true,true,ChTaskReportFractionDtl::getTaskReportFractionId);
List<ChTaskReportFractionDtl> chTaskReportFractionDtls = chTaskReportFractionDtlMapper.selectList(lwq); List<ChTaskReportFractionDtl> chTaskReportFractionDtls = chTaskReportFractionDtlMapper.selectList(lwq);
Map<String, Object> typeHashMap = new LinkedHashMap<>(); Map<String, Object> typeHashMap = new LinkedHashMap<>();
......
...@@ -50,8 +50,9 @@ public class NursingServiceItemsController { ...@@ -50,8 +50,9 @@ public class NursingServiceItemsController {
@RequestParam(defaultValue = "10") Integer pageSize, @RequestParam(defaultValue = "10") Integer pageSize,
String organIds, String name, String status) { String organIds, String name, String status) {
long organId = TokenParsingUtil.TokenParsing(token, "organId"); long organId = TokenParsingUtil.TokenParsing(token, "organId");
long srvOrganId = TokenParsingUtil.TokenParsing(token, "srvOrganId");
Page<OrganProjectVO> page = new Page<>(pageNum, pageSize); Page<OrganProjectVO> page = new Page<>(pageNum, pageSize);
page = nursingServiceItemsService.organProjectList(page, organIds, name, status); page = nursingServiceItemsService.organProjectList(page, String.valueOf(srvOrganId),String.valueOf(organId), name, status);
return Result.success(page); return Result.success(page);
} }
......
...@@ -23,5 +23,5 @@ public interface ChSrvOrganProjectMapper extends BaseMapper<ChSrvOrganProject> { ...@@ -23,5 +23,5 @@ public interface ChSrvOrganProjectMapper extends BaseMapper<ChSrvOrganProject> {
*/ */
List<ProgramSetAndProjectVo> selectOrganProjectsBySrvOrganId(@Param("srvOrganId") Long srvOrganId); List<ProgramSetAndProjectVo> selectOrganProjectsBySrvOrganId(@Param("srvOrganId") Long srvOrganId);
Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, List<String> organIds, String name, String status); Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, String srvOrganId,String organId, String name, String status);
} }
\ No newline at end of file
...@@ -15,7 +15,7 @@ import java.util.List; ...@@ -15,7 +15,7 @@ import java.util.List;
@Service @Service
public interface NursingServiceItemsService { public interface NursingServiceItemsService {
Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, String organIds, String name, String status); Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, String organIds,String organId, String name, String status);
void organProjectConfig(ChSrvOrganProject project); void organProjectConfig(ChSrvOrganProject project);
......
...@@ -40,12 +40,14 @@ public class NursingServiceItemsServiceImpl implements NursingServiceItemsServic ...@@ -40,12 +40,14 @@ public class NursingServiceItemsServiceImpl implements NursingServiceItemsServic
private final FndDiseaseTypeMapper fndDiseaseTypeMapper; private final FndDiseaseTypeMapper fndDiseaseTypeMapper;
@Override @Override
public Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, String organIds, String name, String status) { public Page<OrganProjectVO> organProjectList(Page<OrganProjectVO> page, String srvOrganId,String organId, String name, String status) {
List<String> organIdList = null; Page<OrganProjectVO> organProjectVOPage;
if (StrUtil.isNotBlank(organIds)) { if(organId.equals("0") || organId==null){
organIdList = Arrays.asList(organIds.split(",")); organProjectVOPage = chSrvOrganProjectMapper.organProjectList(page, null, null, name, status);
}else{
organProjectVOPage= chSrvOrganProjectMapper.organProjectList(page, srvOrganId, organId, name, status);
} }
return chSrvOrganProjectMapper.organProjectList(page, organIdList, name, status); return organProjectVOPage;
} }
@Override @Override
......
...@@ -97,11 +97,8 @@ ...@@ -97,11 +97,8 @@
left join CH_FND_ORGAN org on organ.ORGAN_ID = org.ORGAN_ID left join CH_FND_ORGAN org on organ.ORGAN_ID = org.ORGAN_ID
left join CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = project.item_name left join CH_SERVICE_TYPE_detailed d on d.service_type_detailed_id = project.item_name
<where> <where>
<if test="organIds != null"> <if test="srvOrganId != null and srvOrganId != '' ">
and project.srv_organ_id in and project.srv_organ_id = #{srvOrganId}
<foreach collection="organIds" item="organId" open="(" close=")" separator=",">
#{organId}
</foreach>
</if> </if>
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and project.item_name like CONCAT(CONCAT('%',#{name}) ,'%') and project.item_name like CONCAT(CONCAT('%',#{name}) ,'%')
...@@ -109,6 +106,9 @@ ...@@ -109,6 +106,9 @@
<if test="status != null and status != ''"> <if test="status != null and status != ''">
and project.status = #{status} and project.status = #{status}
</if> </if>
<if test="organId != null and organId != ''">
and org.ORGAN_ID = #{organId}
</if>
</where> </where>
order by project.project_id desc order by project.project_id desc
</select> </select>
......
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