添加参数
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user