同步物流业务代码

This commit is contained in:
Administrator
2025-06-10 01:29:55 +00:00
committed by chenbowen
parent 36c0d309fb
commit d1d5b2c0c5
299 changed files with 13351 additions and 1768 deletions

View File

@@ -1,6 +1,6 @@
<?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="cn.iocoder.yudao.module.lgst.dal.mysql.carrieraccount.CarrierAccountMapper">
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.acct.CarrierAccountMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。

View File

@@ -0,0 +1,35 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.acct.ChildAccountMapper">
<select id="selectChildAccountPage" resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountRespVo">
select u.id,u.USERNAME, u.NICKNAME, u.MOBILE, u.STATUS, u.CREATE_TIME,cu.NICKNAME as CREATOR_NAME,u.UPDATE_TIME
from SYSTEM_USERS u
inner join SYSTEM_USER_DEPT ud on u.ID = ud.USER_ID
inner join SYSTEM_USERS cu on u.CREATOR=convert(varchar,cu.ID)
where ud.DEPT_ID =#{vo.bidDeptId} and u.DELETED=0
<if test="vo.nickname !=null and vo.nickname !=''">
and u.NICKNAME like concat('%',#{vo.nickname},'%')
</if>
<if test="vo.username !=null and vo.username !=''">
AND U.USERNAME like concat('%',#{vo.username},'%')
</if>
<if test="vo.mobile !=null and vo.mobile !=''">
AND U.MOBILE like concat('%',#{vo.mobile},'%')
</if>
order by u.CREATE_TIME desc
</select>
<select id="selectChildAccountList" resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.acct.vo.ChildAccountRespVo">
select u.id,
u.USERNAME,
u.NICKNAME,
u.MOBILE,
u.STATUS,
u.CREATE_TIME,
cu.NICKNAME as CREATOR_NAME,
u.UPDATE_TIME
from SYSTEM_USERS u
inner join SYSTEM_USER_DEPT ud on u.ID = ud.USER_ID
where ud.DEPT_ID = #{deptId}
and u.DELETED = 0
</select>
</mapper>

View File

@@ -1,6 +1,6 @@
<?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="cn.iocoder.yudao.module.lgst.dal.mysql.customer.CustomerMapper">
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.acct.CustomerMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。

View File

@@ -1,6 +1,6 @@
<?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="cn.iocoder.yudao.module.lgst.dal.mysql.drivingaccount.DrivingAccountMapper">
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.acct.DrivingAccountMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。

View File

@@ -0,0 +1,80 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.crAchi.CollaborationCarArchiveMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="selectPageWithCarArchive"
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.crAchi.vo.CollaborationCarArchiveRespVO">
SELECT
cca.id AS id,
cca.cr_id AS carId,
cca.dept_id AS deptId,
cca.creator AS creator,
cca.create_time AS createTime,
cca.updater AS updater,
cca.update_time AS updateTime,
cca.deleted AS deleted,
cca.tenant_id AS tenantId,
ca.CR_NUM as carNumber,
ca.CR_NUM_CLR as carNumberColor,
ca.ACHI_NUM as archiveNumber,
ca.CR_LBL as carLabel,
ca.CORR_TRLR as correlationTrailer,
ca.IS_BLK as isBlacklist,
ca.CR_CLR as carColor,
ca.EMS_PHSE as emissionPhase,
ca.FUEL_TP as fuelType,
ca.CR_AX_CNT as carAxisCount,
ca.CR_OWNR as carOwner,
ca.VIN as vin,
ca.ENG_NUM as engineNumber,
ca.USE_NTR as useNature,
ca.CR_TP as carType,
ca.BRAD_MDL as brandModel,
ca.TOT_QLT as totalQuality,
ca.ASMT_LOD_QLT as assessmentLoadingQuality,
ca.PRP_QLT as preparationQuality,
ca.LEN as length,
ca.WDTH as width,
ca.HGT as height,
ca.REG_TM as registryTime,
ca.CRTF_ISSU_TM as certificateIssuingTime,
ca.CRTF_ISSU_AGC as certificateIssuingAgency
FROM lgst_coll_cr_achi cca
LEFT JOIN lgst_cr_achi ca ON ca.id = cca.cr_id
<where>
cca.DELETED = 0 and ca.DELETED = 0
<if test="reqVO.carId != null">
AND cca.cr_id = #{reqVO.carId}
</if>
<if test="reqVO.deptId != null">
AND csa.dept_id = #{reqVO.deptId}
</if>
<if test="reqVO.carNumber != null and reqVO.carNumber != ''">
AND ca.CR_NUM = #{reqVO.carNumber}
</if>
<if test="reqVO.archiveNumber != null and reqVO.archiveNumber != ''">
AND ca.ACHI_NUM = #{reqVO.archiveNumber}
</if>
<if test="reqVO.carLabel != null and reqVO.carLabel != ''">
AND ca.CR_LBL = #{reqVO.carLabel}
</if>
<if test="reqVO.isBlacklist != null and reqVO.isBlacklist != ''">
AND ca.IS_BLK = #{reqVO.isBlacklist}
</if>
<if test="reqVO.carType != null and reqVO.carType != ''">
AND ca.CR_TP = #{reqVO.carType}
</if>
</where>
ORDER BY cca.create_time DESC
</select>
</mapper>

View File

@@ -1,6 +1,6 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.rlwyMtrl.RlwyMtrlMainMapper">
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.env.EnvironmentalIntoMainMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。

View File

@@ -0,0 +1,18 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.env.EnvironmentalIntoSubitemMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="checkMaterialExists" resultType="java.lang.Integer">
select count(1) from lgst_env_into_sub s
left join lgst_env_into_main m on s.main_id = m.id
where s.deleted = 0 and s.mtrl_id = #{materialId}
and M.deleted = 0 and m.BSN_TP = #{businessType}
</select>
</mapper>

View File

@@ -0,0 +1,40 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.myDriver.MyDriverMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="selectPage"
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.myDriver.vo.MyDriverRespVO">
select cd.ID, CD.USUAL_CAR as usualCar, da.STS as status, da.VLDT_STS as validationStatus, da.IS_ENB as isEnable, da.LOGIN_ACCT as loginAccount, da.LOGIN_TEL as loginTel, da.NAME as name,
da.IDTY_NUM as identityNumber, da.IDTY_EXPY_STRT as identityExpiryStart, da.IDTY_EXPY_END as identityExpiryEnd, da.IS_PMNT_IDTY as isPermanentlyIdentity, da.DRVG_TP as drivingType, da.IDTY_REG_AGC as idtyRegistrationAgency,
da.DRVG_REG_AGC as drvgRegistrationAgency, da.DRVG_EXPY_STRT as drivingExpiryStart, da.DRVG_EXPY_END as drivingExpiryEnd, da.IS_PMNT_DRVG as isPermanentlyDriving, da.DOC_NO as documentNo, da.MAJ_QLF_NO as majorQualificationNo,
da.ORGN as origin, cd.CREATOR_NAME as creatorName, da.CREATE_TIME as createTime, da.UPDATER_NAME as updaterName, da.UPDATE_TIME as updateTime
from LGST_CSTM_DRVG cd
left join LGST_DRVG_ACCT da on cd.DRVG_ID=da.ID
where cd.DELETED=0 and cd.CSTM_ID=#{reqVO.loginUserId}
<if test="reqVO.loginTel != null and reqVO.loginTel !=''">
and da.LOGIN_TEL like '%' || #{reqVO.loginTel} || '%'
</if>
<if test="reqVO.name != null and reqVO.name !=''">
and da.NAME like '%' || #{reqVO.name} || '%'
</if>
<if test="reqVO.drivingType != null and reqVO.drivingType !=''">
and da.DRVG_TP=#{reqVO.drivingType}
</if>
<if test="reqVO.status != null and reqVO.status !=''">
and da.STS=#{reqVO.status}
</if>
<if test="reqVO.isEnable != null and reqVO.isEnable !=''">
and da.IS_ENB=#{reqVO.isEnable}
</if>
<if test="reqVO.validationStatus != null and reqVO.validationStatus !=''">
and da.VLDT_STS=#{reqVO.validationStatus}
</if>
</select>
</mapper>

View File

@@ -0,0 +1,34 @@
<?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="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.myWrh.MyWrhMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="selectPage"
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.myWrh.vo.MyWrhRespVO">
select mw.ID, mw.CREATOR_NAME as creatorName, mw.CREATE_TIME as createTime, mw.UPDATER_NAME as updaterName, mw.UPDATE_TIME as updateTime,
w.WRH_NAME as warehouseName, w.WRH_CDG as warehouseCoding, w.WRH_TP as warehouseType, w.CORR_FACT as correlationFactory,
w.CORR_FACT_ID as correlationFactoryId, w.WRH_NTR as warehouseNature, w.IS_FRN as isForeign, w.FRN_ARE as foreignArea,
w.STA as state, w.MUN as municipality, w.INTL_ARE as internalArea, w.LNG as longitude, w.LAT as latitude, w.ADR as address
from LGST_MY_WRH mw
left join LGST_WRH w on mw.WRH_ID=w.ID
where mw.DELETED=0 and mw.CSTM_ID=#{reqVO.loginUserId}
<if test="reqVO.warehouseName != null and reqVO.warehouseName !=''">
and w.WRH_NAME like '%' || #{reqVO.warehouseName} || '%'
</if>
<if test="reqVO.state != null and reqVO.state !=''">
and w.STA like '%' || #{reqVO.state} || '%'
</if>
<if test="reqVO.municipality != null and reqVO.municipality !=''">
and w.MUN like '%' || #{reqVO.municipality} || '%'
</if>
<if test="reqVO.warehouseNature != null and reqVO.warehouseNature !=''">
and w.WRH_NTR=#{reqVO.warehouseNature}
</if>
</select>
</mapper>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.ForeignAreaMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
</mapper>

Some files were not shown because too many files have changed in this diff Show More