同步物流业务代码
This commit is contained in:
@@ -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 增删改查即可。
|
||||
|
||||
@@ -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>
|
||||
@@ -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 增删改查即可。
|
||||
|
||||
@@ -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 增删改查即可。
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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 增删改查即可。
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -9,4 +9,18 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="getByNameOrCode"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.GateConfigDO">
|
||||
SELECT * FROM LGST_GTE_CFG
|
||||
WHERE DELETED = 0
|
||||
<if test="gateName != null and gateName !=''">
|
||||
AND GTE_NAME = #{gateName}
|
||||
</if>
|
||||
<if test="gateCoding != null and gateCoding !=''">
|
||||
AND GTE_CDG = #{gateCoding}
|
||||
</if>
|
||||
<if test="id != null">
|
||||
AND id != #{id}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?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.plceAchi.GeofenceMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
<select id="queryFactoryTree" resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryTreeRespVO">
|
||||
SELECT ID, NULL AS CODE, NAME, PARENT_ID, SORT, 1 AS IS_COMPANY
|
||||
FROM SYSTEM_DEPT
|
||||
WHERE status = 0 AND deleted = 0 AND is_company = 1
|
||||
START WITH ID = #{loginUserCompanyId}
|
||||
CONNECT BY PRIOR ID = PARENT_ID
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT F.ID, F.FACT_CDG AS CODE, F.FACT_NAME AS NAME, F.COMPANY_ID AS PARENT_ID, 0 AS SORT, 0 AS IS_COMPANY
|
||||
FROM LGST_FACT f
|
||||
JOIN (
|
||||
SELECT ID, NAME, PARENT_ID
|
||||
FROM SYSTEM_DEPT
|
||||
WHERE status = 0 AND deleted = 0 AND is_company = 1
|
||||
START WITH ID = #{loginUserCompanyId}
|
||||
CONNECT BY PRIOR ID = PARENT_ID
|
||||
) c ON f.company_id = c.ID
|
||||
WHERE F.deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -9,4 +9,13 @@
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="getByMaterialId"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PlaceArchiveMaterialDO">
|
||||
SELECT * FROM LGST_PLCE_ACHI_MTRL
|
||||
WHERE DELETED = 0
|
||||
AND PLCE_TP = #{placeType} AND MTRL_ID = #{materialId}
|
||||
<if test="companyId != null">
|
||||
AND COMPANY_ID = #{companyId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,176 @@
|
||||
<?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.mtrl.MaterialExpandMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="selectPage2"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MaterialExpandRespVO">
|
||||
SELECT
|
||||
LMX.ID AS id,
|
||||
MI.ID AS materialId,
|
||||
MI.CD AS materialCode,
|
||||
MI.NAME AS materialName,
|
||||
MI.RMK AS description,
|
||||
LMX.INSP_FLG AS inspectionFlag,
|
||||
LMX.MTNG_FLG AS meteringFlag,
|
||||
LMX.SPLG_NDE AS samplingNode,
|
||||
MHC.CLS_ID AS classesId
|
||||
from BSE_MTRL_INF MI
|
||||
LEFT JOIN BSE_MTRL_HS_CLS MHC ON MI.ID = MHC.INF_ID
|
||||
LEFT JOIN LGST_MTRL_XPD LMX ON MI.ID = LMX.MTRL_ID
|
||||
<where>
|
||||
<if test="reqVO.classesIds != null">
|
||||
AND MHC.CLS_ID IN
|
||||
<foreach item="item" index="index" collection="reqVO.classesIds" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="reqVO.companyId != null">
|
||||
AND LMX.COMPANY_ID = #{reqVO.companyId}
|
||||
</if>
|
||||
<if test="reqVO.deptId != null">
|
||||
AND LMX.DEPT_ID = #{reqVO.deptId}
|
||||
</if>
|
||||
<if test="reqVO.materialName != null and reqVO.materialName != ''">
|
||||
AND MI.NAME LIKE CONCAT('%', #{reqVO.materialName}, '%')
|
||||
</if>
|
||||
<if test="reqVO.mdmCode != null and reqVO.mdmCode != ''">
|
||||
AND MI.CD = #{reqVO.mdmCode}
|
||||
</if>
|
||||
<if test="reqVO.sapCode != null and reqVO.sapCode != ''">
|
||||
AND MI.SAP_CD = #{reqVO.sapCode}
|
||||
</if>
|
||||
<if test="reqVO.description != null and reqVO.description != ''">
|
||||
AND MI.RMK LIKE CONCAT('%', #{reqVO.description}, '%')
|
||||
</if>
|
||||
<if test="reqVO.meteringFlag != null and reqVO.meteringFlag != ''">
|
||||
AND LMX.MTNG_FLG = #{reqVO.meteringFlag}
|
||||
</if>
|
||||
<if test="reqVO.inspectionFlag != null and reqVO.inspectionFlag != ''">
|
||||
AND LMX.INSP_FLG = #{reqVO.inspectionFlag}
|
||||
</if>
|
||||
<if test="reqVO.excludeSql != null">
|
||||
${reqVO.excludeSql}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
<select id="selectByMaterialId"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.mtrl.MaterialExpandDO">
|
||||
select * from LGST_MTRL_XPD where MTRL_ID = #{materialId}
|
||||
</select>
|
||||
<select id="selectMaterialClasses2" resultType="cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.mtrl.ClassesDO">
|
||||
SELECT id,
|
||||
PRN_ID as parentId,
|
||||
CD as code,
|
||||
NAME as name,
|
||||
LVL as level
|
||||
FROM BSE_MTRL_CLS
|
||||
WHERE ID = #{classesId}
|
||||
</select>
|
||||
<select id="selectMaterialClasses"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MaterialExpandRespVO"
|
||||
flushCache="true"
|
||||
useCache="false">
|
||||
WITH material_class_hierarchy (
|
||||
material_id, class_level, class_id, class_code, class_name, parent_id, hierarchy_level
|
||||
) AS (
|
||||
SELECT mi.ID as material_id,
|
||||
mc.LVL as class_level,
|
||||
mc.ID as class_id,
|
||||
mc.CD as class_code,
|
||||
mc.NAME as class_name,
|
||||
mc.PRN_ID as parent_id,
|
||||
1 as hierarchy_level
|
||||
FROM BSE_MTRL_INF mi
|
||||
LEFT JOIN BSE_MTRL_HS_CLS mhc ON mi.ID = mhc.INF_ID
|
||||
LEFT JOIN BSE_MTRL_CLS mc ON mhc.CLS_ID = mc.ID AND mc.DELETED = 0
|
||||
WHERE mi.id IS NOT NULL
|
||||
<if test="materialIds != null and materialIds.size() > 0">
|
||||
AND mi.ID IN
|
||||
<foreach item="item" index="index" collection="materialIds" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT mch.material_id,
|
||||
mc.LVL as class_level,
|
||||
mc.ID as class_id,
|
||||
mc.CD as class_code,
|
||||
mc.NAME as class_name,
|
||||
mc.PRN_ID as parent_id,
|
||||
mch.hierarchy_level + 1 as hierarchy_level
|
||||
FROM material_class_hierarchy mch
|
||||
JOIN BSE_MTRL_CLS mc ON mch.parent_id = mc.id AND mc.DELETED = 0
|
||||
WHERE mch.parent_id IS NOT NULL)
|
||||
SELECT material_id AS materialId,
|
||||
MAX(CASE WHEN hierarchy_level = 1 THEN class_code END) as bigTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 1 THEN class_name END) as bigTypeName,
|
||||
MAX(CASE WHEN hierarchy_level = 2 THEN class_code END) as midTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 2 THEN class_name END) as midTypeName,
|
||||
MAX(CASE WHEN hierarchy_level = 3 THEN class_code END) as smalTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 3 THEN class_name END) as smalTypeName
|
||||
FROM material_class_hierarchy
|
||||
GROUP BY material_id
|
||||
ORDER BY material_id;
|
||||
</select>
|
||||
<select id="selectMaterialList"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MaterialExpandRespVO">
|
||||
SELECT
|
||||
LMX.ID AS id,
|
||||
MI.ID AS materialId,
|
||||
MI.CD AS materialCode,
|
||||
MI.NAME AS materialName,
|
||||
MI.RMK AS description,
|
||||
LMX.INSP_FLG AS inspectionFlag,
|
||||
LMX.MTNG_FLG AS meteringFlag,
|
||||
LMX.SPLG_NDE AS samplingNode,
|
||||
MHC.CLS_ID AS classesId
|
||||
from BSE_MTRL_INF MI
|
||||
LEFT JOIN BSE_MTRL_HS_CLS MHC ON MI.ID = MHC.INF_ID
|
||||
LEFT JOIN LGST_MTRL_XPD LMX ON MI.ID = LMX.MTRL_ID
|
||||
<where>
|
||||
<if test="reqVO.classesIds != null">
|
||||
AND MHC.CLS_ID IN
|
||||
<foreach item="item" index="index" collection="reqVO.classesIds" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="reqVO.companyId != null">
|
||||
AND LMX.COMPANY_ID = #{reqVO.companyId}
|
||||
</if>
|
||||
<if test="reqVO.deptId != null">
|
||||
AND LMX.DEPT_ID = #{reqVO.deptId}
|
||||
</if>
|
||||
<if test="reqVO.materialName != null and reqVO.materialName != ''">
|
||||
AND MI.NAME LIKE CONCAT('%', #{reqVO.materialName}, '%')
|
||||
</if>
|
||||
<if test="reqVO.mdmCode != null and reqVO.mdmCode != ''">
|
||||
AND MI.CD = #{reqVO.mdmCode}
|
||||
</if>
|
||||
<if test="reqVO.sapCode != null and reqVO.sapCode != ''">
|
||||
AND MI.SAP_CD = #{reqVO.sapCode}
|
||||
</if>
|
||||
<if test="reqVO.description != null and reqVO.description != ''">
|
||||
AND MI.RMK LIKE CONCAT('%', #{reqVO.description}, '%')
|
||||
</if>
|
||||
<if test="reqVO.meteringFlag != null and reqVO.meteringFlag != ''">
|
||||
AND LMX.MTNG_FLG = #{reqVO.meteringFlag}
|
||||
</if>
|
||||
<if test="reqVO.inspectionFlag != null and reqVO.inspectionFlag != ''">
|
||||
AND LMX.INSP_FLG = #{reqVO.inspectionFlag}
|
||||
</if>
|
||||
<if test="reqVO.excludeSql != null">
|
||||
${reqVO.excludeSql}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?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.RailwayMaterialMainMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="checkNameCode" resultType="java.lang.Integer">
|
||||
select count(1) from LGST_RLWY_MTRL_MAIN
|
||||
where deleted = 0 and NAME_CD = #{nameCode}
|
||||
and RLWY_TRP_NAME = #{railwayTransportName}
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -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.rlwyMtrl.RailwayMaterialSubitemMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 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_rlwy_mtrl_sub s
|
||||
LEFT JOIN lgst_rlwy_mtrl_main m ON s.main_id = m.id
|
||||
WHERE s.deleted = 0 AND s.mtrl_id = #{materialId}
|
||||
AND M.deleted = 0
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -1,87 +0,0 @@
|
||||
<?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.mtrl.MtrlXpdMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="selectPage2"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MtrlXpdRespVO">
|
||||
SELECT MI.ID AS materialId,
|
||||
MI.CD AS materialCode,
|
||||
MI.NAME AS materialName,
|
||||
MI.RMK AS description,
|
||||
LMX.INSP_FLG AS inspectionFlag,
|
||||
LMX.MTNG_FLG AS meteringFlag,
|
||||
LMX.SPLG_NDE AS samplingNode
|
||||
from MTRL_INF MI
|
||||
LEFT JOIN MTRL_HS_CLS MHC ON MI.ID = MHC.INF_ID
|
||||
LEFT JOIN LGST_MTRL_XPD LMX ON MI.ID = LMX.MTRL_ID
|
||||
<where>
|
||||
<if test="reqVO.classesId != null">
|
||||
AND MHC.CLS_ID = #{reqVO.classesId}
|
||||
</if>
|
||||
<if test="reqVO.deptId != null">
|
||||
AND LMX.DEPT_ID = #{reqVO.deptId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
<select id="selectByMaterialId"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.mtrl.MtrlXpdDO">
|
||||
select * from MTRL_XPD where MTRL_ID = #{materialId}
|
||||
</select>
|
||||
|
||||
<select id="selectMaterialClasses"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.mtrl.vo.MtrlXpdRespVO"
|
||||
flushCache="true"
|
||||
useCache="false">
|
||||
WITH material_class_hierarchy (
|
||||
material_id, class_level, class_id, class_code, class_name, parent_id, hierarchy_level
|
||||
) AS (
|
||||
SELECT mi.ID as material_id,
|
||||
mc.LVL as class_level,
|
||||
mc.ID as class_id,
|
||||
mc.CD as class_code,
|
||||
mc.NAME as class_name,
|
||||
mc.PRN_ID as parent_id,
|
||||
1 as hierarchy_level
|
||||
FROM "RUOYI-VUE-PRO".MTRL_INF mi
|
||||
LEFT JOIN "RUOYI-VUE-PRO".MTRL_HS_CLS mhc ON mi.ID = mhc.INF_ID
|
||||
LEFT JOIN "RUOYI-VUE-PRO".MTRL_CLS mc ON mhc.CLS_ID = mc.ID AND mc.DELETED = 0
|
||||
WHERE mi.id IS NOT NULL
|
||||
<if test="materialIds != null and materialIds.size() > 0">
|
||||
AND mi.ID IN
|
||||
<foreach item="item" index="index" collection="materialIds" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
UNION ALL
|
||||
|
||||
SELECT mch.material_id,
|
||||
mc.LVL as class_level,
|
||||
mc.ID as class_id,
|
||||
mc.CD as class_code,
|
||||
mc.NAME as class_name,
|
||||
mc.PRN_ID as parent_id,
|
||||
mch.hierarchy_level + 1 as hierarchy_level
|
||||
FROM material_class_hierarchy mch
|
||||
JOIN "RUOYI-VUE-PRO".MTRL_CLS mc ON mch.parent_id = mc.id AND mc.DELETED = 0
|
||||
WHERE mch.parent_id IS NOT NULL)
|
||||
SELECT material_id AS materialId,
|
||||
MAX(CASE WHEN hierarchy_level = 1 THEN class_code END) as bigTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 1 THEN class_name END) as bigTypeName,
|
||||
MAX(CASE WHEN hierarchy_level = 2 THEN class_code END) as midTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 2 THEN class_name END) as midTypeName,
|
||||
MAX(CASE WHEN hierarchy_level = 3 THEN class_code END) as smalTypeCode,
|
||||
MAX(CASE WHEN hierarchy_level = 3 THEN class_name END) as smalTypeName
|
||||
FROM material_class_hierarchy
|
||||
GROUP BY material_id
|
||||
ORDER BY material_id;
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -0,0 +1,74 @@
|
||||
<?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.shp.CollaborationShipArchiveMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
|
||||
<select id="selectPageWithShipArchive"
|
||||
resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.shp.vo.CollaborationShipArchiveRespVO">
|
||||
SELECT
|
||||
csa.id AS id,
|
||||
csa.shp_id AS shipId,
|
||||
csa.dept_id AS deptId,
|
||||
csa.creator AS creator,
|
||||
csa.create_time AS createTime,
|
||||
csa.updater AS updater,
|
||||
csa.update_time AS updateTime,
|
||||
csa.deleted AS deleted,
|
||||
csa.tenant_id AS tenantId,
|
||||
sa.IMO_CD as iMOCode,
|
||||
sa.SHP_CTGR as shipCategory,
|
||||
sa.SHP_CHS_NAME as shipChineseName,
|
||||
sa.SHP_EN_NAME as shipEnglishName,
|
||||
sa.SHP_TP as shipType,
|
||||
sa.SHP_LVL as shipLevel,
|
||||
sa.SHP_NTN as shipNation,
|
||||
sa.SHP_LEN as shipLength,
|
||||
sa.SHP_WDTH as shipWidth,
|
||||
sa.SHP_DPTH as shipDepth,
|
||||
sa.GRS_TON as grossTonnage,
|
||||
sa.NET_TON as netTonnage,
|
||||
sa.LOD_CTNR_QTY as loadingContainerQuantity,
|
||||
sa.SHP_DET_CD as shipDetectCode,
|
||||
sa.MMSI_CD as mMSICode,
|
||||
sa.PRT_OF_REG as portOfRegistry,
|
||||
sa.SPO as shipowner,
|
||||
sa.SPO_ADR as shipownerAddress,
|
||||
sa.CRTF_ISSU_TM as certificateIssuingTime,
|
||||
sa.CRTF_ISSU_AGC as certificateIssuingAgency
|
||||
FROM lgst_coll_shp_achi csa
|
||||
LEFT JOIN lgst_shp_achi sa ON sa.id = csa.shp_id
|
||||
<where>
|
||||
csa.DELETED = 0 and sa.DELETED = 0
|
||||
<if test="reqVO.shpId != null">
|
||||
AND csa.shp_id = #{reqVO.shpId}
|
||||
</if>
|
||||
<if test="reqVO.deptId != null">
|
||||
AND csa.dept_id = #{reqVO.deptId}
|
||||
</if>
|
||||
<if test="reqVO.iMOCode != null and reqVO.iMOCode != ''">
|
||||
AND sa.IMO_CD LIKE CONCAT('%', #{reqVO.iMOCode}, '%')
|
||||
</if>
|
||||
<if test="reqVO.shipName != null and reqVO.shipName != ''">
|
||||
AND (sa.SHP_CHS_NAME LIKE CONCAT('%', #{reqVO.archiveNumber}, '%') OR sa.SHP_EN_NAME LIKE CONCAT('%',#{reqVO.shipName}, '%'))
|
||||
</if>
|
||||
<if test="reqVO.shipowner != null and reqVO.shipowner != ''">
|
||||
AND sa.SPO = #{reqVO.shipowner}
|
||||
</if>
|
||||
<if test="reqVO.shipType != null and reqVO.shipType != ''">
|
||||
AND sa.SHP_TP LIKE CONCAT('%', #{reqVO.shipType}, '%')
|
||||
</if>
|
||||
<if test="reqVO.shipCategory != null and reqVO.shipCategory != ''">
|
||||
AND sa.SHP_CTGR = #{reqVO.shipCategory}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
<?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.common.CompanyMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
<select id="getTopCompany" resultType="cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO">
|
||||
select * from SYSTEM_DEPT where PARENT_ID =0 and status = 0 and deleted = 0 and is_company = 1
|
||||
</select>
|
||||
|
||||
<select id="getAllChildCompany" resultType="cn.iocoder.yudao.module.system.api.dept.dto.DeptRespDTO">
|
||||
SELECT *
|
||||
FROM SYSTEM_DEPT
|
||||
WHERE status = 0 AND deleted = 0 AND is_company = 1
|
||||
START WITH ID = #{companyId}
|
||||
CONNECT BY PRIOR ID = PARENT_ID
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -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.RlwyMtrlSubMapper">
|
||||
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.common.OperationLogMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
@@ -0,0 +1,39 @@
|
||||
<?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.common.SplyErpCustomerMapper">
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
<select id="seleErpCustomerPage" resultType="cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.common.vo.ErpCustomerRespVo">
|
||||
select id,
|
||||
num,
|
||||
name ,
|
||||
acct_grp accountGroup,
|
||||
dsp description,
|
||||
ctr_num centerNum,
|
||||
crt_dt createTime,
|
||||
rpr_dt updateTime
|
||||
from SPLY_ERP_CSTM
|
||||
<where>
|
||||
<if test="vo.num != null and vo.num !=''">
|
||||
and num like '%' || #{vo.num} || '%'
|
||||
</if>
|
||||
<if test="vo.name != null and vo.name !=''">
|
||||
and name like '%' || #{vo.name} || '%'
|
||||
</if>
|
||||
<if test="vo.accountGroup != null and vo.accountGroup !=''">
|
||||
and acct_grp like '%' || #{vo.accountGroup} || '%'
|
||||
</if>
|
||||
<if test="vo.description != null and vo.description !=''">
|
||||
and dsp like '%' || #{vo.description} || '%'
|
||||
</if>
|
||||
<if test="vo.centerNum != null and vo.centerNum !=''">
|
||||
and ctr_num like '%' || #{vo.centerNum} || '%'
|
||||
</if>
|
||||
</where>
|
||||
order by crt_dt desc
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user