添加字段同步

This commit is contained in:
yangjun 2025-03-14 09:11:02 +08:00
parent 10acdc1220
commit 220c050f03
5 changed files with 25 additions and 9 deletions

View File

@ -95,7 +95,7 @@ public class SyncJwxt extends BaseSync {
//查询数据
QueryWrapper<JwxtJxrw> jxrwQueryWrapper = new QueryWrapper<>();
jxrwQueryWrapper.eq("file_shztmc","审核通过");
// jxrwQueryWrapper.eq("file_shztmc","审核通过");
List<JwxtJxrw> inDataList = expJxrwService.list(jxrwQueryWrapper);
List<Xxhbjwxtjxrw> outDataList = Lists.newArrayList();
@ -110,14 +110,14 @@ public class SyncJwxt extends BaseSync {
System.out.println("---------------------------------------------------------------------------");
System.out.println("--------------插入第一个"+outDataList.size()+"--------------------");
System.out.println("---------------------------------------------------------------------------");
for(Xxhbjwxtjxrw par : outDataList){
UpdateWrapper<Xxhbjwxtjxrw> xxhbjwxtjxrwUpdateWrapper = new UpdateWrapper<>();
xxhbjwxtjxrwUpdateWrapper.set("file_shztmc","审核通过");
xxhbjwxtjxrwUpdateWrapper.eq("kcrwdm",par.getKcrwdm());
impJxrwService.update(xxhbjwxtjxrwUpdateWrapper);
}
// impJxrwService.syncList(outDataList);
// for(Xxhbjwxtjxrw par : outDataList){
//
// UpdateWrapper<Xxhbjwxtjxrw> xxhbjwxtjxrwUpdateWrapper = new UpdateWrapper<>();
// xxhbjwxtjxrwUpdateWrapper.set("file_shztmc","审核通过");
// xxhbjwxtjxrwUpdateWrapper.eq("kcrwdm",par.getKcrwdm());
// impJxrwService.update(xxhbjwxtjxrwUpdateWrapper);
// }
impJxrwService.syncList(outDataList);
}catch (Exception e){

View File

@ -92,4 +92,8 @@ public class JwxtJxrw implements Serializable {
@Excel(name = "fileShztmc", width = 15)
@ApiModelProperty(value = "fileShztmc")
private String fileShztmc;
/**xnxqmc*/
@Excel(name = "xnxqmc", width = 15)
@ApiModelProperty(value = "xnxqmc")
private String xnxqmc;
}

View File

@ -100,4 +100,8 @@ public class Xxhbjwxtjxrw implements Serializable {
@Excel(name = "fileShztmc", width = 15)
@ApiModelProperty(value = "fileShztmc")
private String fileShztmc;
/**xnxqmc*/
@Excel(name = "xnxqmc", width = 15)
@ApiModelProperty(value = "xnxqmc")
private String xnxqmc;
}

View File

@ -48,4 +48,8 @@ public class JwxtScwjxx implements Serializable {
@Excel(name = "fjtype", width = 15)
@ApiModelProperty(value = "fjtype")
private String fjtype;
/**type*/
@Excel(name = "type", width = 15)
@ApiModelProperty(value = "type")
private String type;
}

View File

@ -56,4 +56,8 @@ public class Xxhbjwxtscwjxx implements Serializable {
@Excel(name = "fjtype", width = 15)
@ApiModelProperty(value = "fjtype")
private String fjtype;
/**type*/
@Excel(name = "type", width = 15)
@ApiModelProperty(value = "type")
private String type;
}