BUG修改
This commit is contained in:
parent
471caca247
commit
ebd2d54367
@ -8,7 +8,7 @@ import java.util.List;
|
||||
|
||||
public interface LabResultMapper {
|
||||
List<LabResult> getLabResultList(@Param("jyrq") Date jyrq, @Param("yq") String yq, @Param("ybh") String ybh);
|
||||
List<LabResult> getLabResult(@Param("jyrq") Date jyrq, @Param("yq") String yq,@Param("ybh") String ybh,@Param("xmdh") String xmdh);
|
||||
LabResult getLabResult(@Param("jyrq") Date jyrq, @Param("yq") String yq,@Param("ybh") String ybh,@Param("xmdh") String xmdh);
|
||||
int insertLabResult(LabResult labResult);
|
||||
int delLabResult(LabResult labResult);
|
||||
int updateLabResult(LabResult labResult);
|
||||
|
||||
@ -52,10 +52,10 @@ public class CommonUtil {
|
||||
//申请单明细表集合
|
||||
|
||||
//====检验结果表操作方法集合===
|
||||
public List<LabResult> getLabResult(Date jyrq, String yq, String ybh, String xmdh) {return labResultMapper.getLabResult(jyrq, yq, ybh,xmdh);}
|
||||
public LabResult getLabResult(Date jyrq, String yq, String ybh, String xmdh) {return labResultMapper.getLabResult(jyrq, yq, ybh,xmdh);}
|
||||
public List<LabResult> getLabResultList(Date jyrq, String yq, String ybh) {return labResultMapper.getLabResultList(jyrq, yq, ybh);}
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int insertLabResult(LabResult labResult) {return labResultMapper.updateLabResult(labResult);}
|
||||
public int insertLabResult(LabResult labResult) {return labResultMapper.insertLabResult(labResult);}
|
||||
public List<LabResult> getresultinfo(Date jyrq, String yq, String ybh) {return labResultMapper.getLabResultList(jyrq, yq, ybh);}
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public int delLabResult(LabResult labResult) {return labResultMapper.delLabResult(labResult);}
|
||||
|
||||
@ -9,7 +9,7 @@ import java.util.List;
|
||||
public interface LabResultService {
|
||||
List<LabResult> getLabResultList(Date jyrq, String yq, String ybh);
|
||||
Result getresultinfo(Date jyrq, String yq, String ybh);
|
||||
List<LabResult> getLabResult(Date jyrq, String yq, String ybh,String xmdh);
|
||||
LabResult getLabResult(Date jyrq, String yq, String ybh,String xmdh);
|
||||
Result insertLabResult(LabResult labResult);
|
||||
Result delLabResult(LabResult labResult);
|
||||
Result updateLabResult(LabResult labResult);
|
||||
|
||||
@ -18,7 +18,7 @@ public class LabResultImpl implements LabResultService {
|
||||
@Autowired
|
||||
private LabResultMapper labResultMapper;
|
||||
@Override
|
||||
public List<LabResult> getLabResult(Date jyrq, String yq, String ybh,String xmdh) {
|
||||
public LabResult getLabResult(Date jyrq, String yq, String ybh,String xmdh) {
|
||||
return labResultMapper.getLabResult(jyrq, yq, ybh,xmdh);
|
||||
}
|
||||
@Override
|
||||
|
||||
@ -345,6 +345,19 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
|
||||
String result=CalcUtils.getValueFromCalc(jsgs,variables);
|
||||
if (result != null && !result.trim().isEmpty()) {
|
||||
//插入结果值
|
||||
LabResult labResult=commonUtil.getLabResult(jyrq,yq,ybh,xmdh);
|
||||
if(labResult==null){
|
||||
labResult=new LabResult();
|
||||
labResult.setJyrq(jyrq);
|
||||
labResult.setYq(yq);
|
||||
labResult.setYbh(ybh);
|
||||
labResult.setXmdh(xmdh);
|
||||
labResult.setCsjg(result);
|
||||
commonUtil.insertLabResult(labResult);
|
||||
}else{
|
||||
labResult.setCsjg(result);
|
||||
commonUtil.updateLabResult(labResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user