采运销关联

This commit is contained in:
2026-04-03 15:54:15 +08:00
parent bee8df669e
commit b5c8061f29
5 changed files with 13 additions and 5 deletions

View File

@ -20,9 +20,11 @@ import com.xjrsoft.module.contract.vo.LngContractSalesPngPointPurVo;
@Mapper
public interface LngContractSalesPngPointPurMapper extends MPJBaseMapper<LngContractSalesPngPointPur> , BaseMapper<LngContractSalesPngPointPur> {
@Select("SELECT ksppp.*, bspu.full_name AS point_up_name, kp.k_name AS kp_name " +
@Select("SELECT ksppp.*, bspu.full_name AS point_up_name, kp.k_name AS kp_name, " +
" su.su_sname AS su_name"+
" FROM lng_contract_sales_png_point_pur ksppp" +
" LEFT JOIN lng_contract kp ON kp.id=ksppp.kp_id" +
" LEFT JOIN lng_supplier su ON su.su_code=ksppp.su_code"+
" LEFT JOIN lng_b_station_png bspu ON bspu.code=ksppp.point_up_code" +
" WHERE ksppp.kspp_id = #{ksppId}")
List<LngContractSalesPngPointPurVo> queryLngContractSalesPngPointPurList(@Param("ksppId") Long ksppId);

View File

@ -21,9 +21,15 @@ import com.xjrsoft.module.contract.vo.LngContractSalesPngPointTransVo;
@Mapper
public interface LngContractSalesPngPointTransMapper extends MPJBaseMapper<LngContractSalesPngPointTrans> , BaseMapper<LngContractSalesPngPointTrans> {
@Select("SELECT ksppt.*, su_ys.su_sname AS su_ys_name, kt.k_name AS kt_name " +
@Select("SELECT ksppt.*, su_ys.su_sname AS su_ys_name, kt.k_name AS kt_name, " +
" bspd.full_name AS point_dely_name,bspu.full_name AS point_up_name, " +
" bput.full_name AS point_up_trans_name,bpdt.full_name AS point_dely_trans_name " +
" FROM lng_contract_sales_png_point_trans ksppt" +
" LEFT JOIN lng_contract kt ON kt.id=ksppt.kt_id" +
" LEFT JOIN lng_b_station_png bspd ON bspd.code=ksppt.point_dely_code"+
" LEFT JOIN lng_b_station_png bspu ON bspu.code=ksppt.point_up_code"+
" LEFT JOIN lng_b_station_png bput ON bput.code=ksppt.point_up_trans_code"+
" LEFT JOIN lng_b_station_png bpdt ON bpdt.code=ksppt.point_dely_trans_code"+
" LEFT JOIN lng_supplier su_ys ON su_ys.su_code=ksppt.su_code" +
" WHERE ksppt.ksppp_id = #{kspppId}")
List<LngContractSalesPngPointTransVo> queryLngContractSalesPngPointTransList(@Param("kspppId") Long kspppId);