10 changed files with 44 additions and 48 deletions
@ -1,13 +1,32 @@ |
|||
<?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.scm.biz.scmvehrebatewith.ScmVehRebateWithMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithVo"> |
|||
SELECT * FROM scm_veh_rebate_with <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithVo"> |
|||
SELECT * FROM scm_veh_rebate_with <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithVo"> |
|||
SELECT * FROM scm_veh_rebate_with |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithVo"> |
|||
SELECT * FROM scm_veh_rebate_with |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="fetchByMainSid" resultType="com.yxt.anrui.scm.api.scmvehrebatewith.ScmVehRebateWithDetailsVo"> |
|||
SELECT svr.rebateTypeKey, |
|||
svr.`rebateTypeValue`, |
|||
SUM(svr.`estimateRebate`) estimateRebate, |
|||
COUNT(*) num, |
|||
GROUP_CONCAT(svrw.`vehRebateSid`) vehRebateSid |
|||
FROM scm_veh_rebate_with svrw |
|||
LEFT JOIN scm_veh_rebate svr |
|||
ON svr.`sid` = svrw.`vehRebateSid` |
|||
WHERE svrw.`mainSid` = #{sid} |
|||
GROUP BY svr.`calculationModeKey` |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue