Browse Source

事件侧重要素

develop
lau572 7 months ago
parent
commit
66eada5a31
  1. 6
      zc-business/src/main/java/com/zc/business/service/impl/DcEventImportantServiceImpl.java
  2. 2
      zc-business/src/main/resources/mapper/business/DcEventImportantMapper.xml

6
zc-business/src/main/java/com/zc/business/service/impl/DcEventImportantServiceImpl.java

@ -64,7 +64,11 @@ public class DcEventImportantServiceImpl implements IDcEventImportantService
@Override
public int updateDcEventImportant(DcEventImportant dcEventImportant)
{
return dcEventImportantMapper.updateDcEventImportant(dcEventImportant);
int i = dcEventImportantMapper.updateDcEventImportant(dcEventImportant);
if (i < 1){
i = dcEventImportantMapper.insertDcEventImportant(dcEventImportant);
}
return i;
}
/**

2
zc-business/src/main/resources/mapper/business/DcEventImportantMapper.xml

@ -105,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="chemicalsName != null">chemicals_name = #{chemicalsName},</if>
<if test="leakageLevel != null">leakage_level = #{leakageLevel},</if>
</trim>
where id = #{id}
where event_id = #{eventId}
</update>
<delete id="deleteDcEventImportantByEventId" parameterType="String">

Loading…
Cancel
Save