| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.project.enforce.mapper.EnforceOrderMapper"> |
| | | |
| | | |
| | | <resultMap type="EnforceOrder" id="EnforceOrderResult"> |
| | | <result property="orderId" column="order_id" /> |
| | | <result property="orderNo" column="order_no" /> |
| | |
| | | <result property="applyDeptId" column="apply_dept_id" /> |
| | | <result property="applyDeptName" column="apply_dept_name" /> |
| | | <result property="applyTime" column="apply_time" /> |
| | | <result property="userNum" column="user_num" /> |
| | | <result property="warnStatus" column="warn_status" /> |
| | | <result property="warnReason" column="warn_reason" /> |
| | | <result property="orderStatus" column="order_status" /> |
| | | <result property="checkId" column="check_id" /> |
| | | <result property="checkUser" column="check_user" /> |
| | | <result property="checkPhone" column="check_phone" /> |
| | | <result property="checkDeptId" column="check_dept_id" /> |
| | | <result property="checkDeptName" column="check_dept_name" /> |
| | | <result property="checkTime" column="check_time" /> |
| | | <result property="checkStatus" column="check_status" /> |
| | | <result property="checkReason" column="check_reason" /> |
| | | <result property="checkLevel" column="check_level" /> |
| | | <result property="executeId" column="execute_id" /> |
| | | <result property="executeUser" column="execute_user" /> |
| | | <result property="executePhone" column="execute_phone" /> |
| | |
| | | <result property="delFlag" column="del_flag" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectEnforceOrderVo"> |
| | | select order_id, order_no, company_id, company_name, company_code, company_user, company_phone, company_address, |
| | | region_code,region_name,enforce_reason,user_num, |
| | | apply_id,apply_user,apply_phone,apply_dept_id,apply_dept_name,apply_time, |
| | | warn_status,warn_reason,order_status, |
| | | check_dept_id,check_dept_name,check_status,check_reason,check_level, |
| | | execute_id,execute_user,execute_phone,execute_dept_id,execute_dept_name,execute_time, |
| | | region_status,region_reason,region_imgs,region_videos,is_notice_company,is_show,is_eva,total_score |
| | | from sys_job_log |
| | | </sql> |
| | | |
| | | <select id="selectCheckList" parameterType="EnforceOrderQueryBo" resultMap="EnforceOrderResult"> |
| | | <include refid="selectEnforceOrderVo"/> |
| | | <where> |
| | | <if test="orderNo != null and orderNo != ''"> |
| | | AND order_no like concat('%', #{orderNo}, '%') |
| | | </if> |
| | | <if test="companyName != null and companyName != ''"> |
| | | AND company_name like concat('%', #{companyName}, '%') |
| | | </if> |
| | | |
| | | </mapper> |
| | | <if test="orderStatus != null and orderStatus != ''"> |
| | | AND order_status = #{orderStatus} |
| | | </if> |
| | | |
| | | <if test="checkDeptId != null "> |
| | | AND check_dept_id = #{checkDeptId} |
| | | </if> |
| | | |
| | | <if test="checkLevel != null "> |
| | | AND check_level = #{checkLevel} |
| | | </if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |