数智开发需求-更新生产环境

shuzhi
dxfeng 2 years ago
parent c35f5e1837
commit 662603478c

@ -49,7 +49,7 @@ public class SzBatchExportServiceImpl extends Service implements SzBatchExportSe
try { try {
RecordSet rs = new RecordSet(); RecordSet rs = new RecordSet();
// TODO 调整附件字段 // TODO 调整附件字段
String sql = "select a.lastname ,a.workcode ,b.field15 as fileId from HrmResource a inner join cus_fielddata b on a.id =b.id and b.scopeid =1 and a.id = ? "; String sql = "select a.lastname ,a.workcode ,b.field13 as fileId from HrmResource a inner join cus_fielddata b on a.id =b.id and b.scopeid =1 and a.id = ? ";
ZipOutputStream zipOutputStream = new ZipOutputStream(Files.newOutputStream(Paths.get(outPutPath))); ZipOutputStream zipOutputStream = new ZipOutputStream(Files.newOutputStream(Paths.get(outPutPath)));
byte[] buffer = new byte[1024]; byte[] buffer = new byte[1024];
for (Long userId : idList) { for (Long userId : idList) {
@ -114,19 +114,27 @@ public class SzBatchExportServiceImpl extends Service implements SzBatchExportSe
ZipOutputStream zipOutputStream = new ZipOutputStream(Files.newOutputStream(Paths.get(outPutPath))); ZipOutputStream zipOutputStream = new ZipOutputStream(Files.newOutputStream(Paths.get(outPutPath)));
byte[] buffer = new byte[1024]; byte[] buffer = new byte[1024];
for (Long id : idList) { for (Long id : idList) {
String fileId = ""; String docId = "";
String lastname = ""; String lastname = "";
String workcode = ""; String workcode = "";
String htksrq = ""; String htksrq = "";
rs.executeQuery(sql, id); rs.executeQuery(sql, id);
if (rs.next()) { if (rs.next()) {
fileId = rs.getString("fileId"); docId = rs.getString("fileId");
lastname = rs.getString("lastname"); lastname = rs.getString("lastname");
workcode = rs.getString("workcode"); workcode = rs.getString("workcode");
htksrq = rs.getString("htksrq"); htksrq = rs.getString("htksrq");
} }
if (StringUtils.isNotBlank(fileId)) { if (StringUtils.isNotBlank(docId)) {
for (String file : fileId.split(",")) { for (String doc : docId.split(",")) {
rs.executeQuery("select imagefileid from DocImageFile where docid = ?", doc);
String file = "";
if (rs.next()) {
file = rs.getString("imagefileid");
}
if (StringUtils.isBlank(file)) {
continue;
}
ImageFileManager manager = new ImageFileManager(); ImageFileManager manager = new ImageFileManager();
manager.getImageFileInfoById(Util.getIntValue(file)); manager.getImageFileInfoById(Util.getIntValue(file));
manager.getImageFileType(); manager.getImageFileType();

@ -13,7 +13,7 @@ import weaver.interfaces.schedule.BaseCronJob;
*/ */
public class SyncBlackListJob extends BaseCronJob { public class SyncBlackListJob extends BaseCronJob {
// TODO 正式、测试表名切换 // TODO 正式、测试表名切换
private static final String TABLE_NAME = "edc_uf_table182"; private static final String TABLE_NAME = "edc_uf_table160";
@Override @Override
public void execute() { public void execute() {

Loading…
Cancel
Save