Merge remote-tracking branch 'origin/master_merge' into master_merge
This commit is contained in:
@@ -1264,9 +1264,13 @@ public class LmsToMesServiceImpl implements LmsToMesService {
|
|||||||
if ("E".equals(RTYPE)) {
|
if ("E".equals(RTYPE)) {
|
||||||
throw new BadRequestException(result.getString("RTMSG"));
|
throw new BadRequestException(result.getString("RTMSG"));
|
||||||
}
|
}
|
||||||
|
if (ObjectUtil.isEmpty(result.getJSONArray("RTDAT"))){
|
||||||
|
result.put("result", false);
|
||||||
|
result.put("rtdat", "没有检验结果");
|
||||||
|
return result;
|
||||||
|
}
|
||||||
JSONObject rtdat = result.getJSONArray("RTDAT").getJSONObject(0);
|
JSONObject rtdat = result.getJSONArray("RTDAT").getJSONObject(0);
|
||||||
result.put("result", false);
|
|
||||||
result.put("rtdat", rtdat);
|
|
||||||
if (ObjectUtil.isNotEmpty(rtdat.getString("IsSampleTest")) && ObjectUtil.isNotEmpty(rtdat.getString("SampleCount")) && ObjectUtil.isNotEmpty(rtdat.getString("SampleTestResult"))) {
|
if (ObjectUtil.isNotEmpty(rtdat.getString("IsSampleTest")) && ObjectUtil.isNotEmpty(rtdat.getString("SampleCount")) && ObjectUtil.isNotEmpty(rtdat.getString("SampleTestResult"))) {
|
||||||
if (rtdat.getString("IsSampleTest").equals(rtdat.getString("SampleCount")) && "PASS".equals(rtdat.getString("SampleTestResult"))) {
|
if (rtdat.getString("IsSampleTest").equals(rtdat.getString("SampleCount")) && "PASS".equals(rtdat.getString("SampleTestResult"))) {
|
||||||
result.put("result", true);
|
result.put("result", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user