Merge remote-tracking branch 'origin/master'

version1
admin 2 years ago
commit 52c0c72749

@ -0,0 +1,90 @@
package com.glxp.sale.admin.entity.sync;
import lombok.Data;
import java.util.Date;
/**
*
*/
@Data
public class IoCodeLostEntity {
private Integer id;
/**
* UDI
*/
private String code;
/**
*
*/
private String batchNo;
/**
*
*/
private String produceDate;
/**
*
*/
private String expireDate;
/**
*
*/
private String serialNo;
/**
*
*/
private String supId;
/**
*
*/
private Date createTime;
/**
*
*/
private Date updateTime;
/**
*
*/
private String remark;
private String nameCode;
private String cpmctymc;
private String ggxh;
private String startTime;
private String endTime;
public static final String COL_ID = "id";
public static final String COL_CODE = "code";
public static final String COL_BATCHNO = "batchNo";
public static final String COL_PRODUCEDATE = "produceDate";
public static final String COL_EXPIREDATE = "expireDate";
public static final String COL_SERIALNO = "serialNo";
public static final String COL_SUPID = "supId";
public static final String COL_CREATETIME = "createTime";
public static final String COL_UPDATETIME = "updateTime";
public static final String COL_REMARK = "remark";
}

@ -52,6 +52,8 @@ public class SpsSyncDataResponse {
List<SupCertEntity> supCertEntities;
List<SupCertSetEntity> supCertSetEntities;
List<IoCodeLostEntity> ioCodeLostEntities;
@Override
public String toString() {
StringBuffer remark = new StringBuffer();
@ -131,6 +133,11 @@ public class SpsSyncDataResponse {
if (CollUtil.isNotEmpty(supCertSetEntities)) {
remark.append("证书设置:").append(supCertSetEntities.size()).append(" 条\n");
}
if (CollUtil.isNotEmpty(ioCodeLostEntities)) {
remark.append("UDI缺失码").append(ioCodeLostEntities.size()).append(" 条\n");
}
return remark.toString();
}
}

@ -48,7 +48,7 @@ public class AsyncIdcTask implements SchedulingConfigurer {
private void process() {
logger.info("syncIdc----process------------");
idcService.asyncIdcTask();
// idcService.asyncIdcTask();
}
}

@ -86,7 +86,8 @@ public class DlAllDataService {
|| CollUtil.isNotEmpty(syncOrderResponse.getSupManufacturerEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getSupProductEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getSupCertEntities())
|| CollUtil.isNotEmpty(syncOrderResponse.getSupCertSetEntities()))
|| CollUtil.isNotEmpty(syncOrderResponse.getSupCertSetEntities()) || CollUtil.isNotEmpty(syncOrderResponse.getIoCodeLostEntities())
)
) {

@ -21,7 +21,8 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource;
//@Component
//@EnableScheduling
public class HeartTask implements SchedulingConfigurer {
final Logger logger = LoggerFactory.getLogger(HeartTask.class);

Loading…
Cancel
Save