增加用户积分自查
parent
2f3fefaf86
commit
d1251c60c0
@ -1,34 +1,38 @@
|
||||
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("PertolCafeteriaFeeThreadPool") //线程池实例名,多个线程池配置需要声明,一个线程池可有可无
|
||||
public Executor executorNormal() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
executor.setCorePoolSize(4);
|
||||
executor.setMaxPoolSize(10);
|
||||
executor.setQueueCapacity(10);
|
||||
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;
|
||||
}
|
||||
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("PertolCafeteriaFeeThreadPool") //线程池实例名,多个线程池配置需要声明,一个线程池可有可无
|
||||
public Executor executorNormal() {
|
||||
ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
|
||||
// executor.setCorePoolSize(40);
|
||||
// executor.setMaxPoolSize(4000);
|
||||
// executor.setQueueCapacity(40000);
|
||||
// executor.setKeepAliveSeconds(60);
|
||||
executor.setCorePoolSize(40);
|
||||
executor.setMaxPoolSize(4000);
|
||||
executor.setQueueCapacity(40000);
|
||||
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,59 @@
|
||||
package com.nmgs.controller;
|
||||
import com.nmgs.annotation.MySysLog;
|
||||
import com.nmgs.mapper.petrol.CafterMapper;
|
||||
import com.nmgs.mapper.petrol.OperatorsMapper;
|
||||
import com.nmgs.service.ICafterService;
|
||||
import com.nmgs.service.ICheckService;
|
||||
import com.nmgs.util.TokenUtil;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/Check")
|
||||
@CrossOrigin(origins = "*")
|
||||
public class CheckController {
|
||||
|
||||
|
||||
public static Logger logger = LoggerFactory.getLogger(CheckController.class);
|
||||
|
||||
|
||||
@Autowired
|
||||
private ICheckService checkService;
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询积分检查情况
|
||||
*/
|
||||
@PostMapping("/getCheckPage")
|
||||
@ResponseBody
|
||||
@MySysLog(modelName="查询积分检查情况",methodDesc = "查询积分检查情况",methodType = "post" )
|
||||
public Object getCafterPage(@RequestBody Map<String, Object> params){
|
||||
|
||||
return checkService.getCheckPage(params);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/exportCheckListExcle")
|
||||
@ResponseBody
|
||||
@MySysLog(modelName="导出积分检查数据Excel",methodDesc = "导出积分检查数据Excel",methodType = "GET" )
|
||||
public void exportCheckListExcle(String searchForm, HttpServletResponse response){
|
||||
logger.info("searchForm============"+searchForm.toString());
|
||||
try {
|
||||
checkService.exportCheckListExcle(searchForm,response);
|
||||
} catch (Exception e) {
|
||||
logger.error("com.nmgs.controller.CheckController.exportCheckListExcle: 导出失败",e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,374 +1,374 @@
|
||||
<?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.bak.UserVehicleBakMapper">
|
||||
|
||||
|
||||
<select id="getUserVehicleInfo" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.USERID,
|
||||
vehicle.ACARNO,
|
||||
vehicle.CHECKUSERNAME,
|
||||
vehicle.CHECKUSERNUMBER,
|
||||
vehicle.LICENSEPICNAME,
|
||||
vehicle.PERMITPICNAME,
|
||||
vehicle.VEHICLEPICNAME,
|
||||
vehicle.CERTIFICATION,
|
||||
vehicle.CREATETIME,
|
||||
vehicle.CANCELTIME,
|
||||
status.VALUE as certificationName,
|
||||
u.REALNAME as userRealName ,
|
||||
u.IDNUMBER as userIdNumber,
|
||||
u.openId as openId,
|
||||
<if test="params.DBTYPE == 2">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,0,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
|
||||
<if test="params.DBTYPE == 4">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,1,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
vehicle.OPERATIONTIME,
|
||||
vehicle.operationUser,
|
||||
login.USERNAME as operationUserName,
|
||||
vehicle.UNPASSINFO
|
||||
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
left join CERTIFICATION_STATUS_TEXT status on status.ID = vehicle.CERTIFICATION
|
||||
left join WEIXN_USER_TABLE u on u.ID = vehicle.USERID
|
||||
left join platecolor_text color on color.VALUE = SUBSTR(vehicle.ACARNO,INSTR(vehicle.ACARNO,'_')+1)
|
||||
left join WEIXIN_GT_USER login on login.ID = vehicle.operationUser
|
||||
<where>
|
||||
|
||||
<!-- 用户id查询 -->
|
||||
<if test="params.userId != null and params.userId != ''">
|
||||
AND u.ID LIKE #{params.userId}
|
||||
</if>
|
||||
|
||||
<!-- 用户真实姓名查询 -->
|
||||
<if test="params.realNameQuery != null and params.realNameQuery != ''">
|
||||
<bind name="realNameQuery" value="'%'+params.realNameQuery+'%'"/>
|
||||
AND u.REALNAME LIKE #{realNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 身份证号查询 -->
|
||||
<if test="params.idNumberQuery != null and params.idNumberQuery != ''">
|
||||
<bind name="idNumberQuery" value="'%'+params.idNumberQuery+'%'"/>
|
||||
AND u.IDNUMBER LIKE #{idNumberQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 审核状态 -->
|
||||
<!-- <if test="params.statusQuery != null">-->
|
||||
<!-- AND vehicle.CERTIFICATION = #{params.statusQuery}-->
|
||||
<!-- </if>-->
|
||||
<!-- 审核状态 -->
|
||||
<if test="params.statusQuery != null and params.statusQuery.size() > 0">
|
||||
AND vehicle.CERTIFICATION in
|
||||
<foreach collection="params.statusQuery" open="(" separator="," close=")" item="status" index="index">
|
||||
#{status}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<!-- 车牌号 -->
|
||||
<if test="params.acarNoQuery != null and params.acarNoQuery != ''">
|
||||
<bind name="acarNoQuery" value="'%'+params.acarNoQuery+'%'"/>
|
||||
AND vehicle.ACARNO LIKE #{acarNoQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME <= dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME <= STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.cancelStartTime != null and params.cancelStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME >= dateadd(day,0,#{params.cancelStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME >= STR_TO_DATE(#{params.cancelStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.cancelEndTime != null and params.cancelEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME <= dateadd(day,0,#{params.cancelEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME <= STR_TO_DATE(#{params.cancelEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.operationStartTime != null and params.operationStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.operationStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.operationStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.operationEndTime != null and params.operationEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME <= dateadd(day,0,#{params.operationEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME <= STR_TO_DATE(#{params.operationEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
order by vehicle.CREATETIME desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getUserVehiclePic" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.LICENSEPIC,
|
||||
vehicle.PERMITPIC,
|
||||
vehicle.VEHICLEPIC
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.USERID = #{params.userId}
|
||||
and vehicle.ACARNO=#{params.acarNo}
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.createTime != null and params.createTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME = STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="checkUserVehiclePass">
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 1,UNPASSINFO = '',OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.BakDBType == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.BakDBType == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="checkUserVehicleNoPass" >
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 3,UNPASSINFO = #{params.unPassInfo},OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.BakDBType == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.BakDBType == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectStatusList" resultType="java.util.HashMap">
|
||||
SELECT status.ID,status.VALUE FROM certification_status_text status where status.ID != 5 order by status.ID
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getVehiclePassTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
count(vehicle.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getUserVehicleGrow" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select PAYTIME as PAYTIME,sum(TOTALCOUNT) as TOTALCOUNT,(select count(u2.ACARNO) from USER_VEHICLE_TABLE u2 where u2.CERTIFICATION not in (0,2,3)
|
||||
AND u2.OPERATIONTIME >= TO_DATE('2024-09-08', 'SYYYY-MM-DD HH24:MI:SS') AND u2.OPERATIONTIME <= TO_DATE(a.PAYTIME, 'SYYYY-MM-DD HH24:MI:SS') ) as LEIJI from (
|
||||
select
|
||||
TO_CHAR(u.OPERATIONTIME, 'YYYY-MM-DD') as PAYTIME,
|
||||
count(u.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE u
|
||||
<where>
|
||||
and u.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY u.OPERATIONTIME) a GROUP BY PAYTIME order by PAYTIME
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCarNoColorList" resultType="java.util.HashMap">
|
||||
SELECT *
|
||||
FROM PLATECOLOR_TEXT color order by color.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getAllVehicle" resultType="java.util.HashMap">
|
||||
select
|
||||
ACARNO as ACARNO,
|
||||
min(CREATETIME) as CREATETIME
|
||||
from USER_VEHICLE_TABLE vehicle where CERTIFICATION not in (0,2,3) and CREATETIME >= TO_DATE('2024-09-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS') and CREATETIME <= TO_DATE('2025-03-05 15:00:00', 'SYYYY-MM-DD HH24:MI:SS') GROUP BY ACARNO
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleDivFee" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(DIV_FEE),0) as DIV_FEE from DIV_PASSID_ALL_ROAD road where road.CLASSDATE >=TO_DATE(#{params.classDateStart}, 'SYYYY-MM-DD HH24:MI:SS') AND road.CLASSDATE <= TO_DATE(#{params.classDateEnd}, 'SYYYY-MM-DD HH24:MI:SS') and ROADID in ('G0006','G0065') and VEHICLEID=#{params.ACARNO} GROUP BY VEHICLEID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleIntegral" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(PAYINTEGRATION),0) as PAYINTEGRATION from INTEGRATION_LIST_TABLE list where list.ACARNO = #{params.ACARNO} and list.PAYTYPE = 'AM'
|
||||
</select>
|
||||
|
||||
<delete id="deleteData" >
|
||||
delete from OUT_PORT_LAST_IN_PORT_COLLECTION where rowid in (select max(p.rowid) from OUT_PORT_LAST_IN_PORT_COLLECTION p ,(
|
||||
select ESTANO,EXTIME,ACARNO from (select ESTANO,EXTIME,ACARNO,count(1) as count from OUT_PORT_LAST_IN_PORT_COLLECTION GROUP BY ESTANO,EXTIME,ACARNO) a
|
||||
where count > 1
|
||||
) a where a.ESTANO = p.ESTANO and a.EXTIME = p.EXTIME and a.ACARNO = p.ACARNO GROUP BY p.ESTANO,p.EXTIME,p.ACARNO)
|
||||
</delete>
|
||||
|
||||
|
||||
<?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.bak.UserVehicleBakMapper">
|
||||
|
||||
|
||||
<select id="getUserVehicleInfo" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.USERID,
|
||||
vehicle.ACARNO,
|
||||
vehicle.CHECKUSERNAME,
|
||||
vehicle.CHECKUSERNUMBER,
|
||||
vehicle.LICENSEPICNAME,
|
||||
vehicle.PERMITPICNAME,
|
||||
vehicle.VEHICLEPICNAME,
|
||||
vehicle.CERTIFICATION,
|
||||
vehicle.CREATETIME,
|
||||
vehicle.CANCELTIME,
|
||||
status.VALUE as certificationName,
|
||||
u.REALNAME as userRealName ,
|
||||
u.IDNUMBER as userIdNumber,
|
||||
u.openId as openId,
|
||||
<if test="params.DBTYPE == 2">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,0,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
|
||||
<if test="params.DBTYPE == 4">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,1,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
vehicle.OPERATIONTIME,
|
||||
vehicle.operationUser,
|
||||
login.USERNAME as operationUserName,
|
||||
vehicle.UNPASSINFO
|
||||
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
left join CERTIFICATION_STATUS_TEXT status on status.ID = vehicle.CERTIFICATION
|
||||
left join WEIXN_USER_TABLE u on u.ID = vehicle.USERID
|
||||
left join platecolor_text color on color.VALUE = SUBSTR(vehicle.ACARNO,INSTR(vehicle.ACARNO,'_')+1)
|
||||
left join WEIXIN_GT_USER login on login.ID = vehicle.operationUser
|
||||
<where>
|
||||
|
||||
<!-- 用户id查询 -->
|
||||
<if test="params.userId != null and params.userId != ''">
|
||||
AND u.ID LIKE #{params.userId}
|
||||
</if>
|
||||
|
||||
<!-- 用户真实姓名查询 -->
|
||||
<if test="params.realNameQuery != null and params.realNameQuery != ''">
|
||||
<bind name="realNameQuery" value="'%'+params.realNameQuery+'%'"/>
|
||||
AND u.REALNAME LIKE #{realNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 身份证号查询 -->
|
||||
<if test="params.idNumberQuery != null and params.idNumberQuery != ''">
|
||||
<bind name="idNumberQuery" value="'%'+params.idNumberQuery+'%'"/>
|
||||
AND u.IDNUMBER LIKE #{idNumberQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 审核状态 -->
|
||||
<!-- <if test="params.statusQuery != null">-->
|
||||
<!-- AND vehicle.CERTIFICATION = #{params.statusQuery}-->
|
||||
<!-- </if>-->
|
||||
<!-- 审核状态 -->
|
||||
<if test="params.statusQuery != null and params.statusQuery.size() > 0">
|
||||
AND vehicle.CERTIFICATION in
|
||||
<foreach collection="params.statusQuery" open="(" separator="," close=")" item="status" index="index">
|
||||
#{status}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<!-- 车牌号 -->
|
||||
<if test="params.acarNoQuery != null and params.acarNoQuery != ''">
|
||||
<bind name="acarNoQuery" value="'%'+params.acarNoQuery+'%'"/>
|
||||
AND vehicle.ACARNO LIKE #{acarNoQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME <= dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME <= STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.cancelStartTime != null and params.cancelStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME >= dateadd(day,0,#{params.cancelStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME >= STR_TO_DATE(#{params.cancelStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.cancelEndTime != null and params.cancelEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME <= dateadd(day,0,#{params.cancelEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME <= STR_TO_DATE(#{params.cancelEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.operationStartTime != null and params.operationStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.operationStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.operationStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.operationEndTime != null and params.operationEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME <= dateadd(day,0,#{params.operationEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME <= STR_TO_DATE(#{params.operationEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
order by vehicle.CREATETIME desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getUserVehiclePic" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.LICENSEPIC,
|
||||
vehicle.PERMITPIC,
|
||||
vehicle.VEHICLEPIC
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.USERID = #{params.userId}
|
||||
and vehicle.ACARNO=#{params.acarNo}
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.createTime != null and params.createTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME = STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="checkUserVehiclePass">
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 1,UNPASSINFO = '',OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.BakDBType == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.BakDBType == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="checkUserVehicleNoPass" >
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 3,UNPASSINFO = #{params.unPassInfo},OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.BakDBType == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.BakDBType == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.BakDBType == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectStatusList" resultType="java.util.HashMap">
|
||||
SELECT status.ID,status.VALUE FROM certification_status_text status where status.ID != 5 order by status.ID
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getVehiclePassTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
count(vehicle.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getUserVehicleGrow" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select PAYTIME as PAYTIME,sum(TOTALCOUNT) as TOTALCOUNT,(select count(u2.ACARNO) from USER_VEHICLE_TABLE u2 where u2.CERTIFICATION not in (0,2,3)
|
||||
AND u2.OPERATIONTIME >= TO_DATE('2024-09-08', 'SYYYY-MM-DD HH24:MI:SS') AND u2.OPERATIONTIME <= TO_DATE(a.PAYTIME, 'SYYYY-MM-DD HH24:MI:SS') ) as LEIJI from (
|
||||
select
|
||||
TO_CHAR(u.OPERATIONTIME, 'YYYY-MM-DD') as PAYTIME,
|
||||
count(u.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE u
|
||||
<where>
|
||||
and u.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY u.OPERATIONTIME) a GROUP BY PAYTIME order by PAYTIME
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCarNoColorList" resultType="java.util.HashMap">
|
||||
SELECT *
|
||||
FROM PLATECOLOR_TEXT color order by color.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getAllVehicle" resultType="java.util.HashMap">
|
||||
select
|
||||
ACARNO as ACARNO,
|
||||
min(CREATETIME) as CREATETIME
|
||||
from USER_VEHICLE_TABLE vehicle where CERTIFICATION not in (0,2,3) and CREATETIME >= TO_DATE('2024-09-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS') and CREATETIME <= TO_DATE('2025-03-05 15:00:00', 'SYYYY-MM-DD HH24:MI:SS') GROUP BY ACARNO
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleDivFee" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(DIV_FEE),0) as DIV_FEE from DIV_PASSID_ALL_ROAD road where road.CLASSDATE >=TO_DATE(#{params.classDateStart}, 'SYYYY-MM-DD HH24:MI:SS') AND road.CLASSDATE <= TO_DATE(#{params.classDateEnd}, 'SYYYY-MM-DD HH24:MI:SS') and ROADID in ('G0006','G0065') and VEHICLEID=#{params.ACARNO} GROUP BY VEHICLEID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleIntegral" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(PAYINTEGRATION),0) as PAYINTEGRATION from INTEGRATION_LIST_TABLE list where list.ACARNO = #{params.ACARNO} and list.PAYTYPE in ('AM','GREENBAK')
|
||||
</select>
|
||||
|
||||
<delete id="deleteData" >
|
||||
delete from OUT_PORT_LAST_IN_PORT_COLLECTION where rowid in (select max(p.rowid) from OUT_PORT_LAST_IN_PORT_COLLECTION p ,(
|
||||
select ESTANO,EXTIME,ACARNO from (select ESTANO,EXTIME,ACARNO,count(1) as count from OUT_PORT_LAST_IN_PORT_COLLECTION GROUP BY ESTANO,EXTIME,ACARNO) a
|
||||
where count > 1
|
||||
) a where a.ESTANO = p.ESTANO and a.EXTIME = p.EXTIME and a.ACARNO = p.ACARNO GROUP BY p.ESTANO,p.EXTIME,p.ACARNO)
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,63 @@
|
||||
<?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.petrol.IntegralCheckMapper">
|
||||
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID) FROM cafter_table
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getCheckPage" resultType="com.nmgs.entity.IntegralCheck">
|
||||
select
|
||||
ic.USERID,
|
||||
ic.OPENID,
|
||||
CONCAT(u.REALNAME,CONCAT(CONCAT('(',u.IDNUMBER),')')) as userRealName,
|
||||
ic.CLASSDATE ,
|
||||
ic.ENABLEINTEGRATION,
|
||||
ic.OGINTEGRATION,
|
||||
ic.CPINTEGRATION,
|
||||
ic.RESTINTEGRALTIONBEFORE,
|
||||
ic.OGINTEGRATIONBEFORE,
|
||||
ic.CPINTEGRATIONBEFORE,
|
||||
ic.RESTINTEGRALTIONDECODE,
|
||||
ic.OGINTEGRATIONDECODE,
|
||||
ic.CPINTEGRATIONDECODE,
|
||||
ic.OGINTEGRATIONADD,
|
||||
ic.CPINTEGRATIONADD,
|
||||
ic.RESTTEGRALTIONADD,
|
||||
OPERTOR
|
||||
from INTEGRAL_CHECK ic
|
||||
left join weixn_user_table u on ic.OPENID = u.OPENID
|
||||
<where>
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND ic.CLASSDATE = dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND ic.CLASSDATE = TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND ic.CLASSDATE = TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND ic.CLASSDATE = STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 用户姓名查询条件 -->
|
||||
<if test="params.userRealNameQuery != null and params.userRealNameQuery != ''">
|
||||
<bind name="userRealNameQuery" value="'%'+params.userRealNameQuery+'%'"/>
|
||||
AND u.REALNAME LIKE #{userRealNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 用户身份证查询条件 -->
|
||||
<if test="params.userIdNumberQuery != null and params.userIdNumberQuery != ''">
|
||||
AND u.IDNUMBER = #{params.userIdNumberQuery}
|
||||
</if>
|
||||
</where>
|
||||
order by OPENID,OPERTOR
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,374 +1,374 @@
|
||||
<?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.petrol.UserVehicleMapper">
|
||||
|
||||
|
||||
<select id="getUserVehicleInfo" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.USERID,
|
||||
vehicle.ACARNO,
|
||||
vehicle.CHECKUSERNAME,
|
||||
vehicle.CHECKUSERNUMBER,
|
||||
vehicle.LICENSEPICNAME,
|
||||
vehicle.PERMITPICNAME,
|
||||
vehicle.VEHICLEPICNAME,
|
||||
vehicle.CERTIFICATION,
|
||||
vehicle.CREATETIME,
|
||||
vehicle.CANCELTIME,
|
||||
status.VALUE as certificationName,
|
||||
u.REALNAME as userRealName ,
|
||||
u.IDNUMBER as userIdNumber,
|
||||
u.openId as openId,
|
||||
<if test="params.DBTYPE == 2">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,0,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
|
||||
<if test="params.DBTYPE == 4">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,1,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
vehicle.OPERATIONTIME,
|
||||
vehicle.operationUser,
|
||||
login.USERNAME as operationUserName,
|
||||
vehicle.UNPASSINFO
|
||||
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
left join CERTIFICATION_STATUS_TEXT status on status.ID = vehicle.CERTIFICATION
|
||||
left join WEIXN_USER_TABLE u on u.ID = vehicle.USERID
|
||||
left join platecolor_text color on color.VALUE = SUBSTR(vehicle.ACARNO,INSTR(vehicle.ACARNO,'_')+1)
|
||||
left join WEIXIN_GT_USER login on login.ID = vehicle.operationUser
|
||||
<where>
|
||||
|
||||
<!-- 用户id查询 -->
|
||||
<if test="params.userId != null and params.userId != ''">
|
||||
AND u.ID LIKE #{params.userId}
|
||||
</if>
|
||||
|
||||
<!-- 用户真实姓名查询 -->
|
||||
<if test="params.realNameQuery != null and params.realNameQuery != ''">
|
||||
<bind name="realNameQuery" value="'%'+params.realNameQuery+'%'"/>
|
||||
AND u.REALNAME LIKE #{realNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 身份证号查询 -->
|
||||
<if test="params.idNumberQuery != null and params.idNumberQuery != ''">
|
||||
<bind name="idNumberQuery" value="'%'+params.idNumberQuery+'%'"/>
|
||||
AND u.IDNUMBER LIKE #{idNumberQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 审核状态 -->
|
||||
<!-- <if test="params.statusQuery != null">-->
|
||||
<!-- AND vehicle.CERTIFICATION = #{params.statusQuery}-->
|
||||
<!-- </if>-->
|
||||
<!-- 审核状态 -->
|
||||
<if test="params.statusQuery != null and params.statusQuery.size() > 0">
|
||||
AND vehicle.CERTIFICATION in
|
||||
<foreach collection="params.statusQuery" open="(" separator="," close=")" item="status" index="index">
|
||||
#{status}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<!-- 车牌号 -->
|
||||
<if test="params.acarNoQuery != null and params.acarNoQuery != ''">
|
||||
<bind name="acarNoQuery" value="'%'+params.acarNoQuery+'%'"/>
|
||||
AND vehicle.ACARNO LIKE #{acarNoQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME <= dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME <= STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.cancelStartTime != null and params.cancelStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME >= dateadd(day,0,#{params.cancelStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME >= STR_TO_DATE(#{params.cancelStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.cancelEndTime != null and params.cancelEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME <= dateadd(day,0,#{params.cancelEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME <= STR_TO_DATE(#{params.cancelEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.operationStartTime != null and params.operationStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.operationStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.operationStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.operationEndTime != null and params.operationEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME <= dateadd(day,0,#{params.operationEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME <= STR_TO_DATE(#{params.operationEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
order by vehicle.CREATETIME desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getUserVehiclePic" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.LICENSEPIC,
|
||||
vehicle.PERMITPIC,
|
||||
vehicle.VEHICLEPIC
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.USERID = #{params.userId}
|
||||
and vehicle.ACARNO=#{params.acarNo}
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.createTime != null and params.createTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME = STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="checkUserVehiclePass">
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 1,UNPASSINFO = '',OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.DBTYPE == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="checkUserVehicleNoPass" >
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 3,UNPASSINFO = #{params.unPassInfo},OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.DBTYPE == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectStatusList" resultType="java.util.HashMap">
|
||||
SELECT status.ID,status.VALUE FROM certification_status_text status where status.ID != 5 order by status.ID
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getVehiclePassTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
count(vehicle.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getUserVehicleGrow" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select PAYTIME as PAYTIME,sum(TOTALCOUNT) as TOTALCOUNT,(select count(u2.ACARNO) from USER_VEHICLE_TABLE u2 where u2.CERTIFICATION not in (0,2,3)
|
||||
AND u2.OPERATIONTIME >= TO_DATE('2024-09-08', 'SYYYY-MM-DD HH24:MI:SS') AND u2.OPERATIONTIME <= TO_DATE(a.PAYTIME, 'SYYYY-MM-DD HH24:MI:SS') ) as LEIJI from (
|
||||
select
|
||||
TO_CHAR(u.OPERATIONTIME, 'YYYY-MM-DD') as PAYTIME,
|
||||
count(u.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE u
|
||||
<where>
|
||||
and u.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY u.OPERATIONTIME) a GROUP BY PAYTIME order by PAYTIME
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCarNoColorList" resultType="java.util.HashMap">
|
||||
SELECT *
|
||||
FROM PLATECOLOR_TEXT color order by color.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getAllVehicle" resultType="java.util.HashMap">
|
||||
select
|
||||
ACARNO as ACARNO,
|
||||
min(CREATETIME) as CREATETIME
|
||||
from USER_VEHICLE_TABLE vehicle where CERTIFICATION not in (0,2,3) and CREATETIME >= TO_DATE('2024-09-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS') and CREATETIME <= TO_DATE('2025-03-05 15:00:00', 'SYYYY-MM-DD HH24:MI:SS') GROUP BY ACARNO
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleDivFee" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(DIV_FEE),0) as DIV_FEE from DIV_PASSID_ALL_ROAD road where road.CLASSDATE >=TO_DATE(#{params.classDateStart}, 'SYYYY-MM-DD HH24:MI:SS') AND road.CLASSDATE <= TO_DATE(#{params.classDateEnd}, 'SYYYY-MM-DD HH24:MI:SS') and ROADID in ('G0006','G0065') and VEHICLEID=#{params.ACARNO} GROUP BY VEHICLEID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleIntegral" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(PAYINTEGRATION),0) as PAYINTEGRATION from INTEGRATION_LIST_TABLE list where list.ACARNO = #{params.ACARNO} and list.PAYTYPE = 'AM'
|
||||
</select>
|
||||
|
||||
<delete id="deleteData" >
|
||||
delete from OUT_PORT_LAST_IN_PORT_COLLECTION where rowid in (select max(p.rowid) from OUT_PORT_LAST_IN_PORT_COLLECTION p ,(
|
||||
select ESTANO,EXTIME,ACARNO from (select ESTANO,EXTIME,ACARNO,count(1) as count from OUT_PORT_LAST_IN_PORT_COLLECTION GROUP BY ESTANO,EXTIME,ACARNO) a
|
||||
where count > 1
|
||||
) a where a.ESTANO = p.ESTANO and a.EXTIME = p.EXTIME and a.ACARNO = p.ACARNO GROUP BY p.ESTANO,p.EXTIME,p.ACARNO)
|
||||
</delete>
|
||||
|
||||
|
||||
<?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.petrol.UserVehicleMapper">
|
||||
|
||||
|
||||
<select id="getUserVehicleInfo" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.USERID,
|
||||
vehicle.ACARNO,
|
||||
vehicle.CHECKUSERNAME,
|
||||
vehicle.CHECKUSERNUMBER,
|
||||
vehicle.LICENSEPICNAME,
|
||||
vehicle.PERMITPICNAME,
|
||||
vehicle.VEHICLEPICNAME,
|
||||
vehicle.CERTIFICATION,
|
||||
vehicle.CREATETIME,
|
||||
vehicle.CANCELTIME,
|
||||
status.VALUE as certificationName,
|
||||
u.REALNAME as userRealName ,
|
||||
u.IDNUMBER as userIdNumber,
|
||||
u.openId as openId,
|
||||
<if test="params.DBTYPE == 2">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,0,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
|
||||
<if test="params.DBTYPE == 4">
|
||||
CONCAT(SUBSTR(vehicle.ACARNO,1,INSTR(vehicle.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNOSHOW,
|
||||
</if>
|
||||
vehicle.OPERATIONTIME,
|
||||
vehicle.operationUser,
|
||||
login.USERNAME as operationUserName,
|
||||
vehicle.UNPASSINFO
|
||||
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
left join CERTIFICATION_STATUS_TEXT status on status.ID = vehicle.CERTIFICATION
|
||||
left join WEIXN_USER_TABLE u on u.ID = vehicle.USERID
|
||||
left join platecolor_text color on color.VALUE = SUBSTR(vehicle.ACARNO,INSTR(vehicle.ACARNO,'_')+1)
|
||||
left join WEIXIN_GT_USER login on login.ID = vehicle.operationUser
|
||||
<where>
|
||||
|
||||
<!-- 用户id查询 -->
|
||||
<if test="params.userId != null and params.userId != ''">
|
||||
AND u.ID LIKE #{params.userId}
|
||||
</if>
|
||||
|
||||
<!-- 用户真实姓名查询 -->
|
||||
<if test="params.realNameQuery != null and params.realNameQuery != ''">
|
||||
<bind name="realNameQuery" value="'%'+params.realNameQuery+'%'"/>
|
||||
AND u.REALNAME LIKE #{realNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 身份证号查询 -->
|
||||
<if test="params.idNumberQuery != null and params.idNumberQuery != ''">
|
||||
<bind name="idNumberQuery" value="'%'+params.idNumberQuery+'%'"/>
|
||||
AND u.IDNUMBER LIKE #{idNumberQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 审核状态 -->
|
||||
<!-- <if test="params.statusQuery != null">-->
|
||||
<!-- AND vehicle.CERTIFICATION = #{params.statusQuery}-->
|
||||
<!-- </if>-->
|
||||
<!-- 审核状态 -->
|
||||
<if test="params.statusQuery != null and params.statusQuery.size() > 0">
|
||||
AND vehicle.CERTIFICATION in
|
||||
<foreach collection="params.statusQuery" open="(" separator="," close=")" item="status" index="index">
|
||||
#{status}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<!-- 车牌号 -->
|
||||
<if test="params.acarNoQuery != null and params.acarNoQuery != ''">
|
||||
<bind name="acarNoQuery" value="'%'+params.acarNoQuery+'%'"/>
|
||||
AND vehicle.ACARNO LIKE #{acarNoQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME <= dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME <= TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME <= STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.cancelStartTime != null and params.cancelStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME >= dateadd(day,0,#{params.cancelStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME >= TO_DATE(#{params.cancelStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME >= STR_TO_DATE(#{params.cancelStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.cancelEndTime != null and params.cancelEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CANCELTIME <= dateadd(day,0,#{params.cancelEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CANCELTIME <= TO_DATE(#{params.cancelEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CANCELTIME <= STR_TO_DATE(#{params.cancelEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.operationStartTime != null and params.operationStartTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.operationStartTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.operationStartTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.operationStartTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.operationEndTime != null and params.operationEndTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME <= dateadd(day,0,#{params.operationEndTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME <= TO_DATE(#{params.operationEndTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME <= STR_TO_DATE(#{params.operationEndTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
order by vehicle.CREATETIME desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
|
||||
<select id="getUserVehiclePic" resultType="com.nmgs.entity.UserVehicle">
|
||||
select
|
||||
vehicle.LICENSEPIC,
|
||||
vehicle.PERMITPIC,
|
||||
vehicle.VEHICLEPIC
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.USERID = #{params.userId}
|
||||
and vehicle.ACARNO=#{params.acarNo}
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.createTime != null and params.createTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.CREATETIME = TO_DATE(#{params.createTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.CREATETIME = STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="checkUserVehiclePass">
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 1,UNPASSINFO = '',OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.DBTYPE == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<update id="checkUserVehicleNoPass" >
|
||||
update USER_VEHICLE_TABLE vehicle set vehicle.CERTIFICATION = 3,UNPASSINFO = #{params.unPassInfo},OPERATIONUSER=#{params.loginId},
|
||||
<if test="params.DBTYPE == 1">
|
||||
OPERATIONTIME = dateadd(day,0,#{params.operationTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
OPERATIONTIME = TO_DATE(#{params.operationTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
OPERATIONTIME = STR_TO_DATE(#{params.operationTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where
|
||||
<foreach collection="params.userVehicles" open="(" separator="or" close=")" item="userVehicle" index="index">
|
||||
(vehicle.USERID = #{userVehicle.userId} and vehicle.ACARNO=#{userVehicle.acarNo} and vehicle.CREATETIME = #{userVehicle.createTime})
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
|
||||
<select id="selectStatusList" resultType="java.util.HashMap">
|
||||
SELECT status.ID,status.VALUE FROM certification_status_text status where status.ID != 5 order by status.ID
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getVehiclePassTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
count(vehicle.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE vehicle
|
||||
<where>
|
||||
and vehicle.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND vehicle.OPERATIONTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND vehicle.OPERATIONTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND vehicle.OPERATIONTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getUserVehicleGrow" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select PAYTIME as PAYTIME,sum(TOTALCOUNT) as TOTALCOUNT,(select count(u2.ACARNO) from USER_VEHICLE_TABLE u2 where u2.CERTIFICATION not in (0,2,3)
|
||||
AND u2.OPERATIONTIME >= TO_DATE('2024-09-08', 'SYYYY-MM-DD HH24:MI:SS') AND u2.OPERATIONTIME <= TO_DATE(a.PAYTIME, 'SYYYY-MM-DD HH24:MI:SS') ) as LEIJI from (
|
||||
select
|
||||
TO_CHAR(u.OPERATIONTIME, 'YYYY-MM-DD') as PAYTIME,
|
||||
count(u.ACARNO) as TOTALCOUNT
|
||||
from USER_VEHICLE_TABLE u
|
||||
<where>
|
||||
and u.CERTIFICATION not in (0,2,3)
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND u.OPERATIONTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND u.OPERATIONTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND u.OPERATIONTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY u.OPERATIONTIME) a GROUP BY PAYTIME order by PAYTIME
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectCarNoColorList" resultType="java.util.HashMap">
|
||||
SELECT *
|
||||
FROM PLATECOLOR_TEXT color order by color.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getAllVehicle" resultType="java.util.HashMap">
|
||||
select
|
||||
ACARNO as ACARNO,
|
||||
min(CREATETIME) as CREATETIME
|
||||
from USER_VEHICLE_TABLE vehicle where CERTIFICATION not in (0,2,3) and CREATETIME >= TO_DATE('2024-09-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS') and CREATETIME <= TO_DATE('2025-03-05 15:00:00', 'SYYYY-MM-DD HH24:MI:SS') GROUP BY ACARNO
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleDivFee" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(DIV_FEE),0) as DIV_FEE from DIV_PASSID_ALL_ROAD road where road.CLASSDATE >=TO_DATE(#{params.classDateStart}, 'SYYYY-MM-DD HH24:MI:SS') AND road.CLASSDATE <= TO_DATE(#{params.classDateEnd}, 'SYYYY-MM-DD HH24:MI:SS') and ROADID in ('G0006','G0065') and VEHICLEID=#{params.ACARNO} GROUP BY VEHICLEID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getVehicleIntegral" resultType="java.util.HashMap">
|
||||
select COALESCE(sum(PAYINTEGRATION),0) as PAYINTEGRATION from INTEGRATION_LIST_TABLE list where list.ACARNO = #{params.ACARNO} and list.PAYTYPE in ('AM','GREENBAK')
|
||||
</select>
|
||||
|
||||
<delete id="deleteData" >
|
||||
delete from OUT_PORT_LAST_IN_PORT_COLLECTION where rowid in (select max(p.rowid) from OUT_PORT_LAST_IN_PORT_COLLECTION p ,(
|
||||
select ESTANO,EXTIME,ACARNO from (select ESTANO,EXTIME,ACARNO,count(1) as count from OUT_PORT_LAST_IN_PORT_COLLECTION GROUP BY ESTANO,EXTIME,ACARNO) a
|
||||
where count > 1
|
||||
) a where a.ESTANO = p.ESTANO and a.EXTIME = p.EXTIME and a.ACARNO = p.ACARNO GROUP BY p.ESTANO,p.EXTIME,p.ACARNO)
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,14 @@
|
||||
package com.nmgs.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.nmgs.entity.IntegralCheck;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.Map;
|
||||
|
||||
public interface ICheckService {
|
||||
|
||||
Page<IntegralCheck> getCheckPage(Map<String, Object> params);
|
||||
|
||||
void exportCheckListExcle(String searchForm, HttpServletResponse response) throws Exception;
|
||||
}
|
||||
@ -1,55 +1,58 @@
|
||||
package com.nmgs.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.nmgs.entity.ServiceAreaOperators;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IOperatorsService {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询运营人员数据
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getOperatorsList(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
*
|
||||
* 保存数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int addOperators(ServiceAreaOperators operators) throws Exception;
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int updateOperators(ServiceAreaOperators operators)throws Exception;
|
||||
|
||||
/**
|
||||
* 删除运营人员数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int deleteOperators(List<ServiceAreaOperators> operators)throws Exception;
|
||||
|
||||
/**
|
||||
* 获取统计数据
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getCollectionData(Map<String, Object> params);
|
||||
|
||||
|
||||
/**
|
||||
* 前台登录系统
|
||||
* @return
|
||||
*/
|
||||
ServiceAreaOperators login(Map<String, Object> params);
|
||||
}
|
||||
package com.nmgs.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.nmgs.entity.ServiceAreaOperators;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface IOperatorsService {
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询运营人员数据
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getOperatorsList(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
*
|
||||
* 保存数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int addOperators(ServiceAreaOperators operators) throws Exception;
|
||||
|
||||
/**
|
||||
* 修改数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int updateOperators(ServiceAreaOperators operators)throws Exception;
|
||||
|
||||
/**
|
||||
* 删除运营人员数据
|
||||
* @param operators
|
||||
* @return
|
||||
*/
|
||||
int deleteOperators(List<ServiceAreaOperators> operators)throws Exception;
|
||||
|
||||
/**
|
||||
* 获取统计数据
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getCollectionData(Map<String, Object> params);
|
||||
|
||||
|
||||
/**
|
||||
* 前台登录系统
|
||||
* @return
|
||||
*/
|
||||
ServiceAreaOperators login(Map<String, Object> params);
|
||||
|
||||
void exportOperationListExcle(String searchForm, HttpServletResponse response) throws Exception;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,34 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<!-- <meta http-equiv="Content-Security-Policy" content="img-src 'self' http:"> -->
|
||||
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
|
||||
<title></title>
|
||||
|
||||
<script type="module" crossorigin src="./assets/index.15470a76.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.7b041637.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="loading">
|
||||
<div class="loading-wrap">
|
||||
<div class="loading-dots">
|
||||
<span class="dot dot-spin">
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="loading-title">
|
||||
正在缓冲...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8"/>
|
||||
<!-- <meta http-equiv="Content-Security-Policy" content="img-src 'self' http:"> -->
|
||||
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>
|
||||
<link rel="icon" href="/favicon.ico"/>
|
||||
|
||||
<title></title>
|
||||
|
||||
<script type="module" crossorigin src="./assets/index.f887866c.js"></script>
|
||||
<link rel="stylesheet" href="./assets/index.685b659d.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div class="loading">
|
||||
<div class="loading-wrap">
|
||||
<div class="loading-dots">
|
||||
<span class="dot dot-spin">
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
<i></i>
|
||||
</span>
|
||||
</div>
|
||||
<div class="loading-title">
|
||||
正在缓冲...
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
Reference in New Issue