This commit is contained in:
DirectionOfMind 2021-01-20 18:28:16 +08:00
parent f2f2669ece
commit bfb2ad9721
2 changed files with 3 additions and 1 deletions

View File

@ -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();

View File

@ -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;