
12 changed files with 106 additions and 66 deletions
@ -1,53 +1,63 @@ |
|||
<?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.baseaccadjapply.BaseAccadjApplyMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.baseaccadjapply.BaseAccadjApplyVo"> |
|||
SELECT * FROM base_accadj_apply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.baseaccadjapply.BaseAccadjApplyVo"> |
|||
SELECT * FROM base_accadj_apply <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.baseaccadjapply.BaseAccadjApplyVo"> |
|||
SELECT * FROM base_accadj_apply |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.baseaccadjapply.BaseAccadjApplyVo"> |
|||
SELECT * FROM base_accadj_apply |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="fetchVeh" |
|||
resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleDetailsVo"> |
|||
SELECT |
|||
bipv.*, |
|||
bip.`shuntingTypeKey`, |
|||
bip.`shuntingTypeValue`, |
|||
bip.`buyerOrgName`, |
|||
bip.`buyerOrgSid`, |
|||
bip.`sellerOrgName`, |
|||
bip.`sellerOrgSid` |
|||
FROM |
|||
base_internal_purchase_vehicle bipv |
|||
LEFT JOIN base_internal_purchase bip |
|||
ON bipv.`mainSid` = bip.`sid` |
|||
<where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<select id="fetchVeh" |
|||
resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleDetailsVo"> |
|||
SELECT |
|||
bipv.*, |
|||
bip.`shuntingTypeKey`, |
|||
bip.`shuntingTypeValue`, |
|||
bip.`buyerOrgName`, |
|||
bip.`buyerOrgSid`, |
|||
bip.`sellerOrgName`, |
|||
bip.`sellerOrgSid` |
|||
FROM |
|||
base_internal_purchase_vehicle bipv |
|||
LEFT JOIN base_internal_purchase bip |
|||
ON bipv.`mainSid` = bip.`sid` |
|||
LEFT JOIN base_vehicle bv |
|||
ON bv.`vinNo` = bipv.`vinNo` AND bip.`createOrgSid` = bv.`createOrgSid` |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<update id="updateFlowFiled"> |
|||
UPDATE base_accadj_apply |
|||
SET nodeState=#{nodeState} |
|||
, nodeSid=#{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 id="updateFlowFiled"> |
|||
UPDATE base_accadj_apply |
|||
SET nodeState=#{nodeState} |
|||
, nodeSid=#{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> |
|||
|
|||
<select id="selectBySid" resultType="int"> |
|||
SELECT COUNT(*) |
|||
FROM base_accadj_apply |
|||
WHERE nodeState != '待提交' |
|||
<select id="selectBySid" resultType="int"> |
|||
SELECT COUNT(*) |
|||
FROM base_accadj_apply |
|||
WHERE nodeState != '待提交' |
|||
and find_in_set(sid, #{list}) |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue