2024年6月4日 修复可能引起错误的问题
This commit is contained in:
parent
c0b060abbd
commit
38283aa4bf
|
@ -229,7 +229,14 @@ public class KcDetectionDetailedServiceImpl extends ServiceImpl<KcDetectionDetai
|
||||||
detectionDetailed.setDetectionOutImgRes(rJson);
|
detectionDetailed.setDetectionOutImgRes(rJson);
|
||||||
//解析获取数
|
//解析获取数
|
||||||
JSONObject object= JSON.parseObject(rJson);
|
JSONObject object= JSON.parseObject(rJson);
|
||||||
detectionDetailed.setNum(object.getInteger("person_num"));
|
Integer num = object.getInteger("person_num");
|
||||||
|
if(num == null){
|
||||||
|
if(detectionDetailed.getNum() == null){
|
||||||
|
detectionDetailed.setNum(0);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
detectionDetailed.setNum(num);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer allNum = detectionMain.getAllNum();
|
Integer allNum = detectionMain.getAllNum();
|
||||||
|
|
Loading…
Reference in New Issue