
9 changed files with 141 additions and 32 deletions
@ -1,16 +1,39 @@ |
|||
<?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="com.yxt.anrui.base.biz.busvehicleapply.BusVehicleApplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.busvehicleapply.BusVehicleApplyVo"> |
|||
SELECT DISTINCT bva.* FROM bus_vehicle_apply bva |
|||
LEFT JOIN bus_vehicle_apply_detail bvad |
|||
ON bva.sid = bvad.`applySid` |
|||
<where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.busvehicleapply.BusVehicleApplyVo"> |
|||
SELECT * FROM bus_vehicle_apply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.busvehicleapply.BusVehicleApplyVo"> |
|||
SELECT DISTINCT bva.* |
|||
FROM bus_vehicle_apply bva |
|||
LEFT JOIN bus_vehicle_apply_detail bvad |
|||
ON bva.sid = bvad.`applySid` |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.busvehicleapply.BusVehicleApplyVo"> |
|||
SELECT * |
|||
FROM bus_vehicle_apply |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<update id="updateFlowFiled"> |
|||
UPDATE bus_vehicle_apply |
|||
SET nodeState=#{nodeState} |
|||
, nodeId=#{taskDefKey} |
|||
<if test="procDefId != null and procDefId != ''"> |
|||
, procDefId=#{procDefId} |
|||
</if> |
|||
<if test="procInsId != null and procInsId != ''"> |
|||
, procInstId=#{procInsId} |
|||
</if> |
|||
<if test="taskId != null and taskId != ''"> |
|||
, taskId=#{taskId} |
|||
</if> |
|||
WHERE sid = #{sid} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue