|
|
|
@ -49,6 +49,12 @@
|
|
|
|
|
<result property="factoryCode" column="factory_code" />
|
|
|
|
|
<result property="equipmentStatus" column="equipment_status" />
|
|
|
|
|
<result property="equipmentCategory" column="equipment_category" />
|
|
|
|
|
<result property="assetClassificationName" column="asset_classification_name" />
|
|
|
|
|
<result property="assetDescription" column="asset_description" />
|
|
|
|
|
<result property="equipmentNumber" column="equipment_number" />
|
|
|
|
|
<result property="inventoryNumber" column="inventory_number" />
|
|
|
|
|
<result property="unitMeasurement" column="unit_measurement" />
|
|
|
|
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<resultMap type="WmsSparePartsLedger" id="WmsSparePartsLedgerResult">
|
|
|
|
@ -164,7 +170,12 @@
|
|
|
|
|
equipment_head,
|
|
|
|
|
factory_code,
|
|
|
|
|
equipment_status,
|
|
|
|
|
equipment_category
|
|
|
|
|
equipment_category,
|
|
|
|
|
asset_classification_name,
|
|
|
|
|
asset_description,
|
|
|
|
|
equipment_number,
|
|
|
|
|
inventory_number,
|
|
|
|
|
unit_measurement
|
|
|
|
|
from base_equipment
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
@ -208,6 +219,11 @@
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code = #{factoryCode}</if>
|
|
|
|
|
<if test="equipmentStatus != null and equipmentStatus != ''"> and equipment_status = #{equipmentStatus}</if>
|
|
|
|
|
<if test="equipmentCategory != null and equipmentCategory != ''"> and equipment_category = #{equipmentCategory}</if>
|
|
|
|
|
<if test="assetClassificationName != null and assetClassificationName != ''"> and asset_classification_name = #{assetClassificationName}</if>
|
|
|
|
|
<if test="assetDescription != null and assetDescription != ''"> and asset_description = #{assetDescription}</if>
|
|
|
|
|
<if test="equipmentNumber != null and equipmentNumber != ''"> and equipment_number = #{equipmentNumber}</if>
|
|
|
|
|
<if test="inventoryNumber != null and inventoryNumber != ''"> and inventory_number = #{inventoryNumber}</if>
|
|
|
|
|
<if test="unitMeasurement != null and unitMeasurement != ''"> and unit_measurement = #{unitMeasurement}</if>
|
|
|
|
|
and del_flag ='0'
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -263,6 +279,11 @@
|
|
|
|
|
<if test="factoryCode != null">factory_code,</if>
|
|
|
|
|
<if test="equipmentStatus != null">equipment_status,</if>
|
|
|
|
|
<if test="equipmentCategory != null">equipment_category,</if>
|
|
|
|
|
<if test="assetClassificationName != null">asset_classification_name,</if>
|
|
|
|
|
<if test="assetDescription != null">asset_description,</if>
|
|
|
|
|
<if test="equipmentNumber != null">equipment_number,</if>
|
|
|
|
|
<if test="inventoryNumber != null">inventory_number,</if>
|
|
|
|
|
<if test="unitMeasurement != null">unit_measurement,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="equipmentCode != null and equipmentCode != ''">#{equipmentCode},</if>
|
|
|
|
@ -307,6 +328,11 @@
|
|
|
|
|
<if test="factoryCode != null">#{factoryCode},</if>
|
|
|
|
|
<if test="equipmentStatus != null">#{equipmentStatus},</if>
|
|
|
|
|
<if test="equipmentCategory != null">#{equipmentCategory},</if>
|
|
|
|
|
<if test="assetClassificationName != null and assetClassificationName != ''"> #{assetClassificationName},</if>
|
|
|
|
|
<if test="assetDescription != null and assetDescription != ''"> #{assetDescription},</if>
|
|
|
|
|
<if test="equipmentNumber != null and equipmentNumber != ''"> #{equipmentNumber},</if>
|
|
|
|
|
<if test="inventoryNumber != null and inventoryNumber != ''"> #{inventoryNumber},</if>
|
|
|
|
|
<if test="unitMeasurement != null and unitMeasurement != ''"> #{unitMeasurement},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -355,6 +381,11 @@
|
|
|
|
|
<if test="factoryCode != null">factory_code = #{factoryCode},</if>
|
|
|
|
|
<if test="equipmentStatus != null">equipment_status = #{equipmentStatus},</if>
|
|
|
|
|
<if test="equipmentCategory != null">equipment_category = #{equipmentCategory},</if>
|
|
|
|
|
<if test="assetClassificationName != null and assetClassificationName != ''"> asset_classification_name = #{assetClassificationName},</if>
|
|
|
|
|
<if test="assetDescription != null and assetDescription != ''"> asset_description = #{assetDescription},</if>
|
|
|
|
|
<if test="equipmentNumber != null and equipmentNumber != ''"> equipment_number = #{equipmentNumber},</if>
|
|
|
|
|
<if test="inventoryNumber != null and inventoryNumber != ''"> inventory_number = #{inventoryNumber},</if>
|
|
|
|
|
<if test="unitMeasurement != null and unitMeasurement != ''"> unit_measurement = #{unitMeasurement},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where equipment_id = #{equipmentId}
|
|
|
|
|
</update>
|
|
|
|
|