【获得系统参数-可消耗参数】 /biz/storage/query-over-task-ratio

dev
siontion 3 months ago
parent 5ee4d98785
commit e75a36fb7a

@ -12,6 +12,7 @@ public enum SystemParmetersEnum {
TPLUS_INTERFACE_SWITCH("TPlus_interface_whether"),
NEGATIVE_INVENTORY_SWITCH( "negative_inventory_whether"),
OVER_TASK_RATIO("overtask_ratio"),
OVERTASK_CENTER_LIST("overtask_center_list");
private String description;

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

Loading…
Cancel
Save