|
@@ -5,27 +5,22 @@
|
|
|
<mapper namespace="com.ruoyi.project.ticket.mapper.TDelayPermitMapper">
|
|
|
|
|
|
<resultMap type="TDelayPermit" id="TDelayPermitResult">
|
|
|
- <result property="id" column="id"/>
|
|
|
+ <result property="dpId" column="dp_id"/>
|
|
|
<result property="vId" column="v_id"/>
|
|
|
<result property="aId" column="a_id"/>
|
|
|
- <result property="hId" column="h_id"/>
|
|
|
- <result property="cId" column="c_id"/>
|
|
|
- <result property="otherId" column="other_id"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTDelayPermitVo">
|
|
|
- select d.id, d.v_id, d.a_id, d.h_id, d.c_id, d.other_id
|
|
|
+ select d.dp_id, d.v_id, d.a_id
|
|
|
from t_delay_permit d
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectDelayCount" parameterType="TDelayPermit" resultMap="TDelayPermitResult">
|
|
|
<include refid="selectTDelayPermitVo"/>
|
|
|
<where>
|
|
|
+ <if test="dpId != null ">and v_id = #{dpId}</if>
|
|
|
<if test="vId != null ">and v_id = #{vId}</if>
|
|
|
<if test="aId != null ">and a_id = #{aId}</if>
|
|
|
- <if test="hId != null ">and h_id = #{hId}</if>
|
|
|
- <if test="cId != null ">and c_id = #{cId}</if>
|
|
|
- <if test="otherId != null ">and other_id = #{otherId}</if>
|
|
|
</where>
|
|
|
order by v_id
|
|
|
</select>
|