SopTaskDetailAgentRefMapper.xml
1.7 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="cn.com.glsx.dj.mindworkplate.mapper.sop.SopTaskDetailAgentRefMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.sop.SopTaskDetailAgentRef" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="task_detail_id" property="taskDetailId" jdbcType="INTEGER" />
<result column="business_id" property="businessId" jdbcType="VARCHAR" />
<result column="review_status" property="reviewStatus" jdbcType="INTEGER" />
<result column="batch_id" property="batchId" jdbcType="INTEGER" />
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_date" property="updatedDate" jdbcType="TIMESTAMP" />
<result column="deleted_flag" property="deletedFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, task_detail_id, business_id, review_status, created_date, created_by, updated_by,
updated_date, deleted_flag, batch_id
</sql>
<update id="batchUpdateReviewStatus">
<foreach collection="list" item="item" separator=";">
update sop_task_detail_agent_ref
set review_status = #{item.reviewStatus}, updated_date = #{item.updatedDate}, updated_by = #{item.updatedBy}
where business_id = #{item.businessId} and deleted_flag = 'N'
</foreach>
</update>
</mapper>