微调
This commit is contained in:
@@ -50,6 +50,7 @@ public class PqSourceServiceImpl extends ServiceImpl<PqSourceMapper, PqSource> i
|
||||
public boolean addPqSource(PqSourceParam param) {
|
||||
PqSource pqSource = new PqSource();
|
||||
BeanUtil.copyProperties(param, pqSource);
|
||||
pqSource.setParameter(StrUtil.isBlank(pqSource.getParameter()) ? null : pqSource.getParameter());
|
||||
pqSource.setState(DataStateEnum.ENABLE.getCode());
|
||||
return this.save(pqSource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user