|
|
|
@ -47,6 +47,7 @@
|
|
|
|
|
<result property="sapAsset" column="sap_asset" />
|
|
|
|
|
<result property="equipmentHead" column="equipment_head" />
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
<result property="equipmentStatus" column="equipment_status" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="WmsSparePartsLedger" id="WmsSparePartsLedgerResult">
|
|
|
|
@ -159,7 +160,9 @@
|
|
|
|
|
asset_head,
|
|
|
|
|
fixed_asset_code,
|
|
|
|
|
department,
|
|
|
|
|
equipment_head
|
|
|
|
|
equipment_head,
|
|
|
|
|
factory_code,
|
|
|
|
|
equipment_status
|
|
|
|
|
from base_equipment
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -201,6 +204,7 @@
|
|
|
|
|
<if test="department != null and department != ''"> and department = #{department}</if>
|
|
|
|
|
<if test="sapAsset != null and sapAsset != ''"> and sap_asset = #{sapAsset}</if>
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="equipmentStatus != null and equipmentStatus != ''"> and equipment_status = #{equipmentStatus}</if>
|
|
|
|
|
and del_flag ='0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -254,6 +258,7 @@
|
|
|
|
|
<if test="sapAsset != null">sap_asset,</if>
|
|
|
|
|
<if test="equipmentHead != null">equipment_head,</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
|
<if test="equipmentStatus != null">equipment_status,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">#{equipmentCode},</if>
|
|
|
|
@ -296,6 +301,7 @@
|
|
|
|
|
<if test="sapAsset != null">#{sapAsset},</if>
|
|
|
|
|
<if test="equipmentHead != null">#{equipmentHead},</if>
|
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
|
<if test="equipmentStatus != null">equipmentStatus,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -342,6 +348,7 @@
|
|
|
|
|
<if test="sapAsset != null">sap_asset = #{sapAsset},</if>
|
|
|
|
|
<if test="equipmentHead != null">equipment_head = #{equipmentHead},</if>
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="equipmentStatus != null">equipment_status = #{equipmentStatus},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where equipment_id = #{equipmentId}
|
|
|
|
|
</update>
|
|
|
|
@ -514,4 +521,12 @@
|
|
|
|
|
and del_flag ='0'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<update id="updateBaseEquipmentStatus" parameterType="BaseEquipment">
|
|
|
|
|
update base_equipment
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where equipment_id = #{equipmentId}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|