2025年12月04日 1.0.9 不直接连接数据库,通过韩磊接口进行数据加密解密,并添加免费类型和审核状态查询条件
parent
9fc2c90c6d
commit
52d583e68d
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.alibaba:druid:1.1.20">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid/1.1.20/druid-1.1.20.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid/1.1.20/druid-1.1.20-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid/1.1.20/druid-1.1.20-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.alibaba:druid-spring-boot-starter:1.1.10">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid-spring-boot-starter/1.1.10/druid-spring-boot-starter-1.1.10.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid-spring-boot-starter/1.1.10/druid-spring-boot-starter-1.1.10-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/alibaba/druid-spring-boot-starter/1.1.10/druid-spring-boot-starter-1.1.10-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.github.yulichang:mybatis-plus-join:1.2.4">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/github/yulichang/mybatis-plus-join/1.2.4/mybatis-plus-join-1.2.4.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/github/yulichang/mybatis-plus-join/1.2.4/mybatis-plus-join-1.2.4-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/github/yulichang/mybatis-plus-join/1.2.4/mybatis-plus-join-1.2.4-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.microsoft:sqljdbc4:3.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/microsoft/sqljdbc4/3.0/sqljdbc4-3.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/microsoft/sqljdbc4/3.0/sqljdbc4-3.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/microsoft/sqljdbc4/3.0/sqljdbc4-3.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.ha:ons:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/ons/19.3.0.0/ons-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/ons/19.3.0.0/ons-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/ons/19.3.0.0/ons-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.jdbc:ojdbc8:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ojdbc8/19.3.0.0/ojdbc8-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ojdbc8/19.3.0.0/ojdbc8-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ojdbc8/19.3.0.0/ojdbc8-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.jdbc:ucp:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ucp/19.3.0.0/ucp-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ucp/19.3.0.0/ucp-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/jdbc/ucp/19.3.0.0/ucp-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.security:oraclepki:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/oraclepki/19.3.0.0/oraclepki-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/oraclepki/19.3.0.0/oraclepki-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/oraclepki/19.3.0.0/oraclepki-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.security:osdt_cert:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_cert/19.3.0.0/osdt_cert-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_cert/19.3.0.0/osdt_cert-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_cert/19.3.0.0/osdt_cert-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.security:osdt_core:19.3.0.0">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_core/19.3.0.0/osdt_core-19.3.0.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_core/19.3.0.0/osdt_core-19.3.0.0-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/security/osdt_core/19.3.0.0/osdt_core-19.3.0.0-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: mysql:mysql-connector-java:8.0.22">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/mysql/mysql-connector-java/8.0.22/mysql-connector-java-8.0.22-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,13 +1,13 @@
|
||||
<component name="libraryTable">
|
||||
<library name="Maven: com.oracle.database.ha:simplefan:19.3.0.0">
|
||||
<library name="Maven: org.bouncycastle:bcprov-jdk18on:1.78.1">
|
||||
<CLASSES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/simplefan/19.3.0.0/simplefan-19.3.0.0.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/simplefan/19.3.0.0/simplefan-19.3.0.0-javadoc.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1-javadoc.jar!/" />
|
||||
</JAVADOC>
|
||||
<SOURCES>
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/com/oracle/database/ha/simplefan/19.3.0.0/simplefan-19.3.0.0-sources.jar!/" />
|
||||
<root url="jar://$PROJECT_DIR$/../../../../Maven/repository/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</component>
|
||||
@ -1,34 +0,0 @@
|
||||
package com.nmgs.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
||||
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.ThreadPoolExecutor;
|
||||
|
||||
@Configuration
|
||||
@EnableAsync
|
||||
public class ThreadPoolConfig {
|
||||
|
||||
@Bean("WhiteListManagerSysThreadPool") //线程池实例名,多个线程池配置需要声明,一个线程池可有可无
|
||||
public Executor executorNormal() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
executor.setCorePoolSize(3);
|
||||
executor.setMaxPoolSize(5);
|
||||
executor.setQueueCapacity(3);
|
||||
executor.setKeepAliveSeconds(60);
|
||||
executor.setThreadNamePrefix("NORMAL--");
|
||||
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.AbortPolicy());
|
||||
executor.initialize();
|
||||
return executor;
|
||||
}
|
||||
@Bean
|
||||
public ThreadPoolTaskScheduler threadPoolTaskScheduler() {
|
||||
ThreadPoolTaskScheduler ThreadPoolTaskScheduler = new ThreadPoolTaskScheduler();
|
||||
// ThreadPoolTaskScheduler.initialize();
|
||||
return ThreadPoolTaskScheduler;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package com.nmgs.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年08月20日 9:22
|
||||
* @description: 封装密钥和加密数据
|
||||
*/
|
||||
@Data
|
||||
public class ResData {
|
||||
/**
|
||||
* 密钥
|
||||
*/
|
||||
private String key;
|
||||
/**
|
||||
* 加密后的数据
|
||||
*/
|
||||
private String data;
|
||||
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.ATtypeText;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年10月27日 23:02
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface ATtypeTextMapper extends BaseMapper<ATtypeText> {
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.FreeTypeText;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年10月27日 17:17
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface FreeTypeTextMapper extends BaseMapper<FreeTypeText> {
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.TypeText;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年10月13日 14:08
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface TypeTextMapper extends BaseMapper<TypeText> {
|
||||
}
|
||||
@ -1,23 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Repository
|
||||
@Mapper
|
||||
public interface UnBindMapper{
|
||||
|
||||
Page<Map<String, Object>> getPage(Page<Map<String, Object>> page,@Param("params") Map<String, Object> params);
|
||||
|
||||
int deleteData(Map<String, Object> params);
|
||||
|
||||
List<Map<String, Object>> getWXCarColorList();
|
||||
List<Map<String, Object>> getWXCarTypeList();
|
||||
|
||||
int crossData(Map<String, Object> params);
|
||||
}
|
||||
@ -1,61 +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="com.nmgs.mapper.UnBindMapper">
|
||||
<select id="getPage" resultType="java.util.Map">
|
||||
SELECT a.vehicleid,
|
||||
a.vehiclecolor,
|
||||
a.wxid,
|
||||
c.wxname,
|
||||
a.ismanager,
|
||||
b.vehicletype,
|
||||
b.phoneNumber,
|
||||
b.freetype,
|
||||
b.freeStartTime,
|
||||
b.freeEndTime
|
||||
FROM wx_vehiclewx_bind a
|
||||
LEFT JOIN wx_vehiclebind b ON a.vehicleid = b.vehicleid
|
||||
AND a.vehiclecolor = b.vehiclecolor
|
||||
LEFT JOIN wx_vehiclewxdata c ON a.wxid = c.wxid
|
||||
<where>
|
||||
<if test="params.wxname!=null and params.wxname!=''">
|
||||
<bind name="wxname" value="'%'+params.wxname+'%'"/>
|
||||
and c.wxname like #{wxname}
|
||||
</if>
|
||||
<if test="params.vehicleid!=null and params.vehicleid!=''">
|
||||
<bind name="vehicleid" value="'%'+params.vehicleid+'%'"/>
|
||||
and a.vehicleid like #{vehicleid}
|
||||
</if>
|
||||
<if test="params.vehiclecolor!=null ">
|
||||
and a.vehiclecolor = #{params.vehiclecolor}
|
||||
</if>
|
||||
<if test="params.ismanager!=null ">
|
||||
and a.ismanager = #{params.ismanager}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getWXCarColorList" resultType="java.util.Map">
|
||||
SELECT *
|
||||
FROM atype_text
|
||||
</select>
|
||||
<select id="getWXCarTypeList" resultType="java.util.Map">
|
||||
SELECT *
|
||||
FROM type_text
|
||||
</select>
|
||||
<delete id="deleteData">
|
||||
DELETE
|
||||
FROM wx_vehiclewx_bind
|
||||
WHERE vehicleid = #{vehicleid}
|
||||
AND vehiclecolor = #{vehiclecolor}
|
||||
AND ismanager = #{ismanager}
|
||||
AND wxid = #{wxid}
|
||||
</delete>
|
||||
<update id="crossData">
|
||||
update wx_vehiclewx_bind set ismanager= 0
|
||||
WHERE vehicleid = #{vehicleid}
|
||||
AND vehiclecolor = #{vehiclecolor}
|
||||
AND ismanager = #{ismanager}
|
||||
AND wxid = #{wxid}
|
||||
</update>
|
||||
</mapper>
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.VehicleImages;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年10月28日 0:24
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface VehicleImagesMapper extends BaseMapper<VehicleImages> {
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.VehicleWxBind;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年11月29日 11:42
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface VehicleWxBindMapper extends BaseMapper<VehicleWxBind> {
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.WxCrossNum;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年03月03日 11:36
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxCrossNumMapper extends BaseMapper<WxCrossNum> {
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.WxOutPort;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2024年04月15日 17:07
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxOutPortMapper extends BaseMapper<WxOutPort> {
|
||||
}
|
||||
@ -1,19 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.WxPreTimesInfo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年02月28日 9:01
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxPreTimesInfoMapper extends BaseMapper<WxPreTimesInfo> {
|
||||
List<Map<String, Object>> selectMyList(@Param("vehicleid")String vehicleid, @Param("vehiclecolor")int vehiclecolor);
|
||||
}
|
||||
@ -1,30 +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="com.nmgs.mapper.WxPreTimesInfoMapper">
|
||||
|
||||
<select id="selectMyList" resultType="java.util.Map">
|
||||
SELECT t.*, t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename FROM wx_pretimesinfo t
|
||||
|
||||
LEFT JOIN atype_text t1 ON ( t1.VALUE = t.vehiclecolor )
|
||||
LEFT JOIN TYPE_TEXT t2 ON ( t2.VALUE = t.vehicletype )
|
||||
LEFT JOIN wx_freetype_text t3 ON ( t3.VALUE = t.freetype )
|
||||
<where>
|
||||
1=1
|
||||
<if test="vehicleid != null and vehicleid != ''">
|
||||
AND t.vehicleid = '${vehicleid}'
|
||||
</if>
|
||||
<if test="vehiclecolor != null">
|
||||
AND t.vehiclecolor=${vehiclecolor}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
|
||||
ORDER BY insertTime DESC
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.WxUnBindApply;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年11月28日 14:41
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxUnBindApplyMapper extends BaseMapper<WxUnBindApply> {
|
||||
}
|
||||
@ -1,23 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.nmgs.entity.WxVehicleBind;
|
||||
import com.nmgs.entity.WxVehicleBindExcel;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年10月27日 14:43
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxVehicleBindMapper extends MPJBaseMapper<WxVehicleBind> {
|
||||
Page<Map<String, Object>> selectMyPage(Page<Map<String, Object>> page, String vehicleid, @Param("vehiclecolor") Integer vehiclecolor);
|
||||
List<WxVehicleBindExcel> queryList(String whereSql);
|
||||
|
||||
}
|
||||
@ -1,158 +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="com.nmgs.mapper.WxVehicleBindMapper">
|
||||
<select id="selectMyPage" resultType="java.util.Map">
|
||||
SELECT
|
||||
t.vehicleid,
|
||||
t.vehiclecolor,
|
||||
t.vehicletype,
|
||||
t.phoneNumber,
|
||||
t.freetype,
|
||||
t.freeStartTime,
|
||||
t.freeEndTime,
|
||||
COALESCE((SELECT SUM(t6.freeTimes) FROM wx_pretimesinfo t6 WHERE
|
||||
t6.vehicleid = t.vehicleid AND t6.vehiclecolor = t.vehiclecolor ),0) freeTimes,
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE
|
||||
t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor and t7.iscomplete=1),0) reviewedTimes,
|
||||
COALESCE((SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE
|
||||
t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor and t8.iscomplete=0),0) notReviewedTimes,
|
||||
t.ImagesID,
|
||||
t.adduserid,
|
||||
t.adduser,
|
||||
t.vehicleNotes,
|
||||
t.freesta,
|
||||
(COALESCE((SELECT wx.advancefee FROM wx_vehiclebind wx WHERE
|
||||
wx.vehicleid = t.vehicleid AND wx.vehiclecolor = t.vehiclecolor ),0) + (SELECT COALESCE(SUM(w.advancefee), 0) FROM wx_pretimesinfo w WHERE
|
||||
w.vehicleid = t.vehicleid AND w.vehiclecolor = t.vehiclecolor)) totalAdvancefee,
|
||||
(COALESCE((SELECT w1.advancefee FROM wx_vehiclebind w1 WHERE
|
||||
w1.vehicleid = t.vehicleid AND w1.vehiclecolor = t.vehiclecolor and w1.iscomplete=1),0) + COALESCE((SELECT SUM(a1.advancefee) FROM wx_pretimesinfo a1 WHERE
|
||||
a1.vehicleid = t.vehicleid AND a1.vehiclecolor = t.vehiclecolor and a1.iscomplete=1),0)) reviewedFee,
|
||||
(COALESCE((SELECT w2.advancefee FROM wx_vehiclebind w2 WHERE
|
||||
w2.vehicleid = t.vehicleid AND w2.vehiclecolor = t.vehiclecolor and w2.iscomplete=0),0) + COALESCE((SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE
|
||||
a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor and a2.iscomplete=0),0)) notReviewedFee,
|
||||
|
||||
t.checkcode,
|
||||
t.backup2,
|
||||
t.backup3,
|
||||
t.backup4,
|
||||
t.backup5,
|
||||
t.iscomplete,
|
||||
t4.wxid,
|
||||
t4.applyType,
|
||||
t4.managerWXID,
|
||||
t4.TEXT,
|
||||
t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename,
|
||||
COALESCE(( SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor
|
||||
),0) surplusTimes
|
||||
FROM
|
||||
wx_vehiclebind t
|
||||
LEFT JOIN atype_text t1 ON ( t1.VALUE = t.vehiclecolor )
|
||||
LEFT JOIN TYPE_TEXT t2 ON ( t2.VALUE = t.vehicletype )
|
||||
LEFT JOIN wx_freetype_text t3 ON ( t3.VALUE = t.freetype )
|
||||
LEFT JOIN wx_unbindapply t4 ON ( t4.vehicleid = t.vehicleid AND t4.vehiclecolor = t.vehiclecolor )
|
||||
<where>
|
||||
1=1
|
||||
<if test="vehicleid != null and vehicleid != ''">
|
||||
AND t.vehicleid like '%${vehicleid}%'
|
||||
</if>
|
||||
<if test="vehiclecolor != null">
|
||||
AND t.vehiclecolor=${vehiclecolor}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
t.freeStartTime DESC
|
||||
|
||||
</select>
|
||||
<select id="queryList" resultType="com.nmgs.entity.WxVehicleBindExcel">
|
||||
SELECT
|
||||
t.vehicleid,
|
||||
t.vehiclecolor,
|
||||
t.vehicletype,
|
||||
t.phoneNumber,
|
||||
t.freetype,
|
||||
t.freeStartTime,
|
||||
t.freeEndTime,
|
||||
t.ImagesID,
|
||||
t.adduserid,
|
||||
t.adduser,
|
||||
t.vehicleNotes,
|
||||
CASE
|
||||
WHEN freesta = 'G' THEN '嘎鲁图'
|
||||
WHEN freesta = 'T' THEN '台格'
|
||||
ELSE '台格,嘎鲁图'
|
||||
END AS freesta,
|
||||
CASE
|
||||
WHEN t.freetype = 5 THEN
|
||||
CONCAT(
|
||||
'已审核: ',
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor AND t7.iscomplete = 1), 0),
|
||||
CASE
|
||||
WHEN (SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor AND t8.iscomplete = 0) > 0 THEN
|
||||
CONCAT(', 未审核: ', COALESCE((SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor AND t8.iscomplete = 0), 0))
|
||||
ELSE ''
|
||||
END,
|
||||
', 合计: ',
|
||||
COALESCE((SELECT SUM(t6.freeTimes) FROM wx_pretimesinfo t6 WHERE t6.vehicleid = t.vehicleid AND t6.vehiclecolor = t.vehiclecolor), 0)
|
||||
)
|
||||
ELSE ''
|
||||
END AS freeTimes,
|
||||
CASE
|
||||
WHEN t.freetype = 5 THEN
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor AND t7.iscomplete = 1), 0) -
|
||||
COALESCE((SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor), 0)
|
||||
ELSE ''
|
||||
END AS applyTimes,
|
||||
CASE
|
||||
WHEN t.freetype = 5 OR t.freetype = 2 THEN
|
||||
CONCAT(
|
||||
'已审核: ',
|
||||
COALESCE((SELECT w1.advancefee FROM wx_vehiclebind w1 WHERE w1.vehicleid = t.vehicleid AND w1.vehiclecolor = t.vehiclecolor AND w1.iscomplete = 1), 0) +
|
||||
COALESCE((SELECT SUM(a1.advancefee) FROM wx_pretimesinfo a1 WHERE a1.vehicleid = t.vehicleid AND a1.vehiclecolor = t.vehiclecolor AND a1.iscomplete = 1), 0), '元',
|
||||
CASE
|
||||
WHEN (SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor AND a2.iscomplete = 0) > 0 THEN
|
||||
CONCAT(', 未审核: ', COALESCE((SELECT w2.advancefee FROM wx_vehiclebind w2 WHERE w2.vehicleid = t.vehicleid AND w2.vehiclecolor = t.vehiclecolor AND w2.iscomplete = 0), 0) +
|
||||
COALESCE((SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor AND a2.iscomplete = 0), 0), '元')
|
||||
ELSE ''
|
||||
END,
|
||||
', 合计: ',
|
||||
COALESCE((SELECT wx.advancefee FROM wx_vehiclebind wx WHERE wx.vehicleid = t.vehicleid AND wx.vehiclecolor = t.vehiclecolor), 0) +
|
||||
COALESCE((SELECT SUM(w.advancefee) FROM wx_pretimesinfo w WHERE w.vehicleid = t.vehicleid AND w.vehiclecolor = t.vehiclecolor), 0), '元'
|
||||
)
|
||||
ELSE ''
|
||||
END AS advancefee,
|
||||
t.checkcode,
|
||||
CASE
|
||||
WHEN t.freetype = 5 AND (SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor) > 0 THEN
|
||||
COALESCE((SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor), 0)
|
||||
ELSE ''
|
||||
END AS surplusTimes,
|
||||
CASE
|
||||
WHEN t.iscomplete = 0 THEN '未审核'
|
||||
WHEN t.iscomplete = 1 THEN '通过'
|
||||
WHEN t.iscomplete = 2 THEN '未通过'
|
||||
ELSE '其他状态'
|
||||
END AS iscomplete,
|
||||
t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename
|
||||
FROM
|
||||
wx_vehiclebind t
|
||||
LEFT JOIN
|
||||
atype_text t1 ON t1.VALUE = t.vehiclecolor
|
||||
LEFT JOIN
|
||||
TYPE_TEXT t2 ON t2.VALUE = t.vehicletype
|
||||
LEFT JOIN
|
||||
wx_freetype_text t3 ON t3.VALUE = t.freetype
|
||||
|
||||
${whereSql}
|
||||
|
||||
ORDER BY
|
||||
t.freeStartTime DESC
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,14 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmgs.entity.WxVehicleWxData;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2023年11月28日 15:26
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface WxVehicleWxDataMapper extends BaseMapper<WxVehicleWxData> {
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,61 +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="com.nmgs.mapper.UnBindMapper">
|
||||
<select id="getPage" resultType="java.util.Map">
|
||||
SELECT a.vehicleid,
|
||||
a.vehiclecolor,
|
||||
a.wxid,
|
||||
c.wxname,
|
||||
a.ismanager,
|
||||
b.vehicletype,
|
||||
b.phoneNumber,
|
||||
b.freetype,
|
||||
b.freeStartTime,
|
||||
b.freeEndTime
|
||||
FROM wx_vehiclewx_bind a
|
||||
LEFT JOIN wx_vehiclebind b ON a.vehicleid = b.vehicleid
|
||||
AND a.vehiclecolor = b.vehiclecolor
|
||||
LEFT JOIN wx_vehiclewxdata c ON a.wxid = c.wxid
|
||||
<where>
|
||||
<if test="params.wxname!=null and params.wxname!=''">
|
||||
<bind name="wxname" value="'%'+params.wxname+'%'"/>
|
||||
and c.wxname like #{wxname}
|
||||
</if>
|
||||
<if test="params.vehicleid!=null and params.vehicleid!=''">
|
||||
<bind name="vehicleid" value="'%'+params.vehicleid+'%'"/>
|
||||
and a.vehicleid like #{vehicleid}
|
||||
</if>
|
||||
<if test="params.vehiclecolor!=null ">
|
||||
and a.vehiclecolor = #{params.vehiclecolor}
|
||||
</if>
|
||||
<if test="params.ismanager!=null ">
|
||||
and a.ismanager = #{params.ismanager}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
<select id="getWXCarColorList" resultType="java.util.Map">
|
||||
SELECT *
|
||||
FROM atype_text
|
||||
</select>
|
||||
<select id="getWXCarTypeList" resultType="java.util.Map">
|
||||
SELECT *
|
||||
FROM type_text
|
||||
</select>
|
||||
<delete id="deleteData">
|
||||
DELETE
|
||||
FROM wx_vehiclewx_bind
|
||||
WHERE vehicleid = #{vehicleid}
|
||||
AND vehiclecolor = #{vehiclecolor}
|
||||
AND ismanager = #{ismanager}
|
||||
AND wxid = #{wxid}
|
||||
</delete>
|
||||
<update id="crossData">
|
||||
update wx_vehiclewx_bind set ismanager= 0
|
||||
WHERE vehicleid = #{vehicleid}
|
||||
AND vehiclecolor = #{vehiclecolor}
|
||||
AND ismanager = #{ismanager}
|
||||
AND wxid = #{wxid}
|
||||
</update>
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,30 +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="com.nmgs.mapper.WxPreTimesInfoMapper">
|
||||
|
||||
<select id="selectMyList" resultType="java.util.Map">
|
||||
SELECT t.*, t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename FROM wx_pretimesinfo t
|
||||
|
||||
LEFT JOIN atype_text t1 ON ( t1.VALUE = t.vehiclecolor )
|
||||
LEFT JOIN TYPE_TEXT t2 ON ( t2.VALUE = t.vehicletype )
|
||||
LEFT JOIN wx_freetype_text t3 ON ( t3.VALUE = t.freetype )
|
||||
<where>
|
||||
1=1
|
||||
<if test="vehicleid != null and vehicleid != ''">
|
||||
AND t.vehicleid = '${vehicleid}'
|
||||
</if>
|
||||
<if test="vehiclecolor != null">
|
||||
AND t.vehiclecolor=${vehiclecolor}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
|
||||
ORDER BY insertTime DESC
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
@ -1,158 +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="com.nmgs.mapper.WxVehicleBindMapper">
|
||||
<select id="selectMyPage" resultType="java.util.Map">
|
||||
SELECT
|
||||
t.vehicleid,
|
||||
t.vehiclecolor,
|
||||
t.vehicletype,
|
||||
t.phoneNumber,
|
||||
t.freetype,
|
||||
t.freeStartTime,
|
||||
t.freeEndTime,
|
||||
COALESCE((SELECT SUM(t6.freeTimes) FROM wx_pretimesinfo t6 WHERE
|
||||
t6.vehicleid = t.vehicleid AND t6.vehiclecolor = t.vehiclecolor ),0) freeTimes,
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE
|
||||
t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor and t7.iscomplete=1),0) reviewedTimes,
|
||||
COALESCE((SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE
|
||||
t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor and t8.iscomplete=0),0) notReviewedTimes,
|
||||
t.ImagesID,
|
||||
t.adduserid,
|
||||
t.adduser,
|
||||
t.vehicleNotes,
|
||||
t.freesta,
|
||||
(COALESCE((SELECT wx.advancefee FROM wx_vehiclebind wx WHERE
|
||||
wx.vehicleid = t.vehicleid AND wx.vehiclecolor = t.vehiclecolor ),0) + (SELECT COALESCE(SUM(w.advancefee), 0) FROM wx_pretimesinfo w WHERE
|
||||
w.vehicleid = t.vehicleid AND w.vehiclecolor = t.vehiclecolor)) totalAdvancefee,
|
||||
(COALESCE((SELECT w1.advancefee FROM wx_vehiclebind w1 WHERE
|
||||
w1.vehicleid = t.vehicleid AND w1.vehiclecolor = t.vehiclecolor and w1.iscomplete=1),0) + COALESCE((SELECT SUM(a1.advancefee) FROM wx_pretimesinfo a1 WHERE
|
||||
a1.vehicleid = t.vehicleid AND a1.vehiclecolor = t.vehiclecolor and a1.iscomplete=1),0)) reviewedFee,
|
||||
(COALESCE((SELECT w2.advancefee FROM wx_vehiclebind w2 WHERE
|
||||
w2.vehicleid = t.vehicleid AND w2.vehiclecolor = t.vehiclecolor and w2.iscomplete=0),0) + COALESCE((SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE
|
||||
a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor and a2.iscomplete=0),0)) notReviewedFee,
|
||||
|
||||
t.checkcode,
|
||||
t.backup2,
|
||||
t.backup3,
|
||||
t.backup4,
|
||||
t.backup5,
|
||||
t.iscomplete,
|
||||
t4.wxid,
|
||||
t4.applyType,
|
||||
t4.managerWXID,
|
||||
t4.TEXT,
|
||||
t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename,
|
||||
COALESCE(( SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor
|
||||
),0) surplusTimes
|
||||
FROM
|
||||
wx_vehiclebind t
|
||||
LEFT JOIN atype_text t1 ON ( t1.VALUE = t.vehiclecolor )
|
||||
LEFT JOIN TYPE_TEXT t2 ON ( t2.VALUE = t.vehicletype )
|
||||
LEFT JOIN wx_freetype_text t3 ON ( t3.VALUE = t.freetype )
|
||||
LEFT JOIN wx_unbindapply t4 ON ( t4.vehicleid = t.vehicleid AND t4.vehiclecolor = t.vehiclecolor )
|
||||
<where>
|
||||
1=1
|
||||
<if test="vehicleid != null and vehicleid != ''">
|
||||
AND t.vehicleid like '%${vehicleid}%'
|
||||
</if>
|
||||
<if test="vehiclecolor != null">
|
||||
AND t.vehiclecolor=${vehiclecolor}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY
|
||||
t.freeStartTime DESC
|
||||
|
||||
</select>
|
||||
<select id="queryList" resultType="com.nmgs.entity.WxVehicleBindExcel">
|
||||
SELECT
|
||||
t.vehicleid,
|
||||
t.vehiclecolor,
|
||||
t.vehicletype,
|
||||
t.phoneNumber,
|
||||
t.freetype,
|
||||
t.freeStartTime,
|
||||
t.freeEndTime,
|
||||
t.ImagesID,
|
||||
t.adduserid,
|
||||
t.adduser,
|
||||
t.vehicleNotes,
|
||||
CASE
|
||||
WHEN freesta = 'G' THEN '嘎鲁图'
|
||||
WHEN freesta = 'T' THEN '台格'
|
||||
ELSE '台格,嘎鲁图'
|
||||
END AS freesta,
|
||||
CASE
|
||||
WHEN t.freetype = 5 THEN
|
||||
CONCAT(
|
||||
'已审核: ',
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor AND t7.iscomplete = 1), 0),
|
||||
CASE
|
||||
WHEN (SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor AND t8.iscomplete = 0) > 0 THEN
|
||||
CONCAT(', 未审核: ', COALESCE((SELECT SUM(t8.freeTimes) FROM wx_pretimesinfo t8 WHERE t8.vehicleid = t.vehicleid AND t8.vehiclecolor = t.vehiclecolor AND t8.iscomplete = 0), 0))
|
||||
ELSE ''
|
||||
END,
|
||||
', 合计: ',
|
||||
COALESCE((SELECT SUM(t6.freeTimes) FROM wx_pretimesinfo t6 WHERE t6.vehicleid = t.vehicleid AND t6.vehiclecolor = t.vehiclecolor), 0)
|
||||
)
|
||||
ELSE ''
|
||||
END AS freeTimes,
|
||||
CASE
|
||||
WHEN t.freetype = 5 THEN
|
||||
COALESCE((SELECT SUM(t7.freeTimes) FROM wx_pretimesinfo t7 WHERE t7.vehicleid = t.vehicleid AND t7.vehiclecolor = t.vehiclecolor AND t7.iscomplete = 1), 0) -
|
||||
COALESCE((SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor), 0)
|
||||
ELSE ''
|
||||
END AS applyTimes,
|
||||
CASE
|
||||
WHEN t.freetype = 5 OR t.freetype = 2 THEN
|
||||
CONCAT(
|
||||
'已审核: ',
|
||||
COALESCE((SELECT w1.advancefee FROM wx_vehiclebind w1 WHERE w1.vehicleid = t.vehicleid AND w1.vehiclecolor = t.vehiclecolor AND w1.iscomplete = 1), 0) +
|
||||
COALESCE((SELECT SUM(a1.advancefee) FROM wx_pretimesinfo a1 WHERE a1.vehicleid = t.vehicleid AND a1.vehiclecolor = t.vehiclecolor AND a1.iscomplete = 1), 0), '元',
|
||||
CASE
|
||||
WHEN (SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor AND a2.iscomplete = 0) > 0 THEN
|
||||
CONCAT(', 未审核: ', COALESCE((SELECT w2.advancefee FROM wx_vehiclebind w2 WHERE w2.vehicleid = t.vehicleid AND w2.vehiclecolor = t.vehiclecolor AND w2.iscomplete = 0), 0) +
|
||||
COALESCE((SELECT SUM(a2.advancefee) FROM wx_pretimesinfo a2 WHERE a2.vehicleid = t.vehicleid AND a2.vehiclecolor = t.vehiclecolor AND a2.iscomplete = 0), 0), '元')
|
||||
ELSE ''
|
||||
END,
|
||||
', 合计: ',
|
||||
COALESCE((SELECT wx.advancefee FROM wx_vehiclebind wx WHERE wx.vehicleid = t.vehicleid AND wx.vehiclecolor = t.vehiclecolor), 0) +
|
||||
COALESCE((SELECT SUM(w.advancefee) FROM wx_pretimesinfo w WHERE w.vehicleid = t.vehicleid AND w.vehiclecolor = t.vehiclecolor), 0), '元'
|
||||
)
|
||||
ELSE ''
|
||||
END AS advancefee,
|
||||
t.checkcode,
|
||||
CASE
|
||||
WHEN t.freetype = 5 AND (SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor) > 0 THEN
|
||||
COALESCE((SELECT freetimes FROM wx_cross_num t5 WHERE t5.vehicleid = t.vehicleid AND t5.vehiclecolor = t.vehiclecolor), 0)
|
||||
ELSE ''
|
||||
END AS surplusTimes,
|
||||
CASE
|
||||
WHEN t.iscomplete = 0 THEN '未审核'
|
||||
WHEN t.iscomplete = 1 THEN '通过'
|
||||
WHEN t.iscomplete = 2 THEN '未通过'
|
||||
ELSE '其他状态'
|
||||
END AS iscomplete,
|
||||
t1.TEXT AS platecolorname,
|
||||
t2.TEXT AS typename,
|
||||
t3.TEXT AS freetypename
|
||||
FROM
|
||||
wx_vehiclebind t
|
||||
LEFT JOIN
|
||||
atype_text t1 ON t1.VALUE = t.vehiclecolor
|
||||
LEFT JOIN
|
||||
TYPE_TEXT t2 ON t2.VALUE = t.vehicletype
|
||||
LEFT JOIN
|
||||
wx_freetype_text t3 ON t3.VALUE = t.freetype
|
||||
|
||||
${whereSql}
|
||||
|
||||
ORDER BY
|
||||
t.freeStartTime DESC
|
||||
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue