where attention_id = #{attentionId,jdbcType=INTEGER}
...
...
@@ -118,11 +115,11 @@
select
<includerefid="Base_Column_List"/>
from tab_attention_store
where status = 1 and user_id = #{userId} and enterprise_id = #{enterpriseId} order by create_time desc
where delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} and user_id = #{userId} and enterprise_id = #{enterpriseId} order by create_time desc
</select>
<updateid="removeAttention">
update tab_attention_store
set status = 0
set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS}
where enterprise_id = #{enterpriseId,jdbcType=INTEGER} and user_id= #{userId}
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
...
...
@@ -111,11 +108,11 @@
module_id = #{moduleId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
status = #{status,jdbcType=INTEGER}
delete_flag = #{deleteFlag,jdbcType=INTEGER}
where index_module_rel_id = #{indexModuleRelId,jdbcType=INTEGER}
</update>
<updateid="delByBusinessId">
update tab_index_module_rel set status = 0 where business_id = #{businessId} and type = #{type} and status = 1
update tab_index_module_rel set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@DELETE_STATUS} where business_id = #{businessId} and type = #{type} and delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS}
update tab_index_module_rel set status = 1 where business_id = #{businessId} and `type` = #{type}
update tab_index_module_rel set delete_flag = ${@com.gic.cloud.constanst.DeleteFlagConstants@NORMAL_STATUS} where business_id = #{businessId} and `type` = #{type}