Compare commits

2 Commits
Author SHA1 Message Date
hejiayang c6338a8d45 fix(wearing): 修复佩戴详情部门缓存空指针异常 2026-03-27 18:14:25 +08:00
hejiayang 66795541c0 fix(aed): 维护映射中的状态字段引用错误(如果对应的数据库字段,双引号内大小写要与数据库一致)
- 移除AedEquipmentMaintainMapper.xml中status字段的双引号引用
- 移除WatchDataMapper.xml中type字段的双引号引用
- 确保数据库字段引用的一致性,避免SQL语法错误
2026-03-27 17:33:34 +08:00
3 changed files with 5 additions and 3 deletions
@@ -12,7 +12,7 @@
aem.host_model as hostModel,
aem.host_serial_num as hostSerialNum,
aem.battery_life as batteryLife,
aem."status" AS STATUS,
aem.status AS STATUS,
aem.control_org_name AS controlDept,
aem.manage_user_name AS custodian,
aem.manage_user_mobile AS custodianTel,
@@ -115,7 +115,9 @@ public class WearingDetailTransfer {
return Optional.ofNullable(this.departMap.get(orgCode))
.orElseGet(() -> {
SysDepart sysDepart = SpringContextUtils.getBean(ISysCache.class).getDepartByOrgCode(orgCode);
this.departMap.put(orgCode, sysDepart);
if (sysDepart != null) {
this.departMap.put(orgCode, sysDepart);
}
return sysDepart;
});
}
@@ -160,7 +160,7 @@
) where rn = 1)
where wd.userid = #{userid,jdbcType=VARCHAR}
and wd.watch_no = #{watchNo,jdbcType=VARCHAR}
and wd."type" = 1;
and wd.type = 1;
</update>
<insert id="insertSpo2">