Browse Source

荣兴 工具Mapper-zww

master
zuowenwen 4 years ago
parent
commit
f5200dcd85
  1. 2
      src/main/resources/mapper/toolman/ToolDetailMapper.xml
  2. 6
      src/main/resources/mapper/toolman/ToolHeaderMapper.xml

2
src/main/resources/mapper/toolman/ToolDetailMapper.xml

@ -249,7 +249,7 @@
and Site=#{site,jdbcType=VARCHAR} and Site=#{site,jdbcType=VARCHAR}
</if> </if>
<if test="toolId != null and toolId != ''"> <if test="toolId != null and toolId != ''">
and ToolInstanceID LIKE '%'+#{toolId,jdbcType=VARCHAR}+'%'
and ToolInstanceID LIKE #{toolId,jdbcType=VARCHAR}+'%'
</if> </if>
</where> </where>
</select> </select>

6
src/main/resources/mapper/toolman/ToolHeaderMapper.xml

@ -121,9 +121,9 @@
INSERT INTO ToolHeader INSERT INTO ToolHeader
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="toolId != null and toolId != ''">ToolID,</if> <if test="toolId != null and toolId != ''">ToolID,</if>
<if test="site!=null">Site,</if>
<if test="site != null and site != ''">Site,</if>
<if test="toolDescription != null and toolDescription != ''">ToolDescription,</if> <if test="toolDescription != null and toolDescription != ''">ToolDescription,</if>
<if test="spec!=null">Spec,</if>
<if test="spec != null and spec != ''">Spec,</if>
<if test="familyId != null and familyId != ''">FamilyID,</if> <if test="familyId != null and familyId != ''">FamilyID,</if>
<if test="active != null and active != ''">Active,</if> <if test="active != null and active != ''">Active,</if>
<if test="remark != null and remark != ''">Remark,</if> <if test="remark != null and remark != ''">Remark,</if>
@ -131,7 +131,7 @@
<if test="codeNo != null and codeNo != ''">CodeNo,</if> <if test="codeNo != null and codeNo != ''">CodeNo,</if>
<if test="createDate != null">CreateDate,</if> <if test="createDate != null">CreateDate,</if>
<if test="createdBy != null and createdBy != ''">CreatedBy,</if> <if test="createdBy != null and createdBy != ''">CreatedBy,</if>
<if test="umid!=null">UMID,</if>
<if test="umid != null and umid != ''">UMID,</if>
<if test="defaultWarehouseId != null and defaultWarehouseId != ''">DefaultWarehouseID,</if> <if test="defaultWarehouseId != null and defaultWarehouseId != ''">DefaultWarehouseID,</if>
<if test="lastUpdateBy != null and lastUpdateBy != ''">LastUpdateBy,</if> <if test="lastUpdateBy != null and lastUpdateBy != ''">LastUpdateBy,</if>
<if test="defaultLocationId != null and defaultLocationId != ''">DefaultLocationID,</if> <if test="defaultLocationId != null and defaultLocationId != ''">DefaultLocationID,</if>

Loading…
Cancel
Save