Browse Source

卡、签下黑反白更新老库处理

master
huminghao 1 month ago
parent
commit
937a8933bc

+ 4
- 2
zhywpt-service-bls/src/main/java/cn/com/taiji/bls/manager/blk/BlackCardInManager.java View File

@@ -128,6 +128,10 @@ public class BlackCardInManager extends AbstractCommManager implements LogManage
} else {
if (response.isSuccess()) {
String json = response.getMsg();
if ("成功".equals(json)){
response.setUploadStatus(1);
return response;
}
if (hasText(json)) {
int indexOf1 = json.indexOf("对应黑名单重复上传");
int indexOf2 = json.indexOf("10秒内不允许上传相同的文件");
@@ -157,8 +161,6 @@ public class BlackCardInManager extends AbstractCommManager implements LogManage
response.setUploadStatus(-1);
}
}
}else {
response.setUploadStatus(1);
}
}
return response;

+ 6
- 0
zhywpt-service-bls/src/main/java/cn/com/taiji/bls/manager/blk/BlackObuInManager.java View File

@@ -74,8 +74,10 @@ public class BlackObuInManager extends AbstractCommManager implements LogManager
public void dsiBasicDataUpdateRequest(String id, Integer status) throws ServiceHandleException {
OisBasicDataUpdateRequest request = new OisBasicDataUpdateRequest();
if (status == 1){
//下黑
request.setQtkBlackObu(blackObuRepo.findById(id).orElse(null));
}else {
//反白
QtkBlackObuHis blackObuHis = blackObuHisRepo.findById(id).orElse(null);
QtkBlackObu blackObu = copyProperties(blackObuHis, new QtkBlackObu());
request.setQtkBlackObu(blackObu);
@@ -123,6 +125,10 @@ public class BlackObuInManager extends AbstractCommManager implements LogManager
} else {
if (response.isSuccess()) {
String json = response.getMsg();
if ("成功".equals(json)){
response.setUploadStatus(1);
return response;
}
if (hasText(json)) {
int indexOf1 = json.indexOf("对应黑名单重复上传");//卡
int indexOf2 = json.indexOf("10秒内不允许上传相同的文件");

Loading…
Cancel
Save