|
|
|
@ -41,6 +41,7 @@ import javax.annotation.Resource;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -208,4 +209,18 @@ public class StorageController {
|
|
|
|
|
PageResult<TplusLastestBomDO> pageResult = tplusLastestBomMapper.selectListByTopCode(reqVO);
|
|
|
|
|
return success(pageResult);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/query-over-task-ratio")
|
|
|
|
|
@Operation(summary = "获得系统参数-可消耗参数")
|
|
|
|
|
@PreAuthorize("@ss.hasPermission('biz:storage:query')")
|
|
|
|
|
public CommonResult<BigDecimal> getOverTaskRatio() {
|
|
|
|
|
|
|
|
|
|
BigDecimal ratio =new BigDecimal(1.2);
|
|
|
|
|
SystemParametersDO systemParametersDO = systemParametersMapper.selectOne("code",SystemParmetersEnum.OVER_TASK_RATIO.getDescription());
|
|
|
|
|
|
|
|
|
|
if(systemParametersDO != null){
|
|
|
|
|
ratio =new BigDecimal(systemParametersDO.getCurrentValue());
|
|
|
|
|
}
|
|
|
|
|
return success(ratio);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|