|
|
@ -65,6 +65,7 @@ |
|
|
|
<if test="comanyId != null ">and comany_id = #{comanyId}</if> |
|
|
|
<if test="deptId != null ">and dept_id = #{deptId}</if> |
|
|
|
</where> |
|
|
|
ORDER BY COALESCE(updated_time, created_time) DESC |
|
|
|
</select> |
|
|
|
<select id="selectDcBaseAssetInfoById" parameterType="Long" resultMap="DcBaseAssetInfoResult"> |
|
|
|
<include refid="selectDcBaseAssetInfoVo"/> |
|
|
@ -85,7 +86,7 @@ |
|
|
|
insert into dc_base_asset_info |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="tenantId != null">TENANT_ID,</if> |
|
|
|
<if test="REVISION != null">REVISION,</if> |
|
|
|
<if test="revision != null">REVISION,</if> |
|
|
|
<if test="createdBy != null">CREATED_BY,</if> |
|
|
|
<if test="createdTime != null">CREATED_TIME,</if> |
|
|
|
<if test="updatedBy != null">UPDATED_BY,</if> |
|
|
@ -104,7 +105,7 @@ |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="tenantId != null">#{tenantId},</if> |
|
|
|
<if test="REVISION != null">#{REVISION},</if> |
|
|
|
<if test="revision != null">#{revision},</if> |
|
|
|
<if test="createdBy != null">#{createdBy},</if> |
|
|
|
<if test="createdTime != null">#{createdTime},</if> |
|
|
|
<if test="updatedBy != null">#{updatedBy},</if> |
|
|
@ -127,7 +128,7 @@ |
|
|
|
update dc_base_asset_info |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="tenantId != null">TENANT_ID = #{tenantId},</if> |
|
|
|
<if test="REVISION != null">REVISION = #{REVISION},</if> |
|
|
|
<if test="revision != null">REVISION = #{revision},</if> |
|
|
|
<if test="createdBy != null">CREATED_BY = #{createdBy},</if> |
|
|
|
<if test="createdTime != null">CREATED_TIME = #{createdTime},</if> |
|
|
|
<if test="updatedBy != null">UPDATED_BY = #{updatedBy},</if> |
|
|
|