Browse Source

感知id

develop
wangsixiang 10 months ago
parent
commit
7da432c533
  1. 2
      zc-business/src/main/resources/mapper/business/DcWarningMapper.xml

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

@ -72,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<insert id="insertDcWarning" parameterType="DcWarning" useGeneratedKeys="true" keyProperty="id">
insert into dc_warning
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="stakeMark != null and stakeMark != ''">stake_mark,</if>
<if test="direction != null">direction,</if>
<if test="deptId != null">dept_id,</if>
@ -90,6 +91,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="lane != null">lane,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="stakeMark != null and stakeMark != ''">#{stakeMark},</if>
<if test="direction != null">#{direction},</if>
<if test="deptId != null">#{deptId},</if>

Loading…
Cancel
Save