|
|
|
@ -83,19 +83,19 @@ public class TRecordServiceImpl implements ITRecordService
|
|
|
|
|
public int updateTRecord(TRecord tRecord)
|
|
|
|
|
{
|
|
|
|
|
// 处理无图片信息
|
|
|
|
|
try {
|
|
|
|
|
if (tRecord.getAiResult() != null) {
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(tRecord.getAiResult());
|
|
|
|
|
tRecord.setAiResult2(noPicture(jsonObject));
|
|
|
|
|
}
|
|
|
|
|
if (tRecord.getUpdateResult() != null) {
|
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(tRecord.getUpdateResult());
|
|
|
|
|
tRecord.setUpdateResult2(noPicture(jsonObject));
|
|
|
|
|
}
|
|
|
|
|
} catch (JSONException jsonException) {
|
|
|
|
|
logger.error("Json 解析异常,请检查入参。");
|
|
|
|
|
throw new ServiceException("Json 解析异常,请检查入参。");
|
|
|
|
|
}
|
|
|
|
|
// try {
|
|
|
|
|
// if (tRecord.getAiResult() != null) {
|
|
|
|
|
// JSONObject jsonObject = JSONObject.parseObject(tRecord.getAiResult());
|
|
|
|
|
// tRecord.setAiResult2(noPicture(jsonObject));
|
|
|
|
|
// }
|
|
|
|
|
// if (tRecord.getUpdateResult() != null) {
|
|
|
|
|
// JSONObject jsonObject = JSONObject.parseObject(tRecord.getUpdateResult());
|
|
|
|
|
// tRecord.setUpdateResult2(noPicture(jsonObject));
|
|
|
|
|
// }
|
|
|
|
|
// } catch (JSONException jsonException) {
|
|
|
|
|
// logger.error("Json 解析异常,请检查入参。");
|
|
|
|
|
// throw new ServiceException("Json 解析异常,请检查入参。");
|
|
|
|
|
// }
|
|
|
|
|
tRecord.setUpdateTime(DateUtils.getNowDate());
|
|
|
|
|
return tRecordMapper.updateTRecord(tRecord);
|
|
|
|
|
}
|
|
|
|
|