CheckAllocationMapper.xml
1.6 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.script.CheckAllocationMapper" >
<resultMap id="BaseResultMap" type="cn.com.glsx.dj.mindworkplate.model.script.CheckAllocation" >
<!--
WARNING - @mbg.generated
-->
<id column="id" property="id" jdbcType="INTEGER" />
<result column="script_id" property="scriptId" jdbcType="INTEGER" />
<result column="staff_uuid" property="staffUuid" jdbcType="VARCHAR" />
<result column="staff_phone" property="staffPhone" jdbcType="VARCHAR" />
<result column="staff_name" property="staffName" jdbcType="VARCHAR" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="created_time" property="createdTime" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
<result column="updated_time" property="updatedTime" jdbcType="TIMESTAMP" />
<result column="del_flag" property="delFlag" jdbcType="CHAR" />
</resultMap>
<sql id="Base_Column_List" >
<!--
WARNING - @mbg.generated
-->
id, script_id, staff_uuid, staff_phone, staff_name, created_by, created_time, updated_by, updated_time,
del_flag
</sql>
<select id="selectCheckUnPushRecord" resultMap="BaseResultMap">
SELECT t1.* FROM `script_check_allocation` t1
LEFT JOIN `script_extract_record` t2
ON t2.id = t1.script_id
WHERE t2.check_push_status=0
AND t1.del_flag='N' AND t2.del_flag='N'
</select>
</mapper>