history项目对照
This commit is contained in:
parent
289187847f
commit
6f0262ad04
@ -21,6 +21,7 @@ public class LisWorkUtils extends LisWorkconfirm{
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 通用调用医院定制接口
|
* 通用调用医院定制接口
|
||||||
|
*
|
||||||
* @param msgid
|
* @param msgid
|
||||||
* @param content
|
* @param content
|
||||||
* @return
|
* @return
|
||||||
@ -34,6 +35,7 @@ public class LisWorkUtils extends LisWorkconfirm{
|
|||||||
dayMessage.setMsg(content);
|
dayMessage.setMsg(content);
|
||||||
return lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.DAYMESSAGE, dayMessage);
|
return lisInterfaceUtil.invokeLisInterface(LisinterfaceNameConstants.DAYMESSAGE, dayMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
public LastLabPatParam getLastLabPatParam(LabPat labPat) {
|
public LastLabPatParam getLastLabPatParam(LabPat labPat) {
|
||||||
LastLabPatParam nullret = new LastLabPatParam();
|
LastLabPatParam nullret = new LastLabPatParam();
|
||||||
Date jyrq = labPat.getJyrq();
|
Date jyrq = labPat.getJyrq();
|
||||||
|
|||||||
@ -62,6 +62,7 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
|||||||
List<LabResultRe> labResultReList = lisWorkPageInfoMapper.getRedo(jyrq, yq, ybh);
|
List<LabResultRe> labResultReList = lisWorkPageInfoMapper.getRedo(jyrq, yq, ybh);
|
||||||
return new Result("0", "获取数据成功!", labResultReList);
|
return new Result("0", "获取数据成功!", labResultReList);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Result swapRedo(LabResultRe labResultRe) {
|
public Result swapRedo(LabResultRe labResultRe) {
|
||||||
@ -90,6 +91,7 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
|||||||
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
|
lisWorkPageInfoMapper.updateLabResultRe(labResultRe);
|
||||||
return new Result("0", "交换数据成功!", labResultRe);
|
return new Result("0", "交换数据成功!", labResultRe);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Result saveRedo(LabResultRe labResultRe) {
|
public Result saveRedo(LabResultRe labResultRe) {
|
||||||
@ -105,18 +107,25 @@ public class LisWorkPageInfoServiceImpl implements LisWorkPageInfoService {
|
|||||||
}
|
}
|
||||||
return new Result("0", "保存成功!", labResultRe);
|
return new Result("0", "保存成功!", labResultRe);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public Result deleteRedo(LabResultRe labResultRe) {
|
public Result deleteRedo(LabResultRe labResultRe) {
|
||||||
lisWorkPageInfoMapper.deleteRedo(labResultRe);
|
lisWorkPageInfoMapper.deleteRedo(labResultRe);
|
||||||
return new Result("0", "成功!");
|
return new Result("0", "成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Result getHistory(Date jyrq, String yq, String ybh) {
|
public Result getHistory(Date jyrq, String yq, String ybh) {
|
||||||
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
||||||
LastLabPatParam lastLabPatParam = lisWorkUtils.getLastLabPatParam(labPat);
|
LastLabPatParam lastLabPatParam = lisWorkUtils.getLastLabPatParam(labPat);
|
||||||
if(lastLabPatParam==null){return new Result("-1","缺少查询条件!");}
|
if (lastLabPatParam == null) {
|
||||||
|
return new Result("-1", "缺少查询条件!");
|
||||||
|
}
|
||||||
Map<String, Object> map = BeanUtil.beanToMap(lastLabPatParam);
|
Map<String, Object> map = BeanUtil.beanToMap(lastLabPatParam);
|
||||||
|
if(map == null || map.size() <= 0){
|
||||||
|
return new Result("-1","查询条件转换错误!");
|
||||||
|
}
|
||||||
Result historyResult = getHistoryResult(jyrq, yq, ybh, map);
|
Result historyResult = getHistoryResult(jyrq, yq, ybh, map);
|
||||||
if ("0".equals(historyResult.getCode())) {
|
if ("0".equals(historyResult.getCode())) {
|
||||||
return new Result("0", "获取成功!", historyResult.getData());
|
return new Result("0", "获取成功!", historyResult.getData());
|
||||||
@ -126,6 +135,7 @@ public Result deleteRedo(LabResultRe labResultRe){
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取收费信息
|
* 获取收费信息
|
||||||
|
*
|
||||||
* @param jyrq
|
* @param jyrq
|
||||||
* @param yq
|
* @param yq
|
||||||
* @param ybh
|
* @param ybh
|
||||||
@ -164,7 +174,9 @@ public Result deleteRedo(LabResultRe labResultRe){
|
|||||||
public Result getOtherinstrDetail(String brdh, String yq, Date jyrq, String ybh) {
|
public Result getOtherinstrDetail(String brdh, String yq, Date jyrq, String ybh) {
|
||||||
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
LabPat labPat = commonUtil.getLabPatOne(jyrq, yq, ybh);
|
||||||
LastLabPatParam lastLabPatParam = lisWorkUtils.getLastLabPatParam(labPat);
|
LastLabPatParam lastLabPatParam = lisWorkUtils.getLastLabPatParam(labPat);
|
||||||
if(lastLabPatParam==null){return new Result("-1","缺少查询条件!");}
|
if (lastLabPatParam == null) {
|
||||||
|
return new Result("-1", "缺少查询条件!");
|
||||||
|
}
|
||||||
Map<String, Object> map = BeanUtil.beanToMap(lastLabPatParam);
|
Map<String, Object> map = BeanUtil.beanToMap(lastLabPatParam);
|
||||||
Result historyResult = getHistoryResult(jyrq, yq, ybh, map);
|
Result historyResult = getHistoryResult(jyrq, yq, ybh, map);
|
||||||
return new Result("0", "获取成功!", historyResult.getData());
|
return new Result("0", "获取成功!", historyResult.getData());
|
||||||
@ -172,6 +184,7 @@ public Result deleteRedo(LabResultRe labResultRe){
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 申请项目明细
|
* 申请项目明细
|
||||||
|
*
|
||||||
* @param yq
|
* @param yq
|
||||||
* @param sqxmdh
|
* @param sqxmdh
|
||||||
* @return
|
* @return
|
||||||
@ -191,12 +204,16 @@ public Result deleteRedo(LabResultRe labResultRe){
|
|||||||
|
|
||||||
public Result getHistoryResult(Date jyrq, String yq, String ybh, Map<String, Object> map) {
|
public Result getHistoryResult(Date jyrq, String yq, String ybh, Map<String, Object> map) {
|
||||||
List<HistoryResult> hisResultList0 = lisWorkPageInfoMapper.getHisResult(map);
|
List<HistoryResult> hisResultList0 = lisWorkPageInfoMapper.getHisResult(map);
|
||||||
if(hisResultList0.isEmpty()){return new Result("-1","无历史数据!");}
|
if (hisResultList0.isEmpty()) {
|
||||||
|
return new Result("-1", "无历史数据!");
|
||||||
|
}
|
||||||
List<HistoryResult> hisResultThisList = hisResultList0.stream().filter(st -> jyrq.equals(st.getJyrq()) && yq.trim().equals(st.getYq().trim()) && ybh.equals(st.getYbh())).collect(Collectors.toList());
|
List<HistoryResult> hisResultThisList = hisResultList0.stream().filter(st -> jyrq.equals(st.getJyrq()) && yq.trim().equals(st.getYq().trim()) && ybh.equals(st.getYbh())).collect(Collectors.toList());
|
||||||
HistoryResultDTO historyResultDTO = new HistoryResultDTO();
|
HistoryResultDTO historyResultDTO = new HistoryResultDTO();
|
||||||
historyResultDTO.setFirst(hisResultThisList);
|
historyResultDTO.setFirst(hisResultThisList);
|
||||||
List<HistoryResult> hisResultList = hisResultList0.stream().filter(st -> !(jyrq.equals(st.getJyrq()) && yq.trim().equals(st.getYq().trim()) && ybh.equals(st.getYbh()))).collect(Collectors.toList());
|
List<HistoryResult> hisResultList = hisResultList0.stream().filter(st -> !(jyrq.equals(st.getJyrq()) && yq.trim().equals(st.getYq().trim()) && ybh.equals(st.getYbh()))).collect(Collectors.toList());
|
||||||
if(hisResultList.isEmpty()){return new Result("-1","无历史数据!",historyResultDTO);}
|
if (hisResultList.isEmpty()) {
|
||||||
|
return new Result("-1", "无历史数据!", historyResultDTO);
|
||||||
|
}
|
||||||
|
|
||||||
// 依据 jyrq,yq,ybh 去重(自定义去重字段)
|
// 依据 jyrq,yq,ybh 去重(自定义去重字段)
|
||||||
List<HistoryResult> distinctList = hisResultList.stream()
|
List<HistoryResult> distinctList = hisResultList.stream()
|
||||||
|
|||||||
@ -162,7 +162,7 @@
|
|||||||
where a.jyrq = b.jyrq and a.yq = b.yq and a.ybh = b.ybh and a.jgbz = '2'
|
where a.jyrq = b.jyrq and a.yq = b.yq and a.ybh = b.ybh and a.jgbz = '2'
|
||||||
and c.yq = b.yq and c.xmdh = b.xmdh and d.yq = a.yq
|
and c.yq = b.yq and c.xmdh = b.xmdh and d.yq = a.yq
|
||||||
<if test="startda != null">and a.jyrq >= #{startda}</if>
|
<if test="startda != null">and a.jyrq >= #{startda}</if>
|
||||||
<if test="endda != null">and #{endda} >= a.jyrq </if>
|
<if test="endda != null"><![CDATA[and a.jyrq <= #{endda}]]> </if>
|
||||||
<if test="yqdl != null and yqdl != ''"> and d.yqdl = #{yqdl}</if>
|
<if test="yqdl != null and yqdl != ''"> and d.yqdl = #{yqdl}</if>
|
||||||
<if test="brdh != null and brdh != ''"> and a.brdh = #{brdh}</if>
|
<if test="brdh != null and brdh != ''"> and a.brdh = #{brdh}</if>
|
||||||
<if test="brxm != null and brxm !=''">and a.brxm = #{brxm}</if>
|
<if test="brxm != null and brxm !=''">and a.brxm = #{brxm}</if>
|
||||||
@ -173,6 +173,7 @@
|
|||||||
<if test="yq != null and yq != ''"> and a.yq = #{yq}</if>
|
<if test="yq != null and yq != ''"> and a.yq = #{yq}</if>
|
||||||
<if test="ybh != null and ybh != ''"> and a.ybh = #{ybh}</if>
|
<if test="ybh != null and ybh != ''"> and a.ybh = #{ybh}</if>
|
||||||
order by c.dyxh asc
|
order by c.dyxh asc
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user