Commit c50cdb7b authored by 邢磊's avatar 邢磊

*)修改取值问题

parent c8a4ae31
......@@ -58,6 +58,7 @@ import org.springframework.core.io.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.DateUtil;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.rdbms.service.BaseService;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
......@@ -1275,6 +1276,11 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
HashMap<String, Object> qrcode = new HashMap<>();
if (!ObjectUtils.isEmpty(alertCalledFormVo.getAlertCalledDto())) {
qrcode.put("value", alertCalledFormVo.getAlertCalledDto().getRegistrationCode());
try {
qrcode.put("problemTime", DateUtil.formatDate(new Date(), DateUtil.Y_M_D_HMS));
} catch (Exception e) {
e.printStackTrace();
}
}
// 96333码
HashMap<String, Object> qrcode2 = new HashMap<>();
......@@ -1284,7 +1290,7 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto,AlertCall
datas.put("datas", records);
datas.put("title", "处置记录");
datas.put("renderType", "timeline");
keyinfoData.put("title", objectMap.get("useUnitName"));
keyinfoData.put("title", ObjectUtils.isEmpty(useUnitMap.get("useUnitName")) ? null : String.valueOf(useUnitMap.get("useUnitName")));
keyinfoData.put("keyParams", jsonData);
keyinfoData.put("infoRecords", datas);
keyinfoData.put("qrcode", qrcode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment