配置修改

This commit is contained in:
PC 2026-02-27 11:26:26 +08:00
parent 3dc428925f
commit a3a2f5b373
2 changed files with 7 additions and 7 deletions

View File

@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import static com.cdzy.operations.model.entity.table.EbikeDispatchConfigurationTableDef.EBIKE_DISPATCH_CONFIGURATION; import static com.cdzy.operations.model.entity.table.EbikeWorkOrderConfigurationTableDef.EBIKE_WORK_ORDER_CONFIGURATION;
/** /**
* 工单配置 控制层 * 工单配置 控制层
@ -89,7 +89,7 @@ public class EbikeWorkOrderConfigurationController {
@GetMapping("page") @GetMapping("page")
public JsonResult<?> page(PageParam page) { public JsonResult<?> page(PageParam page) {
QueryWrapper queryWrapper = QueryWrapper.create() QueryWrapper queryWrapper = QueryWrapper.create()
.select(EBIKE_DISPATCH_CONFIGURATION.ALL_COLUMNS); .select(EBIKE_WORK_ORDER_CONFIGURATION.ALL_COLUMNS);
Page<EbikeWorkOrderConfiguration> orderPage = dispatchConfigurationService.pageAs(page.getPage(), queryWrapper, EbikeWorkOrderConfiguration.class); Page<EbikeWorkOrderConfiguration> orderPage = dispatchConfigurationService.pageAs(page.getPage(), queryWrapper, EbikeWorkOrderConfiguration.class);
return JsonResult.success(orderPage); return JsonResult.success(orderPage);
} }

View File

@ -14,7 +14,7 @@ import org.springframework.transaction.annotation.Transactional;
import java.util.Objects; import java.util.Objects;
import static com.cdzy.operations.model.entity.table.EbikeDispatchConfigurationTableDef.EBIKE_DISPATCH_CONFIGURATION; import static com.cdzy.operations.model.entity.table.EbikeWorkOrderConfigurationTableDef.EBIKE_WORK_ORDER_CONFIGURATION;
/** /**
@ -29,8 +29,8 @@ public class EbikeWorkOrderConfigurationServiceImpl extends ServiceImpl<EbikeDis
@Override @Override
public EbikeWorkOrderConfiguration getConfigurationByOperationId(Long operationId) { public EbikeWorkOrderConfiguration getConfigurationByOperationId(Long operationId) {
QueryWrapper queryWrapper = QueryWrapper.create() QueryWrapper queryWrapper = QueryWrapper.create()
.select(EBIKE_DISPATCH_CONFIGURATION.ALL_COLUMNS) .select(EBIKE_WORK_ORDER_CONFIGURATION.ALL_COLUMNS)
.and(EBIKE_DISPATCH_CONFIGURATION.OPERATOR_ID.eq(operationId, Objects.nonNull(operationId))); .and(EBIKE_WORK_ORDER_CONFIGURATION.OPERATOR_ID.eq(operationId, Objects.nonNull(operationId)));
return this.mapper.selectOneByQuery(queryWrapper); return this.mapper.selectOneByQuery(queryWrapper);
} }
@ -54,8 +54,8 @@ public class EbikeWorkOrderConfigurationServiceImpl extends ServiceImpl<EbikeDis
@Override @Override
public void updateConfiguration(EbikeUpdateConfigurationDto dto) { public void updateConfiguration(EbikeUpdateConfigurationDto dto) {
QueryWrapper queryWrapper = QueryWrapper.create() QueryWrapper queryWrapper = QueryWrapper.create()
.select(EBIKE_DISPATCH_CONFIGURATION.ALL_COLUMNS) .select(EBIKE_WORK_ORDER_CONFIGURATION.ALL_COLUMNS)
.where(EBIKE_DISPATCH_CONFIGURATION.CONFIGURATION_ID.eq(dto.getConfigurationId())); .where(EBIKE_WORK_ORDER_CONFIGURATION.CONFIGURATION_ID.eq(dto.getConfigurationId()));
EbikeWorkOrderConfiguration configuration = this.mapper.selectOneByQuery(queryWrapper); EbikeWorkOrderConfiguration configuration = this.mapper.selectOneByQuery(queryWrapper);
if (Objects.isNull(configuration)) { if (Objects.isNull(configuration)) {
throw new EbikeException("配置项不存在"); throw new EbikeException("配置项不存在");