fix
This commit is contained in:
parent
f2f2669ece
commit
bfb2ad9721
@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@ -52,6 +53,7 @@ public class IndicatorLibraryController {
|
||||
public R save(@RequestBody IndicatorLibraryDto dto) {
|
||||
IndicatorLibrary indicatorLibrary = new IndicatorLibrary();
|
||||
BeanUtil.copyProperties(dto,indicatorLibrary);
|
||||
indicatorLibrary.setWeight(new BigDecimal(dto.getWeight()));
|
||||
boolean success = indicatorLibraryService.saveOrUpdate(indicatorLibrary);
|
||||
|
||||
return success ? R.ok():R.error();
|
||||
|
||||
@ -30,7 +30,7 @@ public class IndicatorLibraryDto {
|
||||
private Integer indicatorType;
|
||||
//权重
|
||||
@ApiModelProperty(value = "权重", name = "weight")
|
||||
private BigDecimal weight;
|
||||
private String weight;
|
||||
//考核标准,关键结果
|
||||
@ApiModelProperty(value = "考核标准,关键结果", name = "keyResult")
|
||||
private String keyResult;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user