修改查询用户集合对外接口改全查

master
zengwh 3 years ago
parent 8eb7431071
commit 78f7853bc6

@ -750,14 +750,14 @@ public class FontController {
*/
@RequestMapping(value = "getMaster")
@ResponseBody
public OffsetLimitPage getMaster(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit, HttpServletRequest request) throws Exception {
public OffsetLimitPage getMaster(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) throws Exception {
//如果前端主管医生字段有选全部选项,则查全部数据
String[] doctorInCharge = archiveMasterVo.getDoctorInCharge().split(",");
int i = doctorInCharge.length;
if (doctorInCharge.length > 1 && StringUtils.isBlank(doctorInCharge[0]) && StringUtils.isNotBlank(doctorInCharge[1])) {
archiveMasterVo.setDoctorInCharge("");
}
return archiveMasterService.selectMasterByColumn(archiveMasterVo, offset, limit, request);
return archiveMasterService.selectByCol(archiveMasterVo, offset, limit);
}
/**

@ -95,13 +95,13 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
//设置查询条件审核角色
//setInfoId(archiveMasterVo);
//设置登录用户
Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
/*Power_User user = (Power_User)request.getSession().getAttribute("CURRENT_USER");
//查该登录工号绑定的科室下面的患者,且只能查在院患者
String requestUrl =POWER_URLHEAD + "/ssoLogin/getUser?userName="+user.getUserName();
JSONObject obj = HttpClientUtils.httpGet(requestUrl);
if(obj!=null) {
archiveMasterVo.setDeptName(obj.getString("deptCode"));
}
}*/
//查询
List<Archive_Master_Vo> list = selectByColumn(offset, limit,archiveMasterVo,request);
return new OffsetLimitPage((Page) list);

@ -167,7 +167,11 @@
and m.LockInfo = #{lockinfo,jdbcType=NVARCHAR}
</if>
<if test="doctorInCharge != null and doctorInCharge != ''">
and m.DOCTOR_IN_CHARGE in (${doctorInCharge})
and m.DOCTOR_IN_CHARGE in (
<foreach collection="doctorInCharge.split(',')" item="item" separator=",">
#{item}
</foreach>
)
</if>
<if test="dischargeDisposition != null">
and m.DISCHARGE_DISPOSITION = #{dischargeDisposition,jdbcType=NVARCHAR}

Loading…
Cancel
Save