parent
1e7d2f4b51
commit
608cc20c46
70 changed files with 3274 additions and 91 deletions
@ -0,0 +1,173 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.controller; |
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import io.swagger.v3.oas.annotations.Parameter; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import jakarta.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.secure.annotation.IsAdmin; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.excel.CraftAbilityExcel; |
||||
import org.springblade.scheduling.scheduling.service.ICraftAbilityService; |
||||
import org.springblade.scheduling.scheduling.vo.CraftAbilityVO; |
||||
import org.springblade.scheduling.scheduling.wrapper.CraftAbilityWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 工艺能力 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/craftAbility") |
||||
@Tag(name = "工艺能力", description = "工艺能力接口") |
||||
public class CraftAbilityController extends BladeController { |
||||
|
||||
private final ICraftAbilityService craftAbilityService; |
||||
|
||||
/** |
||||
* 工艺能力 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入CraftAbility") |
||||
public R<CraftAbilityVO> detail(CraftAbilityEntity craftAbility) { |
||||
CraftAbilityEntity detail = craftAbilityService.getOne(Condition.getQueryWrapper(craftAbility)); |
||||
return R.data(CraftAbilityWrapper.build().entityVO(detail)); |
||||
} |
||||
/** |
||||
* 工艺能力 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入CraftAbility") |
||||
public R<IPage<CraftAbilityVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> craftAbility, Query query) { |
||||
IPage<CraftAbilityEntity> pages = craftAbilityService.page(Condition.getPage(query), Condition.getQueryWrapper(craftAbility, CraftAbilityEntity.class)); |
||||
return R.data(CraftAbilityWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入CraftAbility") |
||||
public R<IPage<CraftAbilityVO>> page(CraftAbilityVO craftAbility, Query query) { |
||||
IPage<CraftAbilityVO> pages = craftAbilityService.selectCraftAbilityPage(Condition.getPage(query), craftAbility); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入CraftAbility") |
||||
public R save(@Valid @RequestBody CraftAbilityEntity craftAbility) { |
||||
return R.status(craftAbilityService.save(craftAbility)); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入CraftAbility") |
||||
public R update(@Valid @RequestBody CraftAbilityEntity craftAbility) { |
||||
return R.status(craftAbilityService.updateById(craftAbility)); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入CraftAbility") |
||||
public R submit(@Valid @RequestBody CraftAbilityEntity craftAbility) { |
||||
return R.status(craftAbilityService.saveOrUpdate(craftAbility)); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(craftAbilityService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-CraftAbility") |
||||
@ApiOperationSupport(order = 9) |
||||
@Operation(summary = "导出数据", description = "传入CraftAbility") |
||||
public void exportCraftAbility(@Parameter(hidden = true) @RequestParam Map<String, Object> craftAbility, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<CraftAbilityEntity> queryWrapper = Condition.getQueryWrapper(craftAbility, CraftAbilityEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(CraftAbility::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(CraftAbilityEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<CraftAbilityExcel> list = craftAbilityService.export(queryWrapper); |
||||
ExcelUtil.export(response, "工艺能力数据" + DateUtil.time(), "工艺能力数据表", list, CraftAbilityExcel.class); |
||||
} |
||||
|
||||
/** |
||||
* 工艺能力表查询列表 |
||||
*/ |
||||
@GetMapping("/findList") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "列表", description = "传入CraftAbility") |
||||
public R<List<CraftAbilityEntity>> findList() { |
||||
List<CraftAbilityEntity> list = craftAbilityService.list(); |
||||
return R.data(list); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,170 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.controller; |
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import io.swagger.v3.oas.annotations.Parameter; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import lombok.AllArgsConstructor; |
||||
import jakarta.validation.Valid; |
||||
|
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.secure.annotation.IsAdmin; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
import org.springblade.scheduling.scheduling.excel.EquipmentExcel; |
||||
import org.springblade.scheduling.scheduling.service.IEquipmentService; |
||||
import org.springblade.scheduling.scheduling.vo.EquipmentVO; |
||||
import org.springblade.scheduling.scheduling.wrapper.EquipmentWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.tool.constant.BladeConstant; |
||||
import java.util.Map; |
||||
import java.util.List; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
|
||||
/** |
||||
* 设备信息表 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/equipment") |
||||
@Tag(name = "设备信息表", description = "设备信息表接口") |
||||
public class EquipmentController extends BladeController { |
||||
|
||||
private final IEquipmentService equipmentService; |
||||
|
||||
/** |
||||
* 设备信息表 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入Equipment") |
||||
public R<EquipmentVO> detail(EquipmentEntity equipment) { |
||||
EquipmentEntity detail = equipmentService.getOne(Condition.getQueryWrapper(equipment)); |
||||
return R.data(EquipmentWrapper.build().entityVO(detail)); |
||||
} |
||||
/** |
||||
* 设备信息表 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入Equipment") |
||||
public R<IPage<EquipmentVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> equipment, Query query) { |
||||
IPage<EquipmentEntity> pages = equipmentService.page(Condition.getPage(query), Condition.getQueryWrapper(equipment, EquipmentEntity.class)); |
||||
return R.data(EquipmentWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
/** |
||||
* 设备信息表 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入Equipment") |
||||
public R<IPage<EquipmentVO>> page(EquipmentVO equipment, Query query) { |
||||
IPage<EquipmentVO> pages = equipmentService.selectEquipmentPage(Condition.getPage(query), equipment); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 设备信息表 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入Equipment") |
||||
public R save(@Valid @RequestBody EquipmentEntity equipment) { |
||||
return R.status(equipmentService.save(equipment)); |
||||
} |
||||
|
||||
/** |
||||
* 设备信息表 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入Equipment") |
||||
public R update(@Valid @RequestBody EquipmentEntity equipment) { |
||||
return R.status(equipmentService.updateById(equipment)); |
||||
} |
||||
|
||||
/** |
||||
* 设备信息表 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入Equipment") |
||||
public R submit(@Valid @RequestBody EquipmentEntity equipment) { |
||||
return R.status(equipmentService.saveOrUpdate(equipment)); |
||||
} |
||||
|
||||
/** |
||||
* 设备信息表 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(equipmentService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-Equipment") |
||||
@ApiOperationSupport(order = 9) |
||||
@Operation(summary = "导出数据", description = "传入Equipment") |
||||
public void exportEquipment(@Parameter(hidden = true) @RequestParam Map<String, Object> equipment, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<EquipmentEntity> queryWrapper = Condition.getQueryWrapper(equipment, EquipmentEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(Equipment::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(EquipmentEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<EquipmentExcel> list = equipmentService.export(queryWrapper); |
||||
ExcelUtil.export(response, "设备信息表数据" + DateUtil.time(), "设备信息表数据表", list, EquipmentExcel.class); |
||||
} |
||||
|
||||
@GetMapping("/findList") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "列表", description = "传入Equipment") |
||||
public R<List<EquipmentEntity>> findList() { |
||||
List<EquipmentEntity> list = equipmentService.list(); |
||||
return R.data(list); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,170 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import io.swagger.v3.oas.annotations.Parameter; |
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
import jakarta.validation.Valid; |
||||
import lombok.AllArgsConstructor; |
||||
import org.apache.commons.lang3.StringUtils; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.secure.annotation.IsAdmin; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
import org.springblade.scheduling.scheduling.excel.ProcessSetExcel; |
||||
import org.springblade.scheduling.scheduling.service.IProcessSetService; |
||||
import org.springblade.scheduling.scheduling.vo.ProcessSetVO; |
||||
import org.springblade.scheduling.scheduling.wrapper.ProcessSetWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 工序设置表 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/processSet") |
||||
@Tag(name = "工序设置表", description = "工序设置表接口") |
||||
public class ProcessSetController extends BladeController { |
||||
|
||||
private final IProcessSetService processSetService; |
||||
|
||||
/** |
||||
* 工序设置表 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入ProcessSet") |
||||
public R<ProcessSetVO> detail(ProcessSetEntity processSet) { |
||||
ProcessSetEntity detail = processSetService.getOne(Condition.getQueryWrapper(processSet)); |
||||
return R.data(ProcessSetWrapper.build().entityVO(detail)); |
||||
} |
||||
/** |
||||
* 工序设置表 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入ProcessSet") |
||||
public R<IPage<ProcessSetVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> processSet, Query query) { |
||||
IPage<ProcessSetEntity> pages = processSetService.page(Condition.getPage(query), Condition.getQueryWrapper(processSet, ProcessSetEntity.class)); |
||||
return R.data(ProcessSetWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
/** |
||||
* 工序设置表 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入ProcessSet") |
||||
public R<IPage<ProcessSetVO>> page(ProcessSetVO processSet, Query query) { |
||||
IPage<ProcessSetVO> pages = processSetService.selectProcessSetPage(Condition.getPage(query), processSet); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 工序设置表 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入ProcessSet") |
||||
public R save(@Valid @RequestBody ProcessSetEntity processSet) { |
||||
return R.status(processSetService.save(processSet)); |
||||
} |
||||
|
||||
/** |
||||
* 工序设置表 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入ProcessSet") |
||||
public R update(@Valid @RequestBody ProcessSetEntity processSet) { |
||||
return R.status(processSetService.updateById(processSet)); |
||||
} |
||||
|
||||
/** |
||||
* 工序设置表 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入ProcessSet") |
||||
public R submit(@Valid @RequestBody ProcessSetEntity processSet) { |
||||
return R.status(processSetService.saveOrUpdate(processSet)); |
||||
} |
||||
|
||||
/** |
||||
* 工序设置表 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(processSetService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-ProcessSet") |
||||
@ApiOperationSupport(order = 9) |
||||
@Operation(summary = "导出数据", description = "传入ProcessSet") |
||||
public void exportProcessSet(@Parameter(hidden = true) @RequestParam Map<String, Object> processSet, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<ProcessSetEntity> queryWrapper = Condition.getQueryWrapper(processSet, ProcessSetEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(ProcessSet::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(ProcessSetEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<ProcessSetExcel> list = processSetService.export(queryWrapper); |
||||
ExcelUtil.export(response, "工序设置表数据" + DateUtil.time(), "工序设置表数据表", list, ProcessSetExcel.class); |
||||
} |
||||
|
||||
@GetMapping("/findList") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "列表", description = "传入Equipment") |
||||
public R<List<ProcessSetEntity>> findList() { |
||||
List<ProcessSetEntity> list = processSetService.list(); |
||||
return R.data(list); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,171 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import io.swagger.v3.oas.annotations.Parameter; |
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
import jakarta.validation.Valid; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.excel.util.ExcelUtil; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.secure.BladeUser; |
||||
import org.springblade.core.secure.annotation.IsAdmin; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.excel.WorkCenterExcel; |
||||
import org.springblade.scheduling.scheduling.service.IWorkCenterService; |
||||
import org.springblade.scheduling.scheduling.vo.WorkCenterVO; |
||||
import org.springblade.scheduling.scheduling.wrapper.WorkCenterWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* 工作中心表 控制器 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/workCenter") |
||||
@Tag(name = "工作中心表", description = "工作中心表接口") |
||||
public class WorkCenterController extends BladeController { |
||||
|
||||
private final IWorkCenterService workCenterService; |
||||
|
||||
/** |
||||
* 工作中心表 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入WorkCenter") |
||||
public R<WorkCenterVO> detail(WorkCenterEntity workCenter) { |
||||
WorkCenterEntity detail = workCenterService.getOne(Condition.getQueryWrapper(workCenter)); |
||||
return R.data(WorkCenterWrapper.build().entityVO(detail)); |
||||
} |
||||
/** |
||||
* 工作中心表 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入WorkCenter") |
||||
public R<IPage<WorkCenterVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> workCenter, Query query) { |
||||
IPage<WorkCenterEntity> pages = workCenterService.page(Condition.getPage(query), Condition.getQueryWrapper(workCenter, WorkCenterEntity.class)); |
||||
return R.data(WorkCenterWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入WorkCenter") |
||||
public R<IPage<WorkCenterVO>> page(WorkCenterVO workCenter, Query query) { |
||||
IPage<WorkCenterVO> pages = workCenterService.selectWorkCenterPage(Condition.getPage(query), workCenter); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入WorkCenter") |
||||
public R save(@Valid @RequestBody WorkCenterEntity workCenter) { |
||||
return R.status(workCenterService.save(workCenter)); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入WorkCenter") |
||||
public R update(@Valid @RequestBody WorkCenterEntity workCenter) { |
||||
return R.status(workCenterService.updateById(workCenter)); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入WorkCenter") |
||||
public R submit(@Valid @RequestBody WorkCenterEntity workCenter) { |
||||
return R.status(workCenterService.saveOrUpdate(workCenter)); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(workCenterService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-WorkCenter") |
||||
@ApiOperationSupport(order = 9) |
||||
@Operation(summary = "导出数据", description = "传入WorkCenter") |
||||
public void exportWorkCenter(@Parameter(hidden = true) @RequestParam Map<String, Object> workCenter, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<WorkCenterEntity> queryWrapper = Condition.getQueryWrapper(workCenter, WorkCenterEntity.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(WorkCenter::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(WorkCenterEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<WorkCenterExcel> list = workCenterService.export(queryWrapper); |
||||
ExcelUtil.export(response, "工作中心表数据" + DateUtil.time(), "工作中心表数据表", list, WorkCenterExcel.class); |
||||
} |
||||
|
||||
/** |
||||
* 工作中心表 分页 |
||||
*/ |
||||
@GetMapping("/findList") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "列表", description = "传入WorkCenter") |
||||
public R<List<WorkCenterEntity>> findList() { |
||||
List<WorkCenterEntity> list = workCenterService.list(); |
||||
return R.data(list); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,74 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.entity; |
||||
|
||||
import lombok.Data; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工艺能力 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@TableName("BS_CRAFT_ABILITY") |
||||
@Schema(description = "BsCraftAbility对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class CraftAbilityEntity extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 作业中心 |
||||
*/ |
||||
@Schema(description = "作业中心") |
||||
private String caCode; |
||||
/** |
||||
* 设备编码 |
||||
*/ |
||||
@Schema(description = "设备编码") |
||||
private String caName; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@Schema(description = "设备分类") |
||||
private Long wtId; |
||||
/** |
||||
* 设备名称 |
||||
*/ |
||||
@Schema(description = "设备名称") |
||||
private Long bpsId; |
||||
|
||||
} |
||||
@ -0,0 +1,119 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.entity; |
||||
|
||||
import lombok.Data; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 设备信息表 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@TableName("MES_EQUIPMENT") |
||||
@Schema(description = "MesEquipment对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class EquipmentEntity extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 设备编码 |
||||
*/ |
||||
@Schema(description = "设备编码") |
||||
private String deviceCode; |
||||
/** |
||||
* 设备名称 |
||||
*/ |
||||
@Schema(description = "设备名称") |
||||
private String deviceName; |
||||
/** |
||||
* 类别名称 |
||||
*/ |
||||
@Schema(description = "类别名称") |
||||
private String typeName; |
||||
/** |
||||
* 规格型号 |
||||
*/ |
||||
@Schema(description = "规格型号") |
||||
private String macSpec; |
||||
/** |
||||
* 服役状态;1、正常服役,2、暂停服役 |
||||
*/ |
||||
@Schema(description = "服役状态;1、正常服役,2、暂停服役") |
||||
private BigDecimal used; |
||||
/** |
||||
* RFID |
||||
*/ |
||||
@Schema(description = "RFID") |
||||
private String rfId; |
||||
/** |
||||
* 虚拟设备;1.是, 0.否 |
||||
*/ |
||||
@Schema(description = "虚拟设备;1.是, 0.否") |
||||
private String virtualMac; |
||||
/** |
||||
* 是否对接;1.是, 0.否 |
||||
*/ |
||||
@Schema(description = "是否对接;1.是, 0.否") |
||||
private String docking; |
||||
/** |
||||
* 类别说明 |
||||
*/ |
||||
@Schema(description = "类别说明") |
||||
private String memo; |
||||
/** |
||||
* 绑定数量 |
||||
*/ |
||||
@Schema(description = "绑定数量") |
||||
private BigDecimal bindQty; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@Schema(description = "设备分类") |
||||
private String category; |
||||
/** |
||||
* 设备ip |
||||
*/ |
||||
@Schema(description = "设备ip") |
||||
private String deviceIp; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@Schema(description = "设备分类") |
||||
private String categorys; |
||||
|
||||
} |
||||
@ -0,0 +1,129 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.entity; |
||||
|
||||
import lombok.Data; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工序设置表 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@TableName("BS_PROCESS_SET") |
||||
@Schema(description = "BsProcessSet对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class ProcessSetEntity extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* Ni+ |
||||
*/ |
||||
@Schema(description = "Ni+") |
||||
private String niValue; |
||||
/** |
||||
* 转速/振频 |
||||
*/ |
||||
@Schema(description = "转速/振频") |
||||
private String vSpeed; |
||||
/** |
||||
* 整流机控制模式 |
||||
*/ |
||||
@Schema(description = "整流机控制模式") |
||||
private String cyropactorControl; |
||||
/** |
||||
* 班组 |
||||
*/ |
||||
@Schema(description = "班组") |
||||
private String team; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private BigDecimal newColumn; |
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@Schema(description = "编码") |
||||
private String code; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@Schema(description = "名称") |
||||
private String name; |
||||
/** |
||||
* 标准周期 |
||||
*/ |
||||
@Schema(description = "标准周期") |
||||
private BigDecimal cycle; |
||||
/** |
||||
* 是否主工序 |
||||
*/ |
||||
@Schema(description = "是否主工序") |
||||
private String isMain; |
||||
/** |
||||
* 是否特殊 |
||||
*/ |
||||
@Schema(description = "是否特殊") |
||||
private String isSpecial; |
||||
/** |
||||
* 是否分派 |
||||
*/ |
||||
@Schema(description = "是否分派") |
||||
private String isDispatch; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@Schema(description = "备注") |
||||
private String remarks; |
||||
/** |
||||
* 电流(A) |
||||
*/ |
||||
@Schema(description = "电流(A)") |
||||
private String eleStream; |
||||
/** |
||||
* 电导率 |
||||
*/ |
||||
@Schema(description = "电导率") |
||||
private String eleRate; |
||||
/** |
||||
* PH |
||||
*/ |
||||
@Schema(description = "PH") |
||||
private String phValue; |
||||
|
||||
} |
||||
@ -0,0 +1,154 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.entity; |
||||
|
||||
import lombok.Data; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springblade.core.tenant.mp.TenantEntity; |
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工作中心表 实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@TableName("BS_WORK_CENTER") |
||||
@Schema(description = "BsWorkCenter对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkCenterEntity extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@Schema(description = "编码") |
||||
private String wcCode; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@Schema(description = "名称") |
||||
private String wcName; |
||||
/** |
||||
* 工序 |
||||
*/ |
||||
@Schema(description = "工序") |
||||
private String processes; |
||||
/** |
||||
* 工艺能力 |
||||
*/ |
||||
@Schema(description = "工艺能力") |
||||
private String craftAbility; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
@Schema(description = "业务标识") |
||||
private String sign; |
||||
/** |
||||
* 主管工艺员(外键-人员) |
||||
*/ |
||||
@Schema(description = "主管工艺员(外键-人员)") |
||||
private BigDecimal leaderUser; |
||||
/** |
||||
* 班组 |
||||
*/ |
||||
@Schema(description = "班组") |
||||
private String team; |
||||
/** |
||||
* 面积 |
||||
*/ |
||||
@Schema(description = "面积") |
||||
private BigDecimal area; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@Schema(description = "数量") |
||||
private Long quantity; |
||||
/** |
||||
* 批次 |
||||
*/ |
||||
@Schema(description = "批次") |
||||
private Long batchNo; |
||||
/** |
||||
* 饱和度 |
||||
*/ |
||||
@Schema(description = "饱和度") |
||||
private BigDecimal saturation; |
||||
/** |
||||
* 是否检验(0:不需检验;1:需检验) |
||||
*/ |
||||
@Schema(description = "是否检验(0:不需检验;1:需检验)") |
||||
private Short checkout; |
||||
/** |
||||
* 是否镀后(0:不需要;1:需要) |
||||
*/ |
||||
@Schema(description = "是否镀后(0:不需要;1:需要)") |
||||
private Short whetherPlate; |
||||
/** |
||||
* 是否大批量(0:不是;1:是) |
||||
*/ |
||||
@Schema(description = "是否大批量(0:不是;1:是)") |
||||
private Short bigBatch; |
||||
/** |
||||
* 开始点位 |
||||
*/ |
||||
@Schema(description = "开始点位") |
||||
private String startPoint; |
||||
/** |
||||
* 结束点位 |
||||
*/ |
||||
@Schema(description = "结束点位") |
||||
private String endPoint; |
||||
/** |
||||
* 轮转周期 |
||||
*/ |
||||
@Schema(description = "轮转周期") |
||||
private Long roundCycle; |
||||
/** |
||||
* 描述 |
||||
*/ |
||||
@Schema(description = "描述") |
||||
private String describe; |
||||
/** |
||||
* 交付中心(外键) |
||||
*/ |
||||
@Schema(description = "交付中心(外键)") |
||||
private BigDecimal jcId; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private String remarks; |
||||
|
||||
} |
||||
@ -0,0 +1,93 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
import java.io.Serial; |
||||
|
||||
|
||||
/** |
||||
* 工艺能力 Excel实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class CraftAbilityExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 产品ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("产品ID") |
||||
private BigDecimal id; |
||||
/** |
||||
* 作业中心 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("作业中心") |
||||
private String caCode; |
||||
/** |
||||
* 设备编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备编码") |
||||
private String caName; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备分类") |
||||
private Long wtId; |
||||
/** |
||||
* 设备名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备名称") |
||||
private Long bpsId; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否已删除") |
||||
private Long isDeleted; |
||||
|
||||
} |
||||
@ -0,0 +1,147 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
import java.io.Serial; |
||||
|
||||
|
||||
/** |
||||
* 设备信息表 Excel实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class EquipmentExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("ID") |
||||
private BigDecimal id; |
||||
/** |
||||
* 设备编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备编码") |
||||
private String deviceCode; |
||||
/** |
||||
* 设备名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备名称") |
||||
private String deviceName; |
||||
/** |
||||
* 类别名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("类别名称") |
||||
private String typeName; |
||||
/** |
||||
* 规格型号 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("规格型号") |
||||
private String macSpec; |
||||
/** |
||||
* 服役状态;1、正常服役,2、暂停服役 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("服役状态;1、正常服役,2、暂停服役") |
||||
private BigDecimal used; |
||||
/** |
||||
* RFID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("RFID") |
||||
private String rfId; |
||||
/** |
||||
* 虚拟设备;1.是, 0.否 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("虚拟设备;1.是, 0.否") |
||||
private String virtualMac; |
||||
/** |
||||
* 是否对接;1.是, 0.否 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否对接;1.是, 0.否") |
||||
private String docking; |
||||
/** |
||||
* 类别说明 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("类别说明") |
||||
private String memo; |
||||
/** |
||||
* 绑定数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("绑定数量") |
||||
private BigDecimal bindQty; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备分类") |
||||
private String category; |
||||
/** |
||||
* 设备ip |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备ip") |
||||
private String deviceIp; |
||||
/** |
||||
* 设备分类 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("设备分类") |
||||
private String categorys; |
||||
/** |
||||
* 是否已删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否已删除") |
||||
private Long isDeleted; |
||||
|
||||
} |
||||
@ -0,0 +1,159 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
import java.io.Serial; |
||||
|
||||
|
||||
/** |
||||
* 工序设置表 Excel实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class ProcessSetExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* Ni+ |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("Ni+") |
||||
private String niValue; |
||||
/** |
||||
* 转速/振频 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("转速/振频") |
||||
private String vSpeed; |
||||
/** |
||||
* 整流机控制模式 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("整流机控制模式") |
||||
private String cyropactorControl; |
||||
/** |
||||
* 班组 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("班组") |
||||
private String team; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private BigDecimal newColumn; |
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("主键") |
||||
private BigDecimal id; |
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("编码") |
||||
private String code; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("名称") |
||||
private String name; |
||||
/** |
||||
* 标准周期 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("标准周期") |
||||
private BigDecimal cycle; |
||||
/** |
||||
* 是否主工序 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否主工序") |
||||
private String isMain; |
||||
/** |
||||
* 是否特殊 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否特殊") |
||||
private String isSpecial; |
||||
/** |
||||
* 是否分派 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否分派") |
||||
private String isDispatch; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("备注") |
||||
private String remarks; |
||||
/** |
||||
* 是否删除 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否删除") |
||||
private Long isDeleted; |
||||
/** |
||||
* 电流(A) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("电流(A)") |
||||
private String eleStream; |
||||
/** |
||||
* 电导率 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("电导率") |
||||
private String eleRate; |
||||
/** |
||||
* PH |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("PH") |
||||
private String phValue; |
||||
|
||||
} |
||||
@ -0,0 +1,189 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.excel; |
||||
|
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.math.BigDecimal; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import com.alibaba.excel.annotation.write.style.ColumnWidth; |
||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight; |
||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight; |
||||
import java.io.Serializable; |
||||
import java.io.Serial; |
||||
|
||||
|
||||
/** |
||||
* 工作中心表 Excel实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class WorkCenterExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键ID |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("主键ID") |
||||
private BigDecimal id; |
||||
/** |
||||
* 编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("编码") |
||||
private String wcCode; |
||||
/** |
||||
* 名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("名称") |
||||
private String wcName; |
||||
/** |
||||
* 工序 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("工序") |
||||
private String processes; |
||||
/** |
||||
* 工艺能力 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("工艺能力") |
||||
private String craftAbility; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("业务标识") |
||||
private String sign; |
||||
/** |
||||
* 主管工艺员(外键-人员) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("主管工艺员(外键-人员)") |
||||
private BigDecimal leaderUser; |
||||
/** |
||||
* 班组 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("班组") |
||||
private String team; |
||||
/** |
||||
* 面积 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("面积") |
||||
private BigDecimal area; |
||||
/** |
||||
* 数量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("数量") |
||||
private Long quantity; |
||||
/** |
||||
* 批次 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("批次") |
||||
private Long batchNo; |
||||
/** |
||||
* 饱和度 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("饱和度") |
||||
private BigDecimal saturation; |
||||
/** |
||||
* 是否检验(0:不需检验;1:需检验) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否检验(0:不需检验;1:需检验)") |
||||
private Short checkout; |
||||
/** |
||||
* 是否镀后(0:不需要;1:需要) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否镀后(0:不需要;1:需要)") |
||||
private Short whetherPlate; |
||||
/** |
||||
* 是否大批量(0:不是;1:是) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否大批量(0:不是;1:是)") |
||||
private Short bigBatch; |
||||
/** |
||||
* 开始点位 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("开始点位") |
||||
private String startPoint; |
||||
/** |
||||
* 结束点位 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("结束点位") |
||||
private String endPoint; |
||||
/** |
||||
* 轮转周期 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("轮转周期") |
||||
private Long roundCycle; |
||||
/** |
||||
* 描述 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("描述") |
||||
private String describe; |
||||
/** |
||||
* 交付中心(外键) |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("交付中心(外键)") |
||||
private BigDecimal jcId; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private String remarks; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private Long isDeleted; |
||||
|
||||
} |
||||
@ -0,0 +1,64 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.excel.CraftAbilityExcel; |
||||
import org.springblade.scheduling.scheduling.vo.CraftAbilityVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface CraftAbilityMapper extends BaseMapper<CraftAbilityEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param CraftAbility 查询参数 |
||||
* @return List<CraftAbilityVO> |
||||
*/ |
||||
List<CraftAbilityVO> selectCraftAbilityPage(IPage page, CraftAbilityVO craftAbility); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<CraftAbilityExcel> |
||||
*/ |
||||
List<CraftAbilityExcel> export(@Param("ew") Wrapper<CraftAbilityEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,31 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.springblade.scheduling.scheduling.mapper.CraftAbilityMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="craftAbilityResultMap" type="org.springblade.scheduling.scheduling.entity.CraftAbilityEntity"> |
||||
<result column="ID" property="id"/> |
||||
<result column="CA_CODE" property="caCode"/> |
||||
<result column="CA_NAME" property="caName"/> |
||||
<result column="WT_ID" property="wtId"/> |
||||
<result column="BPS_ID" property="bpsId"/> |
||||
<result column="CREATE_USER" property="createUser"/> |
||||
<result column="CREATE_DEPT" property="createDept"/> |
||||
<result column="CREATE_TIME" property="createTime"/> |
||||
<result column="UPDATE_USER" property="updateUser"/> |
||||
<result column="UPDATE_TIME" property="updateTime"/> |
||||
<result column="STATUS" property="status"/> |
||||
<result column="IS_DELETED" property="isDeleted"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectCraftAbilityPage" resultMap="craftAbilityResultMap"> |
||||
select * from BS_CRAFT_ABILITY where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="export" resultType="org.springblade.scheduling.scheduling.excel.CraftAbilityExcel"> |
||||
SELECT * FROM BS_CRAFT_ABILITY ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,64 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
import org.springblade.scheduling.scheduling.excel.EquipmentExcel; |
||||
import org.springblade.scheduling.scheduling.vo.EquipmentVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 设备信息表 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface EquipmentMapper extends BaseMapper<EquipmentEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param Equipment 查询参数 |
||||
* @return List<EquipmentVO> |
||||
*/ |
||||
List<EquipmentVO> selectEquipmentPage(IPage page, EquipmentVO equipment); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<EquipmentExcel> |
||||
*/ |
||||
List<EquipmentExcel> export(@Param("ew") Wrapper<EquipmentEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.springblade.scheduling.scheduling.mapper.EquipmentMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="equipmentResultMap" type="org.springblade.scheduling.scheduling.entity.EquipmentEntity"> |
||||
<result column="ID" property="id"/> |
||||
<result column="DEVICE_CODE" property="deviceCode"/> |
||||
<result column="DEVICE_NAME" property="deviceName"/> |
||||
<result column="TYPE_NAME" property="typeName"/> |
||||
<result column="MAC_SPEC" property="macSpec"/> |
||||
<result column="USED" property="used"/> |
||||
<result column="RF_ID" property="rfId"/> |
||||
<result column="VIRTUAL_MAC" property="virtualMac"/> |
||||
<result column="DOCKING" property="docking"/> |
||||
<result column="MEMO" property="memo"/> |
||||
<result column="BIND_QTY" property="bindQty"/> |
||||
<result column="CATEGORY" property="category"/> |
||||
<result column="DEVICE_IP" property="deviceIp"/> |
||||
<result column="CATEGORYS" property="categorys"/> |
||||
<result column="CREATE_USER" property="createUser"/> |
||||
<result column="CREATE_DEPT" property="createDept"/> |
||||
<result column="CREATE_TIME" property="createTime"/> |
||||
<result column="UPDATE_USER" property="updateUser"/> |
||||
<result column="UPDATE_TIME" property="updateTime"/> |
||||
<result column="STATUS" property="status"/> |
||||
<result column="IS_DELETED" property="isDeleted"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectEquipmentPage" resultMap="equipmentResultMap"> |
||||
select * from MES_EQUIPMENT where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="export" resultType="org.springblade.scheduling.scheduling.excel.EquipmentExcel"> |
||||
SELECT * FROM MES_EQUIPMENT ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,64 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
import org.springblade.scheduling.scheduling.excel.ProcessSetExcel; |
||||
import org.springblade.scheduling.scheduling.vo.ProcessSetVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工序设置表 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface ProcessSetMapper extends BaseMapper<ProcessSetEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param ProcessSet 查询参数 |
||||
* @return List<ProcessSetVO> |
||||
*/ |
||||
List<ProcessSetVO> selectProcessSetPage(IPage page, ProcessSetVO processSet); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<ProcessSetExcel> |
||||
*/ |
||||
List<ProcessSetExcel> export(@Param("ew") Wrapper<ProcessSetEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,42 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.springblade.scheduling.scheduling.mapper.ProcessSetMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="processSetResultMap" type="org.springblade.scheduling.scheduling.entity.ProcessSetEntity"> |
||||
<result column="NI_VALUE" property="niValue"/> |
||||
<result column="V_SPEED" property="vSpeed"/> |
||||
<result column="CYROPACTOR_CONTROL" property="cyropactorControl"/> |
||||
<result column="TEAM" property="team"/> |
||||
<result column="NEW_COLUMN" property="newColumn"/> |
||||
<result column="ID" property="id"/> |
||||
<result column="CODE" property="code"/> |
||||
<result column="NAME" property="name"/> |
||||
<result column="CYCLE" property="cycle"/> |
||||
<result column="IS_MAIN" property="isMain"/> |
||||
<result column="IS_SPECIAL" property="isSpecial"/> |
||||
<result column="IS_DISPATCH" property="isDispatch"/> |
||||
<result column="CREATE_TIME" property="createTime"/> |
||||
<result column="CREATE_USER" property="createUser"/> |
||||
<result column="CREATE_DEPT" property="createDept"/> |
||||
<result column="UPDATE_TIME" property="updateTime"/> |
||||
<result column="UPDATE_USER" property="updateUser"/> |
||||
<result column="REMARKS" property="remarks"/> |
||||
<result column="STATUS" property="status"/> |
||||
<result column="IS_DELETED" property="isDeleted"/> |
||||
<result column="ELE_STREAM" property="eleStream"/> |
||||
<result column="ELE_RATE" property="eleRate"/> |
||||
<result column="PH_VALUE" property="phValue"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectProcessSetPage" resultMap="processSetResultMap"> |
||||
select * from BS_PROCESS_SET where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="export" resultType="org.springblade.scheduling.scheduling.excel.ProcessSetExcel"> |
||||
SELECT * FROM BS_PROCESS_SET ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,64 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.excel.WorkCenterExcel; |
||||
import org.springblade.scheduling.scheduling.vo.WorkCenterVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作中心表 Mapper 接口 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface WorkCenterMapper extends BaseMapper<WorkCenterEntity> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param WorkCenter 查询参数 |
||||
* @return List<WorkCenterVO> |
||||
*/ |
||||
List<WorkCenterVO> selectWorkCenterPage(IPage page, WorkCenterVO workCenter); |
||||
|
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<WorkCenterExcel> |
||||
*/ |
||||
List<WorkCenterExcel> export(@Param("ew") Wrapper<WorkCenterEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,47 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="org.springblade.scheduling.scheduling.mapper.WorkCenterMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="workCenterResultMap" type="org.springblade.scheduling.scheduling.entity.WorkCenterEntity"> |
||||
<result column="ID" property="id"/> |
||||
<result column="WC_CODE" property="wcCode"/> |
||||
<result column="WC_NAME" property="wcName"/> |
||||
<result column="PROCESSES" property="processes"/> |
||||
<result column="CRAFT_ABILITY" property="craftAbility"/> |
||||
<result column="SIGN" property="sign"/> |
||||
<result column="LEADER_USER" property="leaderUser"/> |
||||
<result column="TEAM" property="team"/> |
||||
<result column="AREA" property="area"/> |
||||
<result column="QUANTITY" property="quantity"/> |
||||
<result column="BATCH_NO" property="batchNo"/> |
||||
<result column="SATURATION" property="saturation"/> |
||||
<result column="CHECKOUT" property="checkout"/> |
||||
<result column="WHETHER_PLATE" property="whetherPlate"/> |
||||
<result column="BIG_BATCH" property="bigBatch"/> |
||||
<result column="START_POINT" property="startPoint"/> |
||||
<result column="END_POINT" property="endPoint"/> |
||||
<result column="ROUND_CYCLE" property="roundCycle"/> |
||||
<result column="DESCRIBE" property="describe"/> |
||||
<result column="JC_ID" property="jcId"/> |
||||
<result column="CREATE_TIME" property="createTime"/> |
||||
<result column="CREATE_USER" property="createUser"/> |
||||
<result column="CREATE_DEPT" property="createDept"/> |
||||
<result column="UPDATE_TIME" property="updateTime"/> |
||||
<result column="UPDATE_USER" property="updateUser"/> |
||||
<result column="REMARKS" property="remarks"/> |
||||
<result column="STATUS" property="status"/> |
||||
<result column="IS_DELETED" property="isDeleted"/> |
||||
</resultMap> |
||||
|
||||
|
||||
<select id="selectWorkCenterPage" resultMap="workCenterResultMap"> |
||||
select * from BS_WORK_CENTER where is_deleted = 0 |
||||
</select> |
||||
|
||||
|
||||
<select id="export" resultType="org.springblade.scheduling.scheduling.excel.WorkCenterExcel"> |
||||
SELECT * FROM BS_WORK_CENTER ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,62 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.excel.CraftAbilityExcel; |
||||
import org.springblade.scheduling.scheduling.vo.CraftAbilityVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface ICraftAbilityService extends BaseService<CraftAbilityEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param CraftAbility 查询参数 |
||||
* @return IPage<CraftAbilityVO> |
||||
*/ |
||||
IPage<CraftAbilityVO> selectCraftAbilityPage(IPage<CraftAbilityVO> page, CraftAbilityVO craftAbility); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<CraftAbilityExcel> |
||||
*/ |
||||
List<CraftAbilityExcel> export(Wrapper<CraftAbilityEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,62 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
import org.springblade.scheduling.scheduling.excel.EquipmentExcel; |
||||
import org.springblade.scheduling.scheduling.vo.EquipmentVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 设备信息表 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface IEquipmentService extends BaseService<EquipmentEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param Equipment 查询参数 |
||||
* @return IPage<EquipmentVO> |
||||
*/ |
||||
IPage<EquipmentVO> selectEquipmentPage(IPage<EquipmentVO> page, EquipmentVO equipment); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<EquipmentExcel> |
||||
*/ |
||||
List<EquipmentExcel> export(Wrapper<EquipmentEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,62 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
import org.springblade.scheduling.scheduling.excel.ProcessSetExcel; |
||||
import org.springblade.scheduling.scheduling.vo.ProcessSetVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工序设置表 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface IProcessSetService extends BaseService<ProcessSetEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param ProcessSet 查询参数 |
||||
* @return IPage<ProcessSetVO> |
||||
*/ |
||||
IPage<ProcessSetVO> selectProcessSetPage(IPage<ProcessSetVO> page, ProcessSetVO ProcessSet); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<ProcessSetExcel> |
||||
*/ |
||||
List<ProcessSetExcel> export(Wrapper<ProcessSetEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,62 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.excel.WorkCenterExcel; |
||||
import org.springblade.scheduling.scheduling.vo.WorkCenterVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作中心表 服务类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public interface IWorkCenterService extends BaseService<WorkCenterEntity> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param WorkCenter 查询参数 |
||||
* @return IPage<WorkCenterVO> |
||||
*/ |
||||
IPage<WorkCenterVO> selectWorkCenterPage(IPage<WorkCenterVO> page, WorkCenterVO WorkCenter); |
||||
|
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<WorkCenterExcel> |
||||
*/ |
||||
List<WorkCenterExcel> export(Wrapper<WorkCenterEntity> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,63 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service.impl; |
||||
|
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.excel.CraftAbilityExcel; |
||||
import org.springblade.scheduling.scheduling.mapper.CraftAbilityMapper; |
||||
import org.springblade.scheduling.scheduling.service.ICraftAbilityService; |
||||
import org.springblade.scheduling.scheduling.vo.CraftAbilityVO; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工艺能力 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Service |
||||
public class CraftAbilityServiceImpl extends BaseServiceImpl<CraftAbilityMapper, CraftAbilityEntity> implements ICraftAbilityService { |
||||
|
||||
@Override |
||||
public IPage<CraftAbilityVO> selectCraftAbilityPage(IPage<CraftAbilityVO> page, CraftAbilityVO craftAbility) { |
||||
return page.setRecords(baseMapper.selectCraftAbilityPage(page, craftAbility)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<CraftAbilityExcel> export(Wrapper<CraftAbilityEntity> queryWrapper) { |
||||
List<CraftAbilityExcel> CraftAbilityList = baseMapper.export(queryWrapper); |
||||
//CraftAbilityList.forEach(CraftAbility -> {
|
||||
// CraftAbility.setTypeName(DictCache.getValue(DictEnum.YES_NO, CraftAbility.getType()));
|
||||
//});
|
||||
return CraftAbilityList; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,63 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service.impl; |
||||
|
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
import org.springblade.scheduling.scheduling.excel.EquipmentExcel; |
||||
import org.springblade.scheduling.scheduling.mapper.EquipmentMapper; |
||||
import org.springblade.scheduling.scheduling.service.IEquipmentService; |
||||
import org.springblade.scheduling.scheduling.vo.EquipmentVO; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 设备信息表 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Service |
||||
public class EquipmentServiceImpl extends BaseServiceImpl<EquipmentMapper, EquipmentEntity> implements IEquipmentService { |
||||
|
||||
@Override |
||||
public IPage<EquipmentVO> selectEquipmentPage(IPage<EquipmentVO> page, EquipmentVO equipment) { |
||||
return page.setRecords(baseMapper.selectEquipmentPage(page, equipment)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<EquipmentExcel> export(Wrapper<EquipmentEntity> queryWrapper) { |
||||
List<EquipmentExcel> EquipmentList = baseMapper.export(queryWrapper); |
||||
//EquipmentList.forEach(Equipment -> {
|
||||
// Equipment.setTypeName(DictCache.getValue(DictEnum.YES_NO, Equipment.getType()));
|
||||
//});
|
||||
return EquipmentList; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,63 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service.impl; |
||||
|
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
import org.springblade.scheduling.scheduling.excel.ProcessSetExcel; |
||||
import org.springblade.scheduling.scheduling.mapper.ProcessSetMapper; |
||||
import org.springblade.scheduling.scheduling.service.IProcessSetService; |
||||
import org.springblade.scheduling.scheduling.vo.ProcessSetVO; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工序设置表 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Service |
||||
public class ProcessSetServiceImpl extends BaseServiceImpl<ProcessSetMapper, ProcessSetEntity> implements IProcessSetService { |
||||
|
||||
@Override |
||||
public IPage<ProcessSetVO> selectProcessSetPage(IPage<ProcessSetVO> page, ProcessSetVO processSet) { |
||||
return page.setRecords(baseMapper.selectProcessSetPage(page, processSet)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<ProcessSetExcel> export(Wrapper<ProcessSetEntity> queryWrapper) { |
||||
List<ProcessSetExcel> ProcessSetList = baseMapper.export(queryWrapper); |
||||
//ProcessSetList.forEach(ProcessSet -> {
|
||||
// ProcessSet.setTypeName(DictCache.getValue(DictEnum.YES_NO, ProcessSet.getType()));
|
||||
//});
|
||||
return ProcessSetList; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,63 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.service.impl; |
||||
|
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.excel.WorkCenterExcel; |
||||
import org.springblade.scheduling.scheduling.mapper.WorkCenterMapper; |
||||
import org.springblade.scheduling.scheduling.service.IWorkCenterService; |
||||
import org.springblade.scheduling.scheduling.vo.WorkCenterVO; |
||||
import org.springframework.stereotype.Service; |
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 工作中心表 服务实现类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Service |
||||
public class WorkCenterServiceImpl extends BaseServiceImpl<WorkCenterMapper, WorkCenterEntity> implements IWorkCenterService { |
||||
|
||||
@Override |
||||
public IPage<WorkCenterVO> selectWorkCenterPage(IPage<WorkCenterVO> page, WorkCenterVO workCenter) { |
||||
return page.setRecords(baseMapper.selectWorkCenterPage(page, workCenter)); |
||||
} |
||||
|
||||
|
||||
@Override |
||||
public List<WorkCenterExcel> export(Wrapper<WorkCenterEntity> queryWrapper) { |
||||
List<WorkCenterExcel> WorkCenterList = baseMapper.export(queryWrapper); |
||||
//WorkCenterList.forEach(WorkCenter -> {
|
||||
// WorkCenter.setTypeName(DictCache.getValue(DictEnum.YES_NO, WorkCenter.getType()));
|
||||
//});
|
||||
return WorkCenterList; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,46 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工艺能力 视图实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class CraftAbilityVO extends CraftAbilityEntity { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,46 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 设备信息表 视图实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class EquipmentVO extends EquipmentEntity { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,46 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工序设置表 视图实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class ProcessSetVO extends ProcessSetEntity { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,46 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 工作中心表 视图实体类 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkCenterVO extends WorkCenterEntity { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,60 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.scheduling.scheduling.entity.CraftAbilityEntity; |
||||
import org.springblade.scheduling.scheduling.vo.CraftAbilityVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 工艺能力 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public class CraftAbilityWrapper extends BaseEntityWrapper<CraftAbilityEntity, CraftAbilityVO> { |
||||
|
||||
public static CraftAbilityWrapper build() { |
||||
return new CraftAbilityWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public CraftAbilityVO entityVO(CraftAbilityEntity CraftAbility) { |
||||
CraftAbilityVO craftAbilityVO = Objects.requireNonNull(BeanUtil.copyProperties(CraftAbility, CraftAbilityVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(CraftAbility.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(CraftAbility.getUpdateUser());
|
||||
//CraftAbilityVO.setCreateUserName(createUser.getName());
|
||||
//CraftAbilityVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return craftAbilityVO; |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,60 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.scheduling.scheduling.entity.EquipmentEntity; |
||||
import org.springblade.scheduling.scheduling.vo.EquipmentVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 设备信息表 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public class EquipmentWrapper extends BaseEntityWrapper<EquipmentEntity, EquipmentVO> { |
||||
|
||||
public static EquipmentWrapper build() { |
||||
return new EquipmentWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public EquipmentVO entityVO(EquipmentEntity Equipment) { |
||||
EquipmentVO equipmentVO = Objects.requireNonNull(BeanUtil.copyProperties(Equipment, EquipmentVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(Equipment.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(Equipment.getUpdateUser());
|
||||
//EquipmentVO.setCreateUserName(createUser.getName());
|
||||
//EquipmentVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return equipmentVO; |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,60 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.scheduling.scheduling.entity.ProcessSetEntity; |
||||
import org.springblade.scheduling.scheduling.vo.ProcessSetVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 工序设置表 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public class ProcessSetWrapper extends BaseEntityWrapper<ProcessSetEntity, ProcessSetVO> { |
||||
|
||||
public static ProcessSetWrapper build() { |
||||
return new ProcessSetWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public ProcessSetVO entityVO(ProcessSetEntity ProcessSet) { |
||||
ProcessSetVO processSetVO = Objects.requireNonNull(BeanUtil.copyProperties(ProcessSet, ProcessSetVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(ProcessSet.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(ProcessSet.getUpdateUser());
|
||||
//ProcessSetVO.setCreateUserName(createUser.getName());
|
||||
//ProcessSetVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return processSetVO; |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,60 @@ |
||||
/** |
||||
* BladeX Commercial License Agreement |
||||
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
|
||||
* <p> |
||||
* Use of this software is governed by the Commercial License Agreement |
||||
* obtained after purchasing a license from BladeX. |
||||
* <p> |
||||
* 1. This software is for development use only under a valid license |
||||
* from BladeX. |
||||
* <p> |
||||
* 2. Redistribution of this software's source code to any third party |
||||
* without a commercial license is strictly prohibited. |
||||
* <p> |
||||
* 3. Licensees may copyright their own code but cannot use segments |
||||
* from this software for such purposes. Copyright of this software |
||||
* remains with BladeX. |
||||
* <p> |
||||
* Using this software signifies agreement to this License, and the software |
||||
* must not be used for illegal purposes. |
||||
* <p> |
||||
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is |
||||
* not liable for any claims arising from secondary or illegal development. |
||||
* <p> |
||||
* Author: Chill Zhuang (bladejava@qq.com) |
||||
*/ |
||||
package org.springblade.scheduling.scheduling.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.scheduling.scheduling.entity.WorkCenterEntity; |
||||
import org.springblade.scheduling.scheduling.vo.WorkCenterVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* 工作中心表 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author BladeX |
||||
* @since 2025-12-22 |
||||
*/ |
||||
public class WorkCenterWrapper extends BaseEntityWrapper<WorkCenterEntity, WorkCenterVO> { |
||||
|
||||
public static WorkCenterWrapper build() { |
||||
return new WorkCenterWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public WorkCenterVO entityVO(WorkCenterEntity WorkCenter) { |
||||
WorkCenterVO workCenterVO = Objects.requireNonNull(BeanUtil.copyProperties(WorkCenter, WorkCenterVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(WorkCenter.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(WorkCenter.getUpdateUser());
|
||||
//WorkCenterVO.setCreateUserName(createUser.getName());
|
||||
//WorkCenterVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return workCenterVO; |
||||
} |
||||
|
||||
|
||||
} |
||||
Loading…
Reference in new issue