添加参数

This commit is contained in:
zk
2026-04-28 20:40:34 +08:00
parent d2e7bdfcc9
commit de388f5986
2 changed files with 4 additions and 1 deletions
@@ -45,4 +45,7 @@ public class JobAgentConfigParam {
/** 预计实习时长,可选值:3个月/4个月/5个月/6个月及以上 */
private String internDuration;
/** 状态 0=未启用 1=已启用 */
private Integer status;
}
@@ -62,7 +62,7 @@ public class JobAgentConfigService {
po = new JobAgentConfig();
po.setUserId(userId);
BeanUtils.copyProperties(param, po);
po.setStatus(0);
if (po.getStatus() == null) po.setStatus(0);
po.setCreateTime(Instant.now());
po.setUpdateTime(Instant.now());
configMapper.insert(po);