cbs配置
This commit is contained in:
parent
050653ca01
commit
de25d6cdf4
|
|
@ -1,6 +1,12 @@
|
|||
# ??ID
|
||||
app_id=Yg8fWSvs
|
||||
# ????
|
||||
app_secret=1f23768c02219d7864b0009c30a1b6a59fe84606
|
||||
# ????
|
||||
bodyEncryptionKey=0467E11F7CA86D884C990D4F3F5C2A1EFEEBB02B9878F4FDDCB7899DFABADCC8F38FC23F007A8AF9B2EB8A1D313959647CD8A1542F0414116AE6CFCA792346A802
|
||||
# ????????
|
||||
signEncryptionPrivateKey=135d6d61d5e820a979e58f4939abbd528c82528c8c276852445854377e1df247
|
||||
# ????????
|
||||
bodyDecryptionKey=135d6d61d5e820a979e58f4939abbd528c82528c8c276852445854377e1df247
|
||||
# ????
|
||||
host=https://cbs8-openapi-reprd.csuat.cmburl.cn
|
||||
|
|
@ -12,6 +12,7 @@ import weaver.hrm.User;
|
|||
import weaver.interfaces.schedule.BaseCronJob;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
|
@ -77,6 +78,50 @@ public class CBS8GetDtaJob extends BaseCronJob {
|
|||
|
||||
List<GetDtaResponse.Detail> list = getDtaResponse.getData().getList();
|
||||
|
||||
|
||||
Integer modeId = 1;
|
||||
List<String> fields = new ArrayList<String>() {{
|
||||
add("formmodeid");
|
||||
add("modedatacreater");
|
||||
add("modedatacreatertype");
|
||||
add("modedatacreatedate");
|
||||
add("modedatacreatetime");
|
||||
}};
|
||||
// String currDate = TimeUtil.getCurrentDateString();
|
||||
// SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
|
||||
// String currTime = sdf.format(new Date());
|
||||
// List<Object> values = new ArrayList<Object>() {{
|
||||
// add(modeId);
|
||||
// add(1);
|
||||
// add(0);
|
||||
// add(String.format("'%s'", currDate));
|
||||
// add(String.format("'%s'", currTime));
|
||||
// }};
|
||||
// for (PushSettingItemPO item : pushSettingItemPOS) {
|
||||
// //数据库字段
|
||||
// String fieldName = item.getFieldName();
|
||||
// fields.add(fieldName);
|
||||
// // 公式变量的值
|
||||
// String field = item.getItem();
|
||||
// String value = formulaVarValueMap.getOrDefault(field, StringUtils.EMPTY);
|
||||
// PushItemFieldEnum pushItemFieldEnum = PushItemFieldEnum.parseByValue(item.getFieldType());
|
||||
// values.add(pushItemFieldEnum.convertValue(value));
|
||||
// }
|
||||
// String tableName = setting.getTableName();
|
||||
// String sql = String.format("insert into %s (%s) values (%s)", tableName, String.join(",", fields), values.stream().map(Object::toString).collect(Collectors.joining(",")));
|
||||
// RecordSet rs = new RecordSet();
|
||||
// rs.execute(sql);
|
||||
//
|
||||
// if (modeId != null) {
|
||||
// rs.executeQuery("select max(id) from " + tableName);
|
||||
// int mainId = 0;
|
||||
// if (rs.next()) {
|
||||
// mainId = rs.getInt(1);
|
||||
// }
|
||||
// ModeRightInfo ModeRightInfo = new ModeRightInfo();
|
||||
// ModeRightInfo.setNewRight(true);
|
||||
// ModeRightInfo.editModeDataShare(1, modeId, mainId);
|
||||
// }
|
||||
} catch (Exception e) {
|
||||
log.error("获取CBS票据信息失败", e);
|
||||
throw new SalaryRunTimeException("获取CBS票据信息失败," + e.getMessage(), e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue