2025年09月28日 1.0.2 增加ETC 门架计费扣费交易数据上传接口/DCPC/uploadEtcGantryPassData
parent
d6ab1278da
commit
a82f2bca47
@ -0,0 +1,40 @@
|
||||
package com.nmggs.query.common.config;
|
||||
|
||||
|
||||
import org.apache.ibatis.type.BaseTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
|
||||
import java.sql.*;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月28日 9:42
|
||||
* @description: Long ↔ VARCHAR2 互转
|
||||
*/
|
||||
@MappedTypes(Long.class)
|
||||
public class LongStringTypeHandler extends BaseTypeHandler<Long> {
|
||||
|
||||
@Override
|
||||
public void setNonNullParameter(PreparedStatement ps, int i, Long parameter, JdbcType jdbcType) throws SQLException {
|
||||
ps.setString(i, parameter.toString()); // 入库转字符串
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getNullableResult(ResultSet rs, String columnName) throws SQLException {
|
||||
String val = rs.getString(columnName);
|
||||
return val == null ? null : Long.valueOf(val); // 出库转 Long
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
|
||||
String val = rs.getString(columnIndex);
|
||||
return val == null ? null : Long.valueOf(val);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
|
||||
String val = cs.getString(columnIndex);
|
||||
return val == null ? null : Long.valueOf(val);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月26日 10:16
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class DCPCFailList {
|
||||
private String tradeId;
|
||||
private String info;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月26日 9:35
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class DCPCUploadGantryData {
|
||||
@JsonProperty("msgId")
|
||||
private String msgId;
|
||||
|
||||
@JsonProperty("tradeInfoList")
|
||||
private List<DCPCGantryPass> tradeInfoList;
|
||||
}
|
||||
@ -0,0 +1,19 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月26日 10:14
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class DCPCUploadReturnData {
|
||||
private Integer subCode;
|
||||
private String info;
|
||||
private String receiveTime;
|
||||
private Integer successCount;
|
||||
private List<DCPCFailList> failList;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月25日 14:30
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class RequestExSta {
|
||||
|
||||
private String VehiclePlate;
|
||||
private String dateStart;
|
||||
private String dateEnd;
|
||||
|
||||
private String authKey;
|
||||
|
||||
private String md5;
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月25日 14:30
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class RequestMinFee {
|
||||
|
||||
private String version;
|
||||
private Integer subcomno;
|
||||
private Integer stano;
|
||||
|
||||
private String authKey;
|
||||
|
||||
private String md5;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月25日 14:30
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class RequestParam {
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String authKey;
|
||||
|
||||
private String md5;
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
package com.nmggs.query.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月25日 14:30
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
public class RequestVersion {
|
||||
|
||||
private Integer version;
|
||||
|
||||
private String authKey;
|
||||
|
||||
private String md5;
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.nmggs.query.entity.fx;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月18日 17:51
|
||||
* @description:
|
||||
*/
|
||||
@Data
|
||||
@TableName("zdyh_equipment_statistics")
|
||||
public class EquipmentStatistics {
|
||||
@TableField("classdate")
|
||||
private Date classdate;
|
||||
@TableField("equipmentid")
|
||||
private Integer equipmentid;
|
||||
@TableField("departmentno")
|
||||
private Integer departmentno;
|
||||
@TableField("state")
|
||||
private Integer state;
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
package com.nmggs.query.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmggs.query.entity.DCPCGantryPass;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月26日 10:00
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface DCPCGantryPassMapper extends BaseMapper<DCPCGantryPass> {
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
package com.nmggs.query.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月26日 11:28
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
public interface GantryTableMapper {
|
||||
Map<String, Object> selectByGantryId(String gantryId);
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
<?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路径-->
|
||||
<mapper namespace="com.nmggs.query.mapper.GantryTableMapper">
|
||||
|
||||
|
||||
<select id="selectByGantryId" resultType="java.util.Map">
|
||||
select * from GANTRY_TABLE where ID = '#{gantryId}'
|
||||
</select>
|
||||
</mapper>
|
||||
@ -0,0 +1,16 @@
|
||||
package com.nmggs.query.mapper.fx;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.nmggs.query.entity.fx.EquipmentStatistics;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author: shuguang
|
||||
* @date: 2025年09月18日 17:54
|
||||
* @description:
|
||||
*/
|
||||
@Mapper
|
||||
@DS("fx")
|
||||
public interface EquipmentStatisticsMapper extends BaseMapper<EquipmentStatistics> {
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
<?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.nmggs.query.mapper.fx.EquipmentStatisticsMapper">
|
||||
|
||||
</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.
Loading…
Reference in New Issue