| | |
| | | <result property="regionCode" column="region_code" /> |
| | | <result property="regionName" column="region_name" /> |
| | | <result property="enforceReason" column="enforce_reason" /> |
| | | <result property="enforceType" column="enforce_type" /> |
| | | <result property="applyId" column="apply_id" /> |
| | | <result property="applyUser" column="apply_user" /> |
| | | <result property="applyPhone" column="apply_phone" /> |
| | | <result property="applyDeptId" column="apply_dept_id" /> |
| | | <result property="applyDeptName" column="apply_dept_name" /> |
| | | <result property="applyTime" column="apply_time" /> |
| | | <result property="planTime" column="plan_time" /> |
| | | <result property="userNum" column="user_num" /> |
| | | <result property="warnStatus" column="warn_status" /> |
| | | <result property="warnReason" column="warn_reason" /> |
| | |
| | | from sys_job_log |
| | | </sql> |
| | | |
| | | <select id="selectCheckList" parameterType="EnforceOrderQueryBo" resultMap="EnforceOrderResult"> |
| | | <select id="selectCheckList" |
| | | parameterType="EnforceOrderQueryBo" |
| | | resultMap="EnforceOrderResult"> |
| | | <include refid="selectEnforceOrderVo"/> |
| | | <where> |
| | | <if test="orderNo != null and orderNo != ''"> |
| | |
| | | AND check_level = #{checkLevel} |
| | | </if> |
| | | |
| | | <if test="applyDeptIds != null "> |
| | | AND apply_dept_id in |
| | | <foreach collection="applyDeptIds" item="applyDeptId" open="(" separator="," close=")"> |
| | | #{applyDeptId} |
| | | </foreach> |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getMonthCount" |
| | | parameterType="Long" |
| | | resultType="com.project.common.vo.KeyVal"> |
| | | select |
| | | MONTH(apply_time) AS k, |
| | | IFNULL(count(order_id),0) as v |
| | | from enforce_order |
| | | where 1=1 |
| | | <if test="deptId != null "> |
| | | AND apply_dept_id = #{deptId} |
| | | </if> |
| | | GROUP BY k |
| | | </select> |
| | | |
| | | <select id="getDeptCount" |
| | | parameterType="String" |
| | | resultType="com.project.common.vo.KeyVal"> |
| | | select |
| | | MONTH(check_dept_id) AS k, |
| | | IFNULL(count(order_id),0) as v |
| | | from enforce_order |
| | | where 1=1 |
| | | <if test="yearMonth!=null and yearMonth!=''"> |
| | | AND apply_time like concat('%', #{yearMonth}, '%') |
| | | </if> |
| | | GROUP BY k |
| | | </select> |
| | | |
| | | </mapper> |