Commit 7a04f419 authored by dahai's avatar dahai

push

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