| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.mapper.JobMapper"> |
| | | |
| | | <select id="getJobBySeqNum" resultType="com.zy.asrs.entity.Job"> |
| | | select * from |
| | | select * from cv_job where seq_num = #{seqNum} |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.Job"> |
| | | <id column="id" property="id"/> |
| | | <result column="seq_num" property="seqNum"/> |
| | | <result column="job_no" property="jobNo"/> |
| | | <result column="job_sts" property="jobSts"/> |
| | | <result column="in_time" property="inTime"/> |
| | | <result column="rcs_time" property="rcsTime"/> |
| | | <result column="status" property="status"/> |
| | | <result column="deleted" property="deleted"/> |
| | | <result column="tenant_id" property="tenantId"/> |
| | | <result column="create_by" property="createBy"/> |
| | | <result column="create_time" property="createTime"/> |
| | | <result column="update_by" property="updateBy"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="memo" property="memo"/> |
| | | </resultMap> |
| | | |
| | | <select id="getJobBySeqNum" resultMap="BaseResultMap"> |
| | | select * |
| | | from cv_job |
| | | where seq_num = #{seqNum} |
| | | </select> |
| | | |
| | | |
| | | <select id="getJobByWorkNo" resultType="com.zy.asrs.entity.Job"> |
| | | select * from |
| | | select * from cv_job where work_no = #{workNo} |
| | | <select id="getJobByJobNo" resultMap="BaseResultMap"> |
| | | select * |
| | | from cv_job |
| | | where job_no = #{workNo} |
| | | </select> |
| | | |
| | | <select id="getJobByJobNoAndJobSts" resultMap="BaseResultMap"> |
| | | select * |
| | | from cv_job |
| | | where job_no = #{workNo} |
| | | and job_sts = #{jobSts} |
| | | </select> |
| | | |
| | | |
| | | <select id="listJobByJobSts" resultMap="BaseResultMap"> |
| | | select * |
| | | from cv_job |
| | | where job_sts = #{jobSts} |
| | | </select> |
| | | |
| | | </mapper> |