Commit 47ab399d authored by tianbo's avatar tianbo

fix(database): 修复数据库字段映射问题

- 修正了 idx_biz_jg_other_info 表中 STATUS 和 RECORD 字段的 SQL 引用格式,将字段名添加双引号以确保正确的数据库字段映射 - 更新了注释描述,将安全追溯问题状态改为安全追溯问题聚合状态 - 确保设备报废流程中的状态更新逻辑正确执行
parent 8405c72a
......@@ -1188,7 +1188,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
Map<String, Map<String, Object>> resultMap = new HashMap<>();
if (CancelTypeEnum.SCRAPPED.getCode().equals(jgScrapCancel.getCancelType())) {
idxBizJgUseInfoMapper.batchUpdateUseInfo(equipIds, EquipmentEnum.BAOFEI.getCode());
// 设备的安全追溯问题状态改为报废
// 设备的安全追溯问题聚合状态改为报废
idxBizJgOtherInfoMapper.batchUpdateOtherInfo(equipIds);
map1.put("EQU_STATE", String.valueOf(EquipmentEnum.BAOFEI.getCode()));
// 修改证管理表中的证的状态
......
......@@ -24,8 +24,8 @@ public interface IdxBizJgOtherInfoMapper extends CustomBaseMapper<IdxBizJgOtherI
* @param equipIds 设备 ID 列表
*/
@Update("<script>" +
"update idx_biz_jg_other_info set STATUS = 2 " +
"where RECORD in " +
"update idx_biz_jg_other_info set \"STATUS\" = '2' " +
"where \"RECORD\" in " +
"<foreach item='equipId' collection='equipIds' open='(' separator=',' close=')'>" +
"#{equipId}" +
"</foreach>" +
......
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