数据推送来源枚举

This commit is contained in:
钱涛 2024-11-18 17:57:58 +08:00
parent bca10e8978
commit 37b9d20faa
2 changed files with 4 additions and 3 deletions

View File

@ -42,9 +42,10 @@ public class PushSettingItemSaveParam {
/**
* 项目类型
* @see SalarySQLReferenceEnum
*/
@DataCheck(require = true, message = "数据来源")
private SalarySQLReferenceEnum source;
private String source;
/**
* 数据库字段

View File

@ -133,7 +133,7 @@ public class PushServiceImpl extends Service implements PushService {
.settingId(param.getSettingId())
.item(param.getItem())
.itemName(param.getItemName())
.source(param.getSource().getValue())
.source(param.getSource())
.fieldName(param.getFieldName())
.fieldType(param.getFieldType().getValue())
.creator((long) user.getUID())
@ -153,7 +153,7 @@ public class PushServiceImpl extends Service implements PushService {
po.setSettingId(param.getSettingId());
po.setItem(param.getItem());
po.setItemName(param.getItemName());
po.setSource(param.getSource().getValue());
po.setSource(param.getSource());
po.setFieldName(param.getFieldName());
po.setFieldType(param.getFieldType().getValue());
po.setUpdateTime(now);