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