
15 changed files with 273 additions and 42 deletions
@ -1,42 +1,60 @@ |
|||
<?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.basevehinstall.BaseVehinstallMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstallVo"> |
|||
SELECT |
|||
bv.sid, |
|||
bvm.vehicleTypeValue, |
|||
bvm.installNameValue, |
|||
bvm.refitMethodValue, |
|||
bvm.refitFactory, |
|||
bvm.colorValue, |
|||
bvm.`plateMaterialValue`, |
|||
bv.`brandName`, |
|||
bv.noticeModel, |
|||
bv.vehModel, |
|||
bv.vinNo, |
|||
bv.vehicleStateValue, |
|||
bv.priceDate, |
|||
bv.salesDate, |
|||
bv.costPrice, |
|||
bv.guidePrice, |
|||
bv.vehModelSid |
|||
FROM |
|||
base_vehinstall bv |
|||
LEFT JOIN base_vehinstallmodel bvm |
|||
ON bv.`mainSid` = bvm.`sid` <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstallVo"> |
|||
SELECT * FROM base_vehinstall <where> ${ew.sqlSegment} </where> |
|||
</select> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstallVo"> |
|||
SELECT |
|||
bv.sid, |
|||
bvm.vehicleTypeValue, |
|||
bvm.installNameValue, |
|||
bvm.refitMethodValue, |
|||
bvm.refitFactory, |
|||
bvm.colorValue, |
|||
bvm.`plateMaterialValue`, |
|||
bv.`brandName`, |
|||
bv.noticeModel, |
|||
bv.vehModel, |
|||
bv.vinNo, |
|||
bv.vehicleStateValue, |
|||
bv.priceDate, |
|||
bv.salesDate, |
|||
bv.costPrice, |
|||
bv.guidePrice, |
|||
bv.vehModelSid |
|||
FROM |
|||
base_vehinstall bv |
|||
LEFT JOIN base_vehinstallmodel bvm |
|||
ON bv.`mainSid` = bvm.`sid` |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstallVo"> |
|||
SELECT * FROM base_vehinstall |
|||
<where> |
|||
${ew.sqlSegment} |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectByOrgSidAndVin" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstall"> |
|||
select * |
|||
from base_vehinstall |
|||
where useOrgSid = #{useOrgSid} |
|||
and vinNo = #{vinNo} |
|||
</select> |
|||
|
|||
<select id="selectByOrgSidAndVin" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstall"> |
|||
select * from base_vehinstall where useOrgSid = #{useOrgSid} and vinNo = #{vinNo} |
|||
<select id="seletByVinAndUseOrg" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstall"> |
|||
select * |
|||
from base_vehinstall |
|||
where vinNo = #{vinNo} |
|||
and useOrgSid = #{useOrgSid} |
|||
</select> |
|||
|
|||
<select id="seletByVinAndUseOrg" resultType="com.yxt.anrui.base.api.basevehinstall.BaseVehinstall"> |
|||
select * from base_vehinstall where vinNo = #{vinNo} and useOrgSid = #{useOrgSid} |
|||
<select id="selectNumGCRK" resultType="int"> |
|||
SELECT IFNULL(CAST(REPLACE(MAX(billNo), #{bill}, '') AS SIGNED), 0) CODE |
|||
from base_vehinstall |
|||
where billNo LIKE concat(#{bill}, '%') |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue