采运销关联
This commit is contained in:
@ -80,7 +80,7 @@ public class UpdateLngContractSalesPngPointDto extends BaseModel implements Seri
|
|||||||
@ApiModelProperty("lngContractSalesPngPointPur子表")
|
@ApiModelProperty("lngContractSalesPngPointPur子表")
|
||||||
@LogJoin(name = "lngContractSalesPngPointPur子表",
|
@LogJoin(name = "lngContractSalesPngPointPur子表",
|
||||||
columns = {
|
columns = {
|
||||||
@LogJoinColumn(field = "ksppId",relatedField = "id", valueDirection = ValueDirectionType.RIGHT)
|
@LogJoinColumn(field = "id",relatedField = "ksppId", valueDirection = ValueDirectionType.RIGHT)
|
||||||
},
|
},
|
||||||
caseType = JoinCaseType.FULL, target = UpdateLngContractSalesPngPointPurDto.class, type = JoinType.MANY)
|
caseType = JoinCaseType.FULL, target = UpdateLngContractSalesPngPointPurDto.class, type = JoinType.MANY)
|
||||||
private List<UpdateLngContractSalesPngPointPurDto> lngContractSalesPngPointPurList;
|
private List<UpdateLngContractSalesPngPointPurDto> lngContractSalesPngPointPurList;
|
||||||
|
|||||||
@ -135,7 +135,7 @@ public class UpdateLngContractSalesPngPointPurDto implements Serializable {
|
|||||||
@LogJoin(name = "lngContractSalesPngPointTrans子表",
|
@LogJoin(name = "lngContractSalesPngPointTrans子表",
|
||||||
columns = {
|
columns = {
|
||||||
@LogJoinColumn(field = "ksppId",relatedField = "ksppId", valueDirection = ValueDirectionType.RIGHT),
|
@LogJoinColumn(field = "ksppId",relatedField = "ksppId", valueDirection = ValueDirectionType.RIGHT),
|
||||||
@LogJoinColumn(field = "kspppId",relatedField = "id", valueDirection = ValueDirectionType.RIGHT)
|
@LogJoinColumn(field = "id",relatedField = "kspppId", valueDirection = ValueDirectionType.RIGHT)
|
||||||
},
|
},
|
||||||
caseType = JoinCaseType.FULL, target = UpdateLngContractSalesPngPointTransDto.class, type = JoinType.MANY)
|
caseType = JoinCaseType.FULL, target = UpdateLngContractSalesPngPointTransDto.class, type = JoinType.MANY)
|
||||||
private List<UpdateLngContractSalesPngPointTransDto> lngContractSalesPngPointTransList;
|
private List<UpdateLngContractSalesPngPointTransDto> lngContractSalesPngPointTransList;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ public class LngContractSalesPngPointTransVo extends com.xjrsoft.common.model.ba
|
|||||||
@ApiModelProperty("资源上载点编码(lng_contract_sales_png_point_pur.point_up_code)")
|
@ApiModelProperty("资源上载点编码(lng_contract_sales_png_point_pur.point_up_code)")
|
||||||
private String pointUpCode;
|
private String pointUpCode;
|
||||||
|
|
||||||
|
private String pointUpName;
|
||||||
/**
|
/**
|
||||||
* 自主托运(Y-是,N-否;缺省Y;隐藏;lng_contract_sales_png_point_pur.trans_sign)
|
* 自主托运(Y-是,N-否;缺省Y;隐藏;lng_contract_sales_png_point_pur.trans_sign)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -20,9 +20,11 @@ import com.xjrsoft.module.contract.vo.LngContractSalesPngPointPurVo;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface LngContractSalesPngPointPurMapper extends MPJBaseMapper<LngContractSalesPngPointPur> , BaseMapper<LngContractSalesPngPointPur> {
|
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" +
|
" FROM lng_contract_sales_png_point_pur ksppp" +
|
||||||
" LEFT JOIN lng_contract kp ON kp.id=ksppp.kp_id" +
|
" 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" +
|
" LEFT JOIN lng_b_station_png bspu ON bspu.code=ksppp.point_up_code" +
|
||||||
" WHERE ksppp.kspp_id = #{ksppId}")
|
" WHERE ksppp.kspp_id = #{ksppId}")
|
||||||
List<LngContractSalesPngPointPurVo> queryLngContractSalesPngPointPurList(@Param("ksppId") Long ksppId);
|
List<LngContractSalesPngPointPurVo> queryLngContractSalesPngPointPurList(@Param("ksppId") Long ksppId);
|
||||||
|
|||||||
@ -21,9 +21,15 @@ import com.xjrsoft.module.contract.vo.LngContractSalesPngPointTransVo;
|
|||||||
@Mapper
|
@Mapper
|
||||||
public interface LngContractSalesPngPointTransMapper extends MPJBaseMapper<LngContractSalesPngPointTrans> , BaseMapper<LngContractSalesPngPointTrans> {
|
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" +
|
" FROM lng_contract_sales_png_point_trans ksppt" +
|
||||||
" LEFT JOIN lng_contract kt ON kt.id=ksppt.kt_id" +
|
" 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" +
|
" LEFT JOIN lng_supplier su_ys ON su_ys.su_code=ksppt.su_code" +
|
||||||
" WHERE ksppt.ksppp_id = #{kspppId}")
|
" WHERE ksppt.ksppp_id = #{kspppId}")
|
||||||
List<LngContractSalesPngPointTransVo> queryLngContractSalesPngPointTransList(@Param("kspppId") Long kspppId);
|
List<LngContractSalesPngPointTransVo> queryLngContractSalesPngPointTransList(@Param("kspppId") Long kspppId);
|
||||||
|
|||||||
Reference in New Issue
Block a user