系统参数设置接口优化;
This commit is contained in:
parent
a5918d6363
commit
6e6a6dadd7
@ -6,7 +6,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class SysHomeParamSetDto {
|
||||
|
||||
private Long id;
|
||||
private String id;
|
||||
|
||||
private String paramName;
|
||||
|
||||
|
@ -6,7 +6,7 @@ import lombok.Data;
|
||||
@Data
|
||||
public class SysHomeParamSetVo {
|
||||
|
||||
private Long id;
|
||||
private String id;
|
||||
|
||||
private String paramName;
|
||||
|
||||
|
@ -61,6 +61,7 @@ public class HomeParamSetServiceImpl implements HomeParamSetService {
|
||||
if (sysHomeParamSetDto.getParamValueJson() !=null){
|
||||
sysHomeParamSet.setParamValue(sysHomeParamSetDto.getParamValueJson().toString());
|
||||
}
|
||||
sysHomeParamSet.setId(Long.valueOf(sysHomeParamSetDto.getId()));
|
||||
sysHomeParamSetMapper.updateById(sysHomeParamSet);
|
||||
SysHomeParamSetVo sysHomeParamSetVo = new SysHomeParamSetVo();
|
||||
SysHomeParamSetVo result = BeanCopyUtils.copy(sysHomeParamSet, sysHomeParamSetVo);
|
||||
@ -69,6 +70,6 @@ public class HomeParamSetServiceImpl implements HomeParamSetService {
|
||||
|
||||
@Override
|
||||
public void delete(SysHomeParamSetDto sysHomeParamSetDto) {
|
||||
sysHomeParamSetMapper.deleteById(sysHomeParamSetDto.getId());
|
||||
sysHomeParamSetMapper.deleteById(Long.valueOf(sysHomeParamSetDto.getId()));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user