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