Commit 7a04f419 authored by dahai's avatar dahai

push

parent 9822080b
package com.yxproject.start.api;
import com.yxproject.start.entity.FailedCardEntity;
import com.yxproject.start.entity.FailedCardReasonDicEntity;
import com.yxproject.start.entity.SpecialCardEntity;
import com.yxproject.start.entity.TaskEntity;
......@@ -253,7 +252,7 @@ public class FailedCardApi {
String str2 = null;
for (int i = 0; i < jsonarray.size(); i++) {
JSONObject jsonObject = (JSONObject) jsonarray.get(i);
String str = jsonObject.getString("idCard");
String str = jsonObject.getString("cardId");
if (i != jsonarray.size() - 1) {
str2 += "'" + str + "',";
} else {
......
......@@ -13,10 +13,10 @@ import java.util.Objects;
public class DataAuditingEntity {
private long id;
private String policeSubstation;
private Long validCount;
private long validCount;
private Date submitDate;
private Long invalidCount;
private Long taskId;
private long invalidCount;
private long taskId;
@Id
@Column(name = "ID")
......@@ -28,6 +28,7 @@ public class DataAuditingEntity {
this.id = id;
}
@Basic
@Column(name = "POLICE_SUBSTATION")
public String getPoliceSubstation() {
......@@ -40,11 +41,11 @@ public class DataAuditingEntity {
@Basic
@Column(name = "VALID_COUNT")
public Long getValidCount() {
public long getValidCount() {
return validCount;
}
public void setValidCount(Long validCount) {
public void setValidCount(long validCount) {
this.validCount = validCount;
}
......@@ -60,21 +61,21 @@ public class DataAuditingEntity {
@Basic
@Column(name = "INVALID_COUNT")
public Long getInvalidCount() {
public long getInvalidCount() {
return invalidCount;
}
public void setInvalidCount(Long invalidCount) {
public void setInvalidCount(long invalidCount) {
this.invalidCount = invalidCount;
}
@Basic
@Column(name = "TASK_ID")
public Long getTaskId() {
public long getTaskId() {
return taskId;
}
public void setTaskId(Long taskId) {
public void setTaskId(long taskId) {
this.taskId = taskId;
}
......
......@@ -22,13 +22,13 @@ public interface DataAuditingMapper {
" from ACC_CARD_T@ACCUYD_LINK\n" +
" where ACCEPT_NO not in (\n" +
" select ACCEPT_NO from ACC_ERROR_INFO_T@ACCUYD_LINK)\n" +
" and substr(ACCEPT_NO,0,8) in (#{groupNo})\n" +
" and substr(ACCEPT_NO,0,8) in (${groupNo})\n" +
" group by substr(UPLOAD_NO,0,9)) a \n" +
"left join (select substr(UPLOAD_NO,0,9) POLICE_SUBSTATION ,count(UPLOAD_NO) INVALID_COUNT \n" +
"from ACC_CARD_T@ACCUYD_LINK\n" +
"where ACCEPT_NO in (\n" +
" select ACCEPT_NO from ACC_ERROR_INFO_T@ACCUYD_LINK)\n" +
" and substr(ACCEPT_NO,0,8) in (#{groupNo})\n" +
" and substr(ACCEPT_NO,0,8) in (${groupNo})\n" +
" group by substr(UPLOAD_NO,0,9)) b on a.POLICE_SUBSTATION = b.POLICE_SUBSTATION ")
public List<Map<String, Object>> selectDataAuditingEntity(@Param("groupNo") String groupNo);
......
......@@ -97,8 +97,8 @@ public interface FailedCardMapper {
public List<String> selectCardType();
@Select("select substr(ACCEPT_NO,0,8) from PROD_CARD_T where ID_NO in" +
" (#{cardList}) group by substr(ACCEPT_NO,0,8)")
@Select("select substr(ACCEPT_NO,0,8) from PROD_CARD_T@PRODYD_LINK where ID_NO in" +
" (#{cardIdList}) group by substr(ACCEPT_NO,0,8)")
public List<String> selectGroupNo(@Param("cardIdList") String cardIdList);
......
......@@ -5,8 +5,8 @@ spring:
datasource:
driver-class-name: oracle.jdbc.driver.OracleDriver
url: jdbc:oracle:thin:@192.168.10.65:1521:yingxin
username: yingxin
password: yingxin
username: yingxinyd
password: yingxinyd
servlet:
multipart:
enabled: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment