|
|
|
@ -63,7 +63,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
public OffsetLimitPage selectByCol(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
List<Archive_Master> list= archiveMasterMapper.selectByCol(archiveMasterVo);
|
|
|
|
|
|
|
|
|
|
JSONArray powerUsers = powerUserService.getPowerUserList("1");
|
|
|
|
|
List<JSONObject> powerUserList = JSONArray.parseArray(powerUsers.toJSONString(), JSONObject.class);
|
|
|
|
|
if (powerUserList != null){
|
|
|
|
@ -72,24 +71,21 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
public String apply(JSONObject temp) {
|
|
|
|
|
return temp.getString("userName");
|
|
|
|
|
}});
|
|
|
|
|
|
|
|
|
|
for (Archive_Master archive_master : list) {
|
|
|
|
|
|
|
|
|
|
JSONObject userInfo = mappedMovies.get(archive_master.getDoctorName());
|
|
|
|
|
for (Archive_Master archiveMaster : list) {
|
|
|
|
|
JSONObject userInfo = mappedMovies.get(archiveMaster.getDoctorName());
|
|
|
|
|
if (userInfo==null){
|
|
|
|
|
archive_master.setDoctorName(archive_master.getDoctorName());
|
|
|
|
|
archiveMaster.setDoctorName(archiveMaster.getDoctorName());
|
|
|
|
|
}else {
|
|
|
|
|
archive_master.setDoctorName(userInfo.getString("name"));
|
|
|
|
|
archiveMaster.setDoctorName(userInfo.getString("name"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
userInfo = mappedMovies.get(archive_master.getNurseName());
|
|
|
|
|
userInfo = mappedMovies.get(archiveMaster.getNurseName());
|
|
|
|
|
if (userInfo==null){
|
|
|
|
|
archive_master.setNurseName(archive_master.getNurseName());
|
|
|
|
|
archiveMaster.setNurseName(archiveMaster.getNurseName());
|
|
|
|
|
}else {
|
|
|
|
|
archive_master.setNurseName(userInfo.getString("name"));
|
|
|
|
|
archiveMaster.setNurseName(userInfo.getString("name"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return new OffsetLimitPage((Page) list);
|
|
|
|
|
}
|
|
|
|
@ -104,11 +100,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
return archiveMasterMapper.selectByColumn(archiveMasterVo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectByUnfile(Archive_Master_Vo archiveMasterVo) {
|
|
|
|
|
return archiveMasterMapper.selectByUnfile(archiveMasterVo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* @Override
|
|
|
|
|
public List<Archive_Master> selectByUnfile2(Archive_Master_Vo archiveMasterVo) {
|
|
|
|
|
return archiveMasterMapper.selectByUnfile2(archiveMasterVo);
|
|
|
|
@ -120,13 +111,17 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectByCmtCol(Archive_Master_Vo archiveMasterVo) {
|
|
|
|
|
return archiveMasterMapper.selectByCmtCol(archiveMasterVo);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectByLast(Archive_Master_Vo archiveMasterVo) {
|
|
|
|
|
return archiveMasterMapper.selectByLast(archiveMasterVo);
|
|
|
|
|
public List<Archive_Master_Vo> selectByLastByColumn(Archive_Master_Vo archiveMasterVo,Integer offset, Integer limit) {
|
|
|
|
|
//判断并设置查询是否打印权限
|
|
|
|
|
setIdByPrintNum(archiveMasterVo);
|
|
|
|
|
//根据条件查询记录
|
|
|
|
|
if(null != offset && null != limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
}
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByLast(archiveMasterVo);
|
|
|
|
|
//设置医生、护士名称和打印标识
|
|
|
|
|
setNameAndPrintFlag(archiveMasterVo, list);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -136,7 +131,7 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据是否打印设置id
|
|
|
|
|
* 判断并设置查询是否打印权限
|
|
|
|
|
* @param archiveMasterVo
|
|
|
|
|
*/
|
|
|
|
|
private void setIdByPrintNum(Archive_Master_Vo archiveMasterVo){
|
|
|
|
@ -161,12 +156,24 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectBeHospitalByColumn(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
//判断并设置查询是否打印权限
|
|
|
|
|
setIdByPrintNum(archiveMasterVo);
|
|
|
|
|
//根据条件查询记录
|
|
|
|
|
if(null != offset && null != limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
}
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByColumn(archiveMasterVo);
|
|
|
|
|
//设置医生、护士名称和打印标识
|
|
|
|
|
setNameAndPrintFlag(archiveMasterVo, list);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设置医生、护士名称和打印标识
|
|
|
|
|
* @param archiveMasterVo
|
|
|
|
|
* @param list
|
|
|
|
|
*/
|
|
|
|
|
private void setNameAndPrintFlag(Archive_Master_Vo archiveMasterVo, List<Archive_Master_Vo> list) {
|
|
|
|
|
if(!CollectionUtils.isEmpty(list)) {
|
|
|
|
|
//查询用户集合
|
|
|
|
|
JSONArray powerUsers = powerUserService.getPowerUserList("1");
|
|
|
|
@ -227,7 +234,6 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -267,28 +273,33 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public OffsetLimitPage selectByUnfile(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByUnfileNew(archiveMasterVo);
|
|
|
|
|
//设置医生和护士姓名
|
|
|
|
|
setDoctorAndNurseName(list);
|
|
|
|
|
List<Archive_Master_Vo> list = selectByUnfileAndColumn(archiveMasterVo,offset,limit);
|
|
|
|
|
return new OffsetLimitPage((Page) list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectByUnfileAndColumn(Archive_Master_Vo archiveMasterVo,Integer offset, Integer limit) {
|
|
|
|
|
//判断并设置查询是否打印权限
|
|
|
|
|
setIdByPrintNum(archiveMasterVo);
|
|
|
|
|
//根据条件查询记录
|
|
|
|
|
if(null != offset && null != limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
}
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByUnfileNew(archiveMasterVo);
|
|
|
|
|
//设置医生、护士名称和打印标识
|
|
|
|
|
setNameAndPrintFlag(archiveMasterVo, list);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public OffsetLimitPage selectByLast(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByLast(archiveMasterVo);
|
|
|
|
|
//设置医生和护士姓名
|
|
|
|
|
setDoctorAndNurseName(list);
|
|
|
|
|
List<Archive_Master_Vo> list = selectByLastByColumn(archiveMasterVo, offset, limit);
|
|
|
|
|
return new OffsetLimitPage((Page) list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public OffsetLimitPage selectByCmtCol(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByCmtCol(archiveMasterVo);
|
|
|
|
|
//设置医生和护士姓名
|
|
|
|
|
setDoctorAndNurseName(list);
|
|
|
|
|
List<Archive_Master_Vo> list = selectByCmtByColumn(archiveMasterVo, offset, limit);
|
|
|
|
|
return new OffsetLimitPage((Page) list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -430,6 +441,20 @@ public class Archive_MasterServiceImpl implements Archive_MasterService {
|
|
|
|
|
log.error(errorStr);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<Archive_Master_Vo> selectByCmtByColumn(Archive_Master_Vo archiveMasterVo, Integer offset, Integer limit) {
|
|
|
|
|
//判断并设置查询是否打印权限
|
|
|
|
|
setIdByPrintNum(archiveMasterVo);
|
|
|
|
|
//根据条件查询记录
|
|
|
|
|
if(null != offset && null != limit) {
|
|
|
|
|
PageHelper.offsetPage(offset, limit);
|
|
|
|
|
}
|
|
|
|
|
List<Archive_Master_Vo> list = archiveMasterMapper.selectByCmtCol(archiveMasterVo);
|
|
|
|
|
//设置医生、护士名称和打印标识
|
|
|
|
|
setNameAndPrintFlag(archiveMasterVo, list);
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|