first commit

This commit is contained in:
陈现府
2025-11-20 10:45:16 +08:00
commit 8355431361
2643 changed files with 291314 additions and 0 deletions
@@ -0,0 +1,38 @@
server:
port: 8012
management:
metrics:
web:
server:
auto-time-requests: false # 关闭自动检测
spring:
application:
name: mhd-third-party-service
profiles:
active: dev
main:
allow-circular-references: true
# nacos配置
cloud:
nacos:
discovery:
#server-addr: 192.168.0.69:8848
server-addr: 127.0.0.1:8848
#server-addr: 116.204.23.92:8848
namespace: 4dd3256a-22c0-42db-9af1-de513a05c6a9
config:
# 配置中心地址
#server-addr: 192.168.0.69:8848
server-addr: 127.0.0.1:8848
#server-addr: 116.204.23.92:8848
# 锁定server端的配置文件(读取它的配置项)
namespace: 4dd3256a-22c0-42db-9af1-de513a05c6a9
group: DEFAULT_GROUP # 默认分组就是DEFAULT_GROUP,如果使用默认分组可以不配置
file-extension: yml #默认properties
servlet:
multipart:
max-file-size: 20MB
max-request-size: 20MB
@@ -0,0 +1,67 @@
<?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="com.linke.thirdParty.domain.departInterfaceInfo.repository.mapper.SysDepartInterfaceInfoMapper">
<update id="saveOrUpdate">
INSERT INTO sys_depart_interface_info (id,sys_org_code,interface_type,interface_type_key,interface_type_value,interface_type_name,create_by,create_time,update_by,update_time) VALUES
(
#{sysDepartInterfaceInfoVO.id},
#{sysDepartInterfaceInfoVO.sysOrgCode},
#{sysDepartInterfaceInfoVO.interfaceType},
#{sysDepartInterfaceInfoVO.interfaceTypeKey},
#{sysDepartInterfaceInfoVO.interfaceTypeValue},
#{sysDepartInterfaceInfoVO.interfaceTypeName},
#{sysDepartInterfaceInfoVO.interfaceTypeDescription},
#{sysDepartInterfaceInfoVO.createBy},
#{sysDepartInterfaceInfoVO.createTime},
#{sysDepartInterfaceInfoVO.updateBy},
#{sysDepartInterfaceInfoVO.updateTime}
)
ON DUPLICATE KEY UPDATE
id = #{sysDepartInterfaceInfoVO.id},
sys_org_code = #{sysDepartInterfaceInfoVO.sysOrgCode},
interface_type = #{sysDepartInterfaceInfoVO.interfaceType},
interface_type_key = #{sysDepartInterfaceInfoVO.interfaceTypeKey},
interface_type_value= #{sysDepartInterfaceInfoVO.interfaceTypeValue},
interface_type_name = #{sysDepartInterfaceInfoVO.interfaceTypeName},
interface_type_description = #{sysDepartInterfaceInfoVO.interfaceTypeDescription},
update_by = #{sysDepartInterfaceInfoVO.updateBy},
update_time = #{sysDepartInterfaceInfoVO.updateTime}
</update>
<select id="queryList" parameterType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo"
resultType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo">
select * from
sys_depart_interface_info a
where a.del_flag = 1
<include refid="common_where"></include>
order by a.create_time desc,a.interface_type DESC
</select>
<select id="queryListBySysOrgCode" resultType="com.mhd.common.core.domain.po.thirdparty.SysDepartInterfaceInfoPo">
SELECT a.* FROM sys_depart_interface_info a WHERE
a.interface_type = 'networkFreight' and a.sys_org_code = #{sysOrgCode}
</select>
<sql id="common_where">
<if test="sysDepartInterfaceInfoDo.topOrganizationId !=null">
and a.top_organization_id = #{sysDepartInterfaceInfoDo.topOrganizationId}
</if>
<if test="sysDepartInterfaceInfoDo.organizationId !=null">
and a.organization_id = #{sysDepartInterfaceInfoDo.organizationId}
</if>
<if test="sysDepartInterfaceInfoDo.sysDepartInterfaceInfoId !=null">
and a.sys_departInterface_info_id = #{sysDepartInterfaceInfoDo.sysDepartInterfaceInfoId}
</if>
<if test="null != sysDepartInterfaceInfoDo.interfaceType and '' != sysDepartInterfaceInfoDo.interfaceType">
and a.interface_type = #{sysDepartInterfaceInfoDo.interfaceType}
</if>
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeKey and '' != sysDepartInterfaceInfoDo.interfaceTypeKey">
and interface_type_key = #{sysDepartInterfaceInfoDo.interfaceTypeKey}
</if>
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeValue and '' != sysDepartInterfaceInfoDo.interfaceTypeValue">
and interface_type_value = #{sysDepartInterfaceInfoDo.interfaceTypeValue}
</if>
<if test="null != sysDepartInterfaceInfoDo.interfaceTypeName and '' != sysDepartInterfaceInfoDo.interfaceTypeName">
and interface_type_name = #{sysDepartInterfaceInfoDo.interfaceTypeName}
</if>
</sql>
</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="com.linke.thirdParty.domain.sms.repository.mapper.SysSendsmsNumMapper">
<resultMap id="BaseResultMap" type="com.linke.thirdParty.domain.sms.entity.SysSendsmsNum" >
<result column="sys_sendsms_num_id" property="sysSendsmsNumId" />
<result column="user_id" property="userId" />
<result column="create_time" property="createTime" />
<result column="create_by" property="createBy" />
<result column="update_time" property="updateTime" />
<result column="update_by" property="updateBy" />
<result column="del_flag" property="delFlag" />
<result column="phone" property="phone" />
<result column="ip" property="ip" />
<result column="captcha" property="captcha" />
</resultMap>
<sql id="Base_Column_List">
sys_sendsms_num_id,
user_id,
create_time,
create_by,
update_time,
update_by,
del_flag,
phone,
ip,
captcha
</sql>
<delete id="delete" >
DELETE FROM sys_sendsms_num
WHERE id = #{id}
</delete>
<update id="update" parameterType="com.linke.thirdParty.domain.sms.entity.SysSendsmsNum">
UPDATE sys_sendsms_num
<set>
<if test="null != sysSendsmsNumId and '' != sysSendsmsNumId">sys_sendsms_num_id = #{sysSendsmsNumId},</if>
<if test="null != userId and '' != userId">user_id = #{userId},</if>
<if test="null != createTime and '' != createTime">create_time = #{createTime},</if>
<if test="null != createBy and '' != createBy">create_by = #{createBy},</if>
<if test="null != updateTime and '' != updateTime">update_time = #{updateTime},</if>
<if test="null != updateBy and '' != updateBy">update_by = #{updateBy},</if>
<if test="null != delFlag and '' != delFlag">del_flag = #{delFlag},</if>
<if test="null != phone and '' != phone">phone = #{phone},</if>
<if test="null != ip and '' != ip">ip = #{ip},</if>
<if test="null != captcha and '' != captcha">captcha = #{captcha}</if>
</set>
WHERE id = #{id}
</update>
<select id="queryList" parameterType="java.lang.String" resultType="com.linke.thirdParty.domain.sms.repository.po.SysSendsmsNumPo">
select * from
tms_sendsms_num a
where a.del_falg = 1
<include refid="common_where"></include>
order by a.create_time desc
</select>
<sql id="common_where">
<if test="sysSendsmsNumDo.sysSendsmsNumId !=null and sysSendsmsNumDo.sysSendsmsNumId != ''"> and a.id = {tmsSendsmsNumDTO.id </if>
<if test="sysSendsmsNumDo.createBy !=null and sysSendsmsNumDo.createBy != ''"> and a.create_by = tmsSendsmsNumDTO.createBy </if>
<if test="sysSendsmsNumDo.createTime!=null and sysSendsmsNumDo.createTime!=''">
and STR_TO_DATE(a.create_time, '%Y-%m-%d') &lt;= tmsSendsmsNumDTO.createTime
</if>
<!--<if test="tmsSendsmsNumDTO.info!=null and tmsSendsmsNumDTO.info!=''">
and (instr(a.id ,tmsSendsmsNumDTO.info) > 0 or instr(a.create_by ,tmsSendsmsNumDTO.info) > 0 )
</if>-->
</sql>
</mapper>
@@ -0,0 +1,42 @@
<?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="com.linke.thirdParty.domain.thridCall.repository.mapper.ThridCallMapper">
<resultMap type="com.linke.thirdParty.domain.thridCall.repository.po.ThridCallPO" id="ThridCallResult">
<result property="thridCallId" column="thrid_call_id" />
<result property="callType" column="call_type" />
<result property="callMethod" column="call_method" />
<result property="callParam" column="call_param" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
<result property="updateBy" column="update_by" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectThridCallPo">
select thrid_call_id, call_type, call_method, call_param, create_by, create_time, update_time, update_by, del_flag from thrid_call
</sql>
<sql id="selectThridCallPo1">
<where>
<if test="callType != null ">
and call_type = #{callType}
</if>
<if test="callMethod != null and callMethod != ''">
and call_method = #{callMethod}
</if>
<if test="callParam != null and callParam != ''">
and call_param = #{callParam}
</if>
</where>
</sql>
<select id="queryList" parameterType="com.linke.thirdParty.domain.thridCall.repository.todo.ThridCallDO" resultMap="ThridCallResult">
<include refid="selectThridCallPo"/>
<include refid="selectThridCallPo1"/>
</select>
</mapper>
@@ -0,0 +1,119 @@
<?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="com.linke.thirdParty.domain.tuanyou.mapper.TmsDriverOilMapper">
<select id="queryList" parameterType="java.lang.String" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverOilVO">
select
a.id,a.driver_id,a.oil_card_no,a.oil_info,a.oil_monery,d.driver_name as driverInfoName,
(case a.oil_static
when 0 then '开卡失败' when '1' then '开卡成功'
end) as oil_static_tips,a.oil_static
,a.status,a.is_deleted,a.create_time,a.create_by,a.user_phone
from
tms_driver_oil a
Left join tms_driver d
on a.id = d.id
where a.is_deleted = 0 and a.status = 1
<include refid="query_where"></include>
order by a.create_time desc
</select>
<select id="queryByIds" parameterType="java.lang.String" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverVO">
select
b.driver_name,
b.phone
from
tms_driver b
where
b.driver_id in
<foreach item="id" collection="list" open="(" separator="," close=")">
#{id}
</foreach>
</select>
<select id="queryByIdsId" parameterType="java.lang.String" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverVO">
select
b.driver_name,
b.phone
from
tms_driver b
where
b.id in
<foreach item="id" collection="list" open="(" separator="," close=")">
#{id}
</foreach>
</select>
<sql id="query_where">
<if test="tmsDriverOilDTO.oilStatic !=null and tmsDriverOilDTO.oilStatic != ''">
and a.oil_static = #{tmsDriverOilDTO.oilStatic}
</if>
<if test="tmsDriverOilDTO.driverInfoName !=null and tmsDriverOilDTO.driverInfoName != ''">
and ( d.driver_name LIKE CONCAT('%',#{tmsDriverOilDTO.driverInfoName},'%')
or a.user_phone LIKE CONCAT('%',#{tmsDriverOilDTO.driverInfoName},'%')
or d.vehicle_license_number LIKE CONCAT('%',#{tmsDriverOilDTO.driverInfoName},'%')
)
</if>
<if test="tmsDriverOilDTO.oilCardNo !=null and tmsDriverOilDTO.oilCardNo != ''">
and a.oil_card_no LIKE CONCAT('%',#{tmsDriverOilDTO.oilCardNo},'%')
</if>
<if test="tmsDriverOilDTO.userPhone !=null and tmsDriverOilDTO.userPhone != ''">
and a.user_phone LIKE CONCAT('%',#{tmsDriverOilDTO.userPhone},'%')
</if>
</sql>
<sql id="common_where">
<if test="tmsDriverOilDTO.id !=null and tmsDriverOilDTO.id != ''"> and a.id = tmsDriverOilDTO.id </if>
<if test="tmsDriverOilDTO.createBy !=null and tmsDriverOilDTO.createBy != ''"> and a.create_by = tmsDriverOilDTO.createBy </if>
<if test="tmsDriverOilDTO.createTime!=null and tmsDriverOilDTO.createTime!=''">
and STR_TO_DATE(a.create_time, '%Y-%m-%d') &lt;= tmsDriverOilDTO.createTime
</if>
<!--<if test="tmsDriverOilDTO.info!=null and tmsDriverOilDTO.info!=''">
and (instr(a.id ,tmsDriverOilDTO.info) > 0 or instr(a.create_by ,tmsDriverOilDTO.info) > 0 )
</if>-->
</sql>
<select id="queryOilById" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverOilVO"
parameterType="java.lang.String">
select * from tms_driver_oil where id = #{id}
</select>
<select id="queryOilByDriverId" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverOilVO"
parameterType="java.lang.String">
select * from tms_driver_oil where driver_id = #{id}
</select>
<select id="queryById" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverVO"
parameterType="java.lang.String">
select * from tms_driver where driver_id = #{id}
</select>
<select id="queryByIdId" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsDriverVO"
parameterType="java.lang.String">
select * from tms_driver where id = #{id}
</select>
<insert id="insertOrderOil" parameterType="com.linke.thirdParty.interfaces.dto.tuanyou.TmsDriverOilDTO">
insert into tms_driver_oil(id,oil_info,oil_monery,oil_static,status,is_deleted,create_time)
value(#{tmsDriverOilDTO.id},#{tmsDriverOilDTO.oilInfo},#{tmsDriverOilDTO.oilMonery},#{tmsDriverOilDTO.oilStatic},1,0,#{tmsDriverOilDTO.createTime});
</insert>
<update id="updateQueryById" parameterType="java.lang.String">
update tms_driver set is_opencard = 1 where id = #{id}
</update>
<update id="updateQueryByIdFalse" parameterType="java.lang.String">
update tms_driver set is_opencard = 2 where id = #{id}
</update>
<select id="orderTmsDriverOilRecord" parameterType="java.lang.String" resultType="com.linke.thirdParty.interfaces.vo.tuanyou.TmsExpenseRecordVO">
select
*
from
tms_expense_record a
left join tms_transport_note b on a.waybill_id = b.id
left join tms_driver d on b.transportation_driver_id = d.id
where a.is_delete = 0 and a.id = #{id}
order by a.create_time desc ,a.id desc
</select>
</mapper>
@@ -0,0 +1,48 @@
<?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="com.linke.thirdParty.domain.userAuthEsign.repository.mapper.UserAuthEsignMapper">
<sql id="selectUserAuthEsignPo">
select user_auth_esign_id, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag, top_organization_id, organization_id, organization_name, user_id, authorizationSignShortUrl, authorizationSignUrl, sealAuthBizIds from user_auth_esign
</sql>
<sql id="selectUserAuthEsignPo1">
<where>
<if test="createByName != null and createByName != ''">
and create_by_name like concat('%', #{createByName}, '%')
</if>
<if test="updateByName != null and updateByName != ''">
and update_by_name like concat('%', #{updateByName}, '%')
</if>
<if test="topOrganizationId != null ">
and top_organization_id = #{topOrganizationId}
</if>
<if test="organizationId != null ">
and organization_id = #{organizationId}
</if>
<if test="organizationName != null and organizationName != ''">
and organization_name like concat('%', #{organizationName}, '%')
</if>
<if test="userId != null ">
and user_id = #{userId}
</if>
<if test="authorizationsignshorturl != null and authorizationsignshorturl != ''">
and authorizationSignShortUrl = #{authorizationsignshorturl}
</if>
<if test="authorizationsignurl != null and authorizationsignurl != ''">
and authorizationSignUrl = #{authorizationsignurl}
</if>
<if test="sealauthbizids != null and sealauthbizids != ''">
and sealAuthBizIds = #{sealauthbizids}
</if>
</where>
</sql>
<select id="queryList" parameterType="com.linke.thirdParty.domain.userAuthEsign.repository.todo.UserAuthEsignDO">
<include refid="selectUserAuthEsignPo"/>
<include refid="selectUserAuthEsignPo1"/>
</select>
</mapper>