
34 changed files with 577 additions and 243 deletions
@ -0,0 +1,61 @@ |
|||||
|
/********************************************************* |
||||
|
********************************************************* |
||||
|
******************** ******************* |
||||
|
************* ************ |
||||
|
******* _oo0oo_ ******* |
||||
|
*** o8888888o *** |
||||
|
* 88" . "88 * |
||||
|
* (| -_- |) * |
||||
|
* 0\ = /0 * |
||||
|
* ___/`---'\___ * |
||||
|
* .' \\| |// '. *
|
||||
|
* / \\||| : |||// \ *
|
||||
|
* / _||||| -:- |||||- \ * |
||||
|
* | | \\\ - /// | | *
|
||||
|
* | \_| ''\---/'' |_/ | * |
||||
|
* \ .-\__ '-' ___/-. / * |
||||
|
* ___'. .' /--.--\ `. .'___ * |
||||
|
* ."" '< `.___\_<|>_/___.' >' "". * |
||||
|
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
||||
|
* \ \ `_. \_ __\ /__ _/ .-` / / * |
||||
|
* =====`-.____`.___ \_____/___.-`___.-'===== * |
||||
|
* `=---=' * |
||||
|
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
||||
|
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
||||
|
*********************************************************/ |
||||
|
package com.yxt.anrui.base.api.baseaccadjapply; |
||||
|
|
||||
|
|
||||
|
import com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicle; |
||||
|
import com.yxt.anrui.base.api.basevehicle.BaseVehicle; |
||||
|
import com.yxt.common.core.vo.Vo; |
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-base(调账管理) <br/> |
||||
|
* File: BaseAccadjApplyVo.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.baseaccadjapply.BaseAccadjApplyVo <br/> |
||||
|
* Description: 调账申请表 视图数据对象. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2022-07-07 16:57:24 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
@ApiModel(value = "调账申请表 视图数据对象", description = "调账申请表 视图数据对象") |
||||
|
public class BaseAccadjApplyToJDRu implements Vo { |
||||
|
|
||||
|
@ApiModelProperty("采购部门sid") |
||||
|
private String callInBuyerOrgSid; // 采购部门sid
|
||||
|
@ApiModelProperty("调车车辆列表") |
||||
|
private List<BaseInternalPurchaseVehicle> baseInternalPurchaseVehicles;//调车车辆列表
|
||||
|
@ApiModelProperty("车辆台账列表") |
||||
|
private List<BaseVehicle> baseVehicles;//车辆台账列表
|
||||
|
} |
@ -1,13 +1,44 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?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"> |
<!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.baseaccadjapplyeveh.BaseAccadjApplyeVehMapper"> |
<mapper namespace="com.yxt.anrui.base.biz.baseaccadjapplyeveh.BaseAccadjApplyeVehMapper"> |
||||
<!-- <where> ${ew.sqlSegment} </where>--> |
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
<!-- ${ew.customSqlSegment} --> |
<!-- ${ew.customSqlSegment} --> |
||||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.baseaccadjapplyeveh.BaseAccadjApplyeVehVo"> |
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.baseaccadjapplyeveh.BaseAccadjApplyeVehVo"> |
||||
SELECT * FROM base_accadj_applye_veh <where> ${ew.sqlSegment} </where> |
SELECT * FROM base_accadj_applye_veh |
||||
</select> |
<where> |
||||
|
${ew.sqlSegment} |
||||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.baseaccadjapplyeveh.BaseAccadjApplyeVehVo"> |
</where> |
||||
SELECT * FROM base_accadj_applye_veh <where> ${ew.sqlSegment} </where> |
</select> |
||||
</select> |
|
||||
|
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.baseaccadjapplyeveh.BaseAccadjApplyeVehVo"> |
||||
|
SELECT * FROM base_accadj_applye_veh |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
|
<select id="fetchCallInBuyerOrgSidByMainSid" resultType="java.lang.String"> |
||||
|
SELECT bipv.`callInBuyerOrgSid` |
||||
|
FROM base_internal_purchase_vehicle bipv |
||||
|
LEFT JOIN base_accadj_applye_veh baav |
||||
|
ON bipv.`sid` = baav.`purchaseSid` |
||||
|
LEFT JOIN base_accadj_apply baa |
||||
|
ON baa.`sid` = baav.`accadjSid` |
||||
|
WHERE baa.`sid` = #{sid} |
||||
|
GROUP BY bipv.`callInBuyerOrgSid` |
||||
|
</select> |
||||
|
|
||||
|
<select id="fetchByAccSidAndCallOutOrgSid" resultType="java.lang.String"> |
||||
|
SELECT bv.`purchaseSystemSid` |
||||
|
FROM base_internal_purchase_vehicle bipv |
||||
|
LEFT JOIN base_accadj_applye_veh baav |
||||
|
ON bipv.`sid` = baav.`purchaseSid` |
||||
|
LEFT JOIN base_accadj_apply baa |
||||
|
ON baa.`sid` = baav.`accadjSid` |
||||
|
LEFT JOIN base_vehicle bv |
||||
|
ON bv.`vinNo` = bipv.`vinNo` |
||||
|
WHERE baa.`sid` = #{sid} |
||||
|
AND bv.`createOrgSid` = #{callOutOrgSid} |
||||
|
GROUP BY bv.`purchaseSystemSid` |
||||
|
</select> |
||||
</mapper> |
</mapper> |
@ -1,30 +1,62 @@ |
|||||
<?xml version="1.0" encoding="UTF-8" ?> |
<?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"> |
<!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.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleMapper"> |
<mapper namespace="com.yxt.anrui.base.biz.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleMapper"> |
||||
<!-- <where> ${ew.sqlSegment} </where>--> |
<!-- <where> ${ew.sqlSegment} </where>--> |
||||
<!-- ${ew.customSqlSegment} --> |
<!-- ${ew.customSqlSegment} --> |
||||
<select id="selectPageVo" resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleVo"> |
<select id="selectPageVo" |
||||
SELECT * FROM base_internal_purchase_vehicle <where> ${ew.sqlSegment} </where> |
resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleVo"> |
||||
</select> |
SELECT * FROM base_internal_purchase_vehicle |
||||
|
<where> |
||||
<select id="selectListAllVo" resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleVo"> |
${ew.sqlSegment} |
||||
SELECT * FROM base_internal_purchase_vehicle <where> ${ew.sqlSegment} </where> |
</where> |
||||
</select> |
</select> |
||||
|
|
||||
|
<select id="selectListAllVo" |
||||
|
resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicleVo"> |
||||
|
SELECT * FROM base_internal_purchase_vehicle |
||||
|
<where> |
||||
|
${ew.sqlSegment} |
||||
|
</where> |
||||
|
</select> |
||||
|
|
||||
<select id="getListBySid" resultType="com.yxt.anrui.base.api.baseinternalpurchase.AppCompanyShuntingListVo"> |
<select id="getListBySid" resultType="com.yxt.anrui.base.api.baseinternalpurchase.AppCompanyShuntingListVo"> |
||||
select modelSid, |
select modelSid, |
||||
configSid, |
configSid, |
||||
vehicleAlias, |
vehicleAlias, |
||||
vinNo, |
vinNo, |
||||
guidedPrice, |
guidedPrice, |
||||
inventoryLocationName, |
inventoryLocationName, |
||||
witPinMoney, |
witPinMoney, |
||||
freight, |
freight, |
||||
freightUndertakerName, |
freightUndertakerName, |
||||
remarks, |
remarks, |
||||
sid |
sid |
||||
from base_internal_purchase_vehicle |
from base_internal_purchase_vehicle |
||||
where mainSid = #{sid} |
where mainSid = #{sid} |
||||
|
</select> |
||||
|
|
||||
|
<select id="fetchByAccSidAndCallInBuyerOrgSid" |
||||
|
resultType="com.yxt.anrui.base.api.baseinternalpurchasevehicle.BaseInternalPurchaseVehicle"> |
||||
|
SELECT bipv.* |
||||
|
FROM base_internal_purchase_vehicle bipv |
||||
|
LEFT JOIN base_accadj_applye_veh baav |
||||
|
ON bipv.`sid` = baav.`purchaseSid` |
||||
|
LEFT JOIN base_accadj_apply baa |
||||
|
ON baa.`sid` = baav.`accadjSid` |
||||
|
WHERE baa.`sid` = #{sid} |
||||
|
AND bipv.callInBuyerOrgSid = #{s} |
||||
|
</select> |
||||
|
|
||||
|
<select id="fetchByAccSidAndPurchaseSystemSid" resultType="com.yxt.anrui.base.api.basevehicle.BaseVehicle"> |
||||
|
SELECT bv.* |
||||
|
FROM base_internal_purchase_vehicle bipv |
||||
|
LEFT JOIN base_accadj_applye_veh baav |
||||
|
ON bipv.`sid` = baav.`purchaseSid` |
||||
|
LEFT JOIN base_accadj_apply baa |
||||
|
ON baa.`sid` = baav.`accadjSid` |
||||
|
LEFT JOIN base_vehicle bv |
||||
|
ON bv.`vinNo` = bipv.`vinNo` |
||||
|
WHERE baa.`sid` = #{sid} |
||||
|
AND bv.`purchaseSystemSid` = #{s} |
||||
</select> |
</select> |
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue