parent
a4e4d213ef
commit
a58c5d4184
37 changed files with 2177 additions and 0 deletions
@ -0,0 +1,13 @@ |
||||
package org.springblade.desk.basic.constant; |
||||
|
||||
public interface FormulaConst { |
||||
|
||||
/** |
||||
* |
||||
*/ |
||||
final Integer TYPE_1 = 1; |
||||
/** |
||||
* |
||||
*/ |
||||
final Integer TYPE_2 = 2; |
||||
} |
||||
@ -0,0 +1,138 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.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.desk.basic.excel.gen.ShiftGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
import org.springblade.desk.basic.pojo.vo.gen.ShiftGenVO; |
||||
import org.springblade.desk.basic.service.gen.IShiftGenService; |
||||
import org.springblade.desk.basic.wrapper.gen.ShiftGenWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* [班次] 控制器 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/Shift") |
||||
@Tag(name = "[班次]", description = "[班次]接口") |
||||
public class ShiftController extends BladeController { |
||||
|
||||
private final IShiftGenService shiftGenService; |
||||
|
||||
/** |
||||
* [班次] 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入Shift") |
||||
public R<ShiftGenVO> detail(Shift shift) { |
||||
Shift detail = shiftGenService.getOne(Condition.getQueryWrapper(shift)); |
||||
return R.data(ShiftGenWrapper.build().entityVO(detail)); |
||||
} |
||||
|
||||
/** |
||||
* [班次] 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入Shift") |
||||
public R<IPage<ShiftGenVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> shift, Query query) { |
||||
IPage<Shift> pages = shiftGenService.page(Condition.getPage(query), Condition.getQueryWrapper(shift, Shift.class)); |
||||
return R.data(ShiftGenWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* [班次] 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入Shift") |
||||
public R<IPage<ShiftGenVO>> page(ShiftGenVO shift, Query query) { |
||||
IPage<ShiftGenVO> pages = shiftGenService.selectShiftPage(Condition.getPage(query), shift); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* [班次] 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入Shift") |
||||
public R save(@Valid @RequestBody Shift shift) { |
||||
return R.status(shiftGenService.save(shift)); |
||||
} |
||||
|
||||
/** |
||||
* [班次] 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入Shift") |
||||
public R update(@Valid @RequestBody Shift shift) { |
||||
return R.status(shiftGenService.updateById(shift)); |
||||
} |
||||
|
||||
/** |
||||
* [班次] 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入Shift") |
||||
public R submit(@Valid @RequestBody Shift shift) { |
||||
return R.status(shiftGenService.saveOrUpdate(shift)); |
||||
} |
||||
|
||||
/** |
||||
* [班次] 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(shiftGenService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-excel") |
||||
@ApiOperationSupport(order = 8) |
||||
@Operation(summary = "导出数据", description = "传入Shift") |
||||
public void exportShift(@Parameter(hidden = true) @RequestParam Map<String, Object> shift, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<Shift> queryWrapper = Condition.getQueryWrapper(shift, Shift.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(Shift::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(ShiftEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<ShiftGenExcel> list = shiftGenService.exportShift(queryWrapper); |
||||
ExcelUtil.export(response, "[班次]数据" + DateUtil.time(), "[班次]数据表", list, ShiftGenExcel.class); |
||||
} |
||||
} |
||||
@ -0,0 +1,138 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.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.desk.basic.excel.gen.TeamGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
import org.springblade.desk.basic.pojo.vo.gen.TeamGenVO; |
||||
import org.springblade.desk.basic.service.gen.ITeamGenService; |
||||
import org.springblade.desk.basic.wrapper.gen.TeamGenWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* [班组] 控制器 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/Team") |
||||
@Tag(name = "[班组]", description = "[班组]接口") |
||||
public class TeamController extends BladeController { |
||||
|
||||
private final ITeamGenService teamGenService; |
||||
|
||||
/** |
||||
* [班组] 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入Team") |
||||
public R<TeamGenVO> detail(Team team) { |
||||
Team detail = teamGenService.getOne(Condition.getQueryWrapper(team)); |
||||
return R.data(TeamGenWrapper.build().entityVO(detail)); |
||||
} |
||||
|
||||
/** |
||||
* [班组] 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入Team") |
||||
public R<IPage<TeamGenVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> team, Query query) { |
||||
IPage<Team> pages = teamGenService.page(Condition.getPage(query), Condition.getQueryWrapper(team, Team.class)); |
||||
return R.data(TeamGenWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* [班组] 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入Team") |
||||
public R<IPage<TeamGenVO>> page(TeamGenVO team, Query query) { |
||||
IPage<TeamGenVO> pages = teamGenService.selectTeamPage(Condition.getPage(query), team); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* [班组] 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入Team") |
||||
public R save(@Valid @RequestBody Team team) { |
||||
return R.status(teamGenService.save(team)); |
||||
} |
||||
|
||||
/** |
||||
* [班组] 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入Team") |
||||
public R update(@Valid @RequestBody Team team) { |
||||
return R.status(teamGenService.updateById(team)); |
||||
} |
||||
|
||||
/** |
||||
* [班组] 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入Team") |
||||
public R submit(@Valid @RequestBody Team team) { |
||||
return R.status(teamGenService.saveOrUpdate(team)); |
||||
} |
||||
|
||||
/** |
||||
* [班组] 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(teamGenService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-excel") |
||||
@ApiOperationSupport(order = 8) |
||||
@Operation(summary = "导出数据", description = "传入Team") |
||||
public void exportTeam(@Parameter(hidden = true) @RequestParam Map<String, Object> team, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<Team> queryWrapper = Condition.getQueryWrapper(team, Team.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(Team::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(TeamEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<TeamGenExcel> list = teamGenService.exportTeam(queryWrapper); |
||||
ExcelUtil.export(response, "[班组]数据" + DateUtil.time(), "[班组]数据表", list, TeamGenExcel.class); |
||||
} |
||||
} |
||||
@ -0,0 +1,138 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.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.desk.basic.excel.gen.WorkstationGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.WorkstationGenVO; |
||||
import org.springblade.desk.basic.service.gen.IWorkstationGenService; |
||||
import org.springblade.desk.basic.wrapper.gen.WorkstationGenWrapper; |
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
import java.util.List; |
||||
import java.util.Map; |
||||
|
||||
/** |
||||
* [作业中心] 控制器 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/Workstation") |
||||
@Tag(name = "[作业中心]", description = "[作业中心]接口") |
||||
public class WorkstationController extends BladeController { |
||||
|
||||
private final IWorkstationGenService workstationGenService; |
||||
|
||||
/** |
||||
* [作业中心] 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "详情", description = "传入Workstation") |
||||
public R<WorkstationGenVO> detail(Workstation workstation) { |
||||
Workstation detail = workstationGenService.getOne(Condition.getQueryWrapper(workstation)); |
||||
return R.data(WorkstationGenWrapper.build().entityVO(detail)); |
||||
} |
||||
|
||||
/** |
||||
* [作业中心] 分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 2) |
||||
@Operation(summary = "分页", description = "传入Workstation") |
||||
public R<IPage<WorkstationGenVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> workstation, Query query) { |
||||
IPage<Workstation> pages = workstationGenService.page(Condition.getPage(query), Condition.getQueryWrapper(workstation, Workstation.class)); |
||||
return R.data(WorkstationGenWrapper.build().pageVO(pages)); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* [作业中心] 自定义分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 3) |
||||
@Operation(summary = "分页", description = "传入Workstation") |
||||
public R<IPage<WorkstationGenVO>> page(WorkstationGenVO workstation, Query query) { |
||||
IPage<WorkstationGenVO> pages = workstationGenService.selectWorkstationPage(Condition.getPage(query), workstation); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
/** |
||||
* [作业中心] 新增 |
||||
*/ |
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 4) |
||||
@Operation(summary = "新增", description = "传入Workstation") |
||||
public R save(@Valid @RequestBody Workstation workstation) { |
||||
return R.status(workstationGenService.save(workstation)); |
||||
} |
||||
|
||||
/** |
||||
* [作业中心] 修改 |
||||
*/ |
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 5) |
||||
@Operation(summary = "修改", description = "传入Workstation") |
||||
public R update(@Valid @RequestBody Workstation workstation) { |
||||
return R.status(workstationGenService.updateById(workstation)); |
||||
} |
||||
|
||||
/** |
||||
* [作业中心] 新增或修改 |
||||
*/ |
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 6) |
||||
@Operation(summary = "新增或修改", description = "传入Workstation") |
||||
public R submit(@Valid @RequestBody Workstation workstation) { |
||||
return R.status(workstationGenService.saveOrUpdate(workstation)); |
||||
} |
||||
|
||||
/** |
||||
* [作业中心] 删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 7) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(workstationGenService.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* 导出数据 |
||||
*/ |
||||
@IsAdmin |
||||
@GetMapping("/export-excel") |
||||
@ApiOperationSupport(order = 8) |
||||
@Operation(summary = "导出数据", description = "传入Workstation") |
||||
public void exportWorkstation(@Parameter(hidden = true) @RequestParam Map<String, Object> workstation, BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<Workstation> queryWrapper = Condition.getQueryWrapper(workstation, Workstation.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(Workstation::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(WorkstationEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<WorkstationGenExcel> list = workstationGenService.exportWorkstation(queryWrapper); |
||||
ExcelUtil.export(response, "[作业中心]数据" + DateUtil.time(), "[作业中心]数据表", list, WorkstationGenExcel.class); |
||||
} |
||||
} |
||||
@ -0,0 +1,62 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.excel.gen; |
||||
|
||||
|
||||
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 lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
|
||||
/** |
||||
* [班次] Excel实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class ShiftGenExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [班次]编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班次]编码") |
||||
private String shiftCode; |
||||
/** |
||||
* [班次]类型 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班次]类型") |
||||
private Long shiftType; |
||||
/** |
||||
* [班次]名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班次]名称") |
||||
private String name; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("备注") |
||||
private String remark; |
||||
} |
||||
@ -0,0 +1,183 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.excel.gen; |
||||
|
||||
|
||||
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 lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
|
||||
|
||||
/** |
||||
* [班组] Excel实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class TeamGenExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [班组]编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班组]编码") |
||||
private String teamCode; |
||||
/** |
||||
* [班组]类型:[1]:针孔;[2]:壳体;[3]:烧结;[4]:园区; |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班组]类型:[1]:针孔;[2]:壳体;[3]:烧结;[4]:园区;") |
||||
private Long teamType; |
||||
/** |
||||
* [班组]名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[班组]名称") |
||||
private String name; |
||||
/** |
||||
* 班组长[用户]id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("班组长[用户]id") |
||||
private BigDecimal leaderUserId; |
||||
/** |
||||
* 计划员[用户]id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("计划员[用户]id") |
||||
private BigDecimal plannerUserId; |
||||
/** |
||||
* 调度员[用户]id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("调度员[用户]id") |
||||
private BigDecimal dispatchUserId; |
||||
/** |
||||
* [XXXX]id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[XXXX]id") |
||||
private BigDecimal myId4; |
||||
/** |
||||
* 是否特殊 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否特殊") |
||||
private Long flagSpecial; |
||||
/** |
||||
* MY_NUM2 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_NUM2") |
||||
private Long myNum2; |
||||
/** |
||||
* MY_NUM3 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_NUM3") |
||||
private Long myNum3; |
||||
/** |
||||
* MY_NUM4 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_NUM4") |
||||
private Long myNum4; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private Long myNum5; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private Long myNum6; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private Long myNum7; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private Long myNum8; |
||||
/** |
||||
* MY_CHA1 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_CHA1") |
||||
private String myCha1; |
||||
/** |
||||
* MY_CHA2 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_CHA2") |
||||
private String myCha2; |
||||
/** |
||||
* MY_CHA3 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_CHA3") |
||||
private String myCha3; |
||||
/** |
||||
* MY_CHA4 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("MY_CHA4") |
||||
private String myCha4; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private String myCha5; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private String myCha6; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private String myCha7; |
||||
/** |
||||
* |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("") |
||||
private String myCha8; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("备注") |
||||
private String remark; |
||||
} |
||||
@ -0,0 +1,99 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.excel.gen; |
||||
|
||||
|
||||
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 lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
|
||||
|
||||
/** |
||||
* [作业中心] Excel实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class WorkstationGenExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [作业中心]编码 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[作业中心]编码") |
||||
private String workstationCode; |
||||
/** |
||||
* [作业中心]类型 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[作业中心]类型") |
||||
private Long workstationType; |
||||
/** |
||||
* [作业中心]名称 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("[作业中心]名称") |
||||
private String name; |
||||
/** |
||||
* 工艺主管[用户]id |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("工艺主管[用户]id") |
||||
private BigDecimal processUserId; |
||||
/** |
||||
* 交付中心 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("交付中心") |
||||
private String deliveryCenter; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("备注") |
||||
private String remark; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("业务标识") |
||||
private String bizTag; |
||||
/** |
||||
* 检验标记 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("检验标记") |
||||
private Long flagTest; |
||||
/** |
||||
* 镀后标记 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("镀后标记") |
||||
private Long flagAfterPlating; |
||||
/** |
||||
* 是否大批量 |
||||
*/ |
||||
@ColumnWidth(20) |
||||
@ExcelProperty("是否大批量") |
||||
private Long flagBigBat; |
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.mapper.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.desk.basic.excel.gen.ShiftGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
import org.springblade.desk.basic.pojo.vo.gen.ShiftGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班次] Mapper 接口 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface ShiftGenMapper extends BaseMapper<Shift> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param shift 查询参数 |
||||
* @return List<ShiftVO> |
||||
*/ |
||||
List<ShiftGenVO> selectShiftPage(IPage page, ShiftGenVO shift); |
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<ShiftExcel> |
||||
*/ |
||||
List<ShiftGenExcel> exportShift(@Param("ew") Wrapper<Shift> queryWrapper); |
||||
} |
||||
@ -0,0 +1,22 @@ |
||||
<?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.desk.basic.mapper.gen.ShiftGenMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="shiftResultMap" type="org.springblade.desk.basic.pojo.entity.Shift"> |
||||
<result column="SHIFT_CODE" property="shiftCode"/> |
||||
<result column="SHIFT_TYPE" property="shiftType"/> |
||||
<result column="NAME" property="name"/> |
||||
<result column="SORT" property="sort"/> |
||||
<result column="REMARK" property="remark"/> |
||||
</resultMap> |
||||
|
||||
<select id="selectShiftPage" resultMap="shiftResultMap"> |
||||
SELECT * FROM BA_SHIFT WHERE is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="exportShift" resultType="org.springblade.desk.basic.excel.gen.ShiftGenExcel"> |
||||
SELECT * FROM BA_SHIFT ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.mapper.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.desk.basic.excel.gen.TeamGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
import org.springblade.desk.basic.pojo.vo.gen.TeamGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班组] Mapper 接口 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface TeamGenMapper extends BaseMapper<Team> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param team 查询参数 |
||||
* @return List<TeamVO> |
||||
*/ |
||||
List<TeamGenVO> selectTeamPage(IPage page, TeamGenVO team); |
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<TeamExcel> |
||||
*/ |
||||
List<TeamGenExcel> exportTeam(@Param("ew") Wrapper<Team> 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.desk.basic.mapper.gen.TeamGenMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="teamResultMap" type="org.springblade.desk.basic.pojo.entity.Team"> |
||||
<result column="TEAM_CODE" property="teamCode"/> |
||||
<result column="TEAM_TYPE" property="teamType"/> |
||||
<result column="NAME" property="name"/> |
||||
<result column="LEADER_USER_ID" property="leaderUserId"/> |
||||
<result column="PLANNER_USER_ID" property="plannerUserId"/> |
||||
<result column="DISPATCH_USER_ID" property="dispatchUserId"/> |
||||
<result column="MY_ID4" property="myId4"/> |
||||
<result column="FLAG_SPECIAL" property="flagSpecial"/> |
||||
<result column="MY_NUM2" property="myNum2"/> |
||||
<result column="MY_NUM3" property="myNum3"/> |
||||
<result column="MY_NUM4" property="myNum4"/> |
||||
<result column="MY_NUM5" property="myNum5"/> |
||||
<result column="MY_NUM6" property="myNum6"/> |
||||
<result column="MY_NUM7" property="myNum7"/> |
||||
<result column="MY_NUM8" property="myNum8"/> |
||||
<result column="MY_CHA1" property="myCha1"/> |
||||
<result column="MY_CHA2" property="myCha2"/> |
||||
<result column="MY_CHA3" property="myCha3"/> |
||||
<result column="MY_CHA4" property="myCha4"/> |
||||
<result column="MY_CHA5" property="myCha5"/> |
||||
<result column="MY_CHA6" property="myCha6"/> |
||||
<result column="MY_CHA7" property="myCha7"/> |
||||
<result column="MY_CHA8" property="myCha8"/> |
||||
<result column="SORT" property="sort"/> |
||||
<result column="REMARK" property="remark"/> |
||||
</resultMap> |
||||
|
||||
<select id="selectTeamPage" resultMap="teamResultMap"> |
||||
SELECT * FROM BA_TEAM WHERE is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="exportTeam" resultType="org.springblade.desk.basic.excel.gen.TeamGenExcel"> |
||||
SELECT * FROM BA_TEAM ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.mapper.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.springblade.desk.basic.excel.gen.WorkstationGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.WorkstationGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [作业中心] Mapper 接口 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface WorkstationGenMapper extends BaseMapper<Workstation> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param workstation 查询参数 |
||||
* @return List<WorkstationVO> |
||||
*/ |
||||
List<WorkstationGenVO> selectWorkstationPage(IPage page, WorkstationGenVO workstation); |
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<WorkstationExcel> |
||||
*/ |
||||
List<WorkstationGenExcel> exportWorkstation(@Param("ew") Wrapper<Workstation> queryWrapper); |
||||
} |
||||
@ -0,0 +1,28 @@ |
||||
<?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.desk.basic.mapper.gen.WorkstationGenMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="workstationResultMap" type="org.springblade.desk.basic.pojo.entity.Workstation"> |
||||
<result column="WORKSTATION_CODE" property="workstationCode"/> |
||||
<result column="WORKSTATION_TYPE" property="workstationType"/> |
||||
<result column="NAME" property="name"/> |
||||
<result column="PROCESS_USER_ID" property="processUserId"/> |
||||
<result column="DELIVERY_CENTER" property="deliveryCenter"/> |
||||
<result column="SORT" property="sort"/> |
||||
<result column="REMARK" property="remark"/> |
||||
<result column="BIZ_TAG" property="bizTag"/> |
||||
<result column="FLAG_TEST" property="flagTest"/> |
||||
<result column="FLAG_AFTER_PLATING" property="flagAfterPlating"/> |
||||
<result column="FLAG_BIG_BAT" property="flagBigBat"/> |
||||
</resultMap> |
||||
|
||||
<select id="selectWorkstationPage" resultMap="workstationResultMap"> |
||||
SELECT * FROM BA_WORKSTATION WHERE is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="exportWorkstation" resultType="org.springblade.desk.basic.excel.gen.WorkstationGenExcel"> |
||||
SELECT * FROM BA_WORKSTATION ${ew.customSqlSegment} |
||||
</select> |
||||
|
||||
</mapper> |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.dto.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.BaWorkstation; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [作业中心] 数据传输对象实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BaWorkstationGenDTO extends BaWorkstation { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.dto.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [班次] 数据传输对象实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class ShiftGenDTO extends Shift { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.dto.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [班组] 数据传输对象实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TeamGenDTO extends Team { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.dto.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [作业中心] 数据传输对象实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkstationGenDTO extends Workstation { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,103 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.io.Serial; |
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* [作业中心] 实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@TableName("BA_WORKSTATION") |
||||
@Schema(description = "BaWorkstation Entity对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BaWorkstation extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [作业中心]编码 |
||||
*/ |
||||
public static final String COL_CODE = "CODE"; |
||||
/** |
||||
* [作业中心]类型 |
||||
*/ |
||||
public static final String COL_WORKSTATION_TYPE = "WORKSTATION_TYPE"; |
||||
/** |
||||
* [作业中心]名称 |
||||
*/ |
||||
public static final String COL_NAME = "NAME"; |
||||
/** |
||||
* 工艺主管[用户]id |
||||
*/ |
||||
public static final String COL_PROCESS_USER_ID = "PROCESS_USER_ID"; |
||||
/** |
||||
* 交付中心 |
||||
*/ |
||||
public static final String COL_DELIVERY_CENTER = "DELIVERY_CENTER"; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
public static final String COL_SORT = "SORT"; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
public static final String COL_REMARK = "REMARK"; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
public static final String COL_BIZ_TAG = "BIZ_TAG"; |
||||
|
||||
/** |
||||
* [作业中心]编码 |
||||
*/ |
||||
@Schema(description = "[作业中心]编码") |
||||
private String code; |
||||
/** |
||||
* [作业中心]类型 |
||||
*/ |
||||
@Schema(description = "[作业中心]类型") |
||||
private Long workstationType; |
||||
/** |
||||
* [作业中心]名称 |
||||
*/ |
||||
@Schema(description = "[作业中心]名称") |
||||
private String name; |
||||
/** |
||||
* 工艺主管[用户]id |
||||
*/ |
||||
@Schema(description = "工艺主管[用户]id") |
||||
private BigDecimal processUserId; |
||||
/** |
||||
* 交付中心 |
||||
*/ |
||||
@Schema(description = "交付中心") |
||||
private String deliveryCenter; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@Schema(description = "排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@Schema(description = "备注") |
||||
private String remark; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
@Schema(description = "业务标识") |
||||
private String bizTag; |
||||
} |
||||
@ -0,0 +1,75 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [班次] 实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@TableName("BA_SHIFT") |
||||
@Schema(description = "Shift Entity对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class Shift extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [班次]编码 |
||||
*/ |
||||
public static final String COL_SHIFT_CODE = "SHIFT_CODE"; |
||||
/** |
||||
* [班次]类型 |
||||
*/ |
||||
public static final String COL_SHIFT_TYPE = "SHIFT_TYPE"; |
||||
/** |
||||
* [班次]名称 |
||||
*/ |
||||
public static final String COL_NAME = "NAME"; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
public static final String COL_SORT = "SORT"; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
public static final String COL_REMARK = "REMARK"; |
||||
|
||||
/** |
||||
* [班次]编码 |
||||
*/ |
||||
@Schema(description = "[班次]编码") |
||||
private String shiftCode; |
||||
/** |
||||
* [班次]类型 |
||||
*/ |
||||
@Schema(description = "[班次]类型") |
||||
private Long shiftType; |
||||
/** |
||||
* [班次]名称 |
||||
*/ |
||||
@Schema(description = "[班次]名称") |
||||
private String name; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@Schema(description = "排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@Schema(description = "备注") |
||||
private String remark; |
||||
} |
||||
@ -0,0 +1,256 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.io.Serial; |
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* [班组] 实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@TableName("BA_TEAM") |
||||
@Schema(description = "Team Entity对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class Team extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [班组]编码 |
||||
*/ |
||||
public static final String COL_TEAM_CODE = "TEAM_CODE"; |
||||
/** |
||||
* [班组]类型:[1]:针孔;[2]:壳体;[3]:烧结;[4]:园区; |
||||
*/ |
||||
public static final String COL_TEAM_TYPE = "TEAM_TYPE"; |
||||
/** |
||||
* [班组]名称 |
||||
*/ |
||||
public static final String COL_NAME = "NAME"; |
||||
/** |
||||
* 班组长[用户]id |
||||
*/ |
||||
public static final String COL_LEADER_USER_ID = "LEADER_USER_ID"; |
||||
/** |
||||
* 计划员[用户]id |
||||
*/ |
||||
public static final String COL_PLANNER_USER_ID = "PLANNER_USER_ID"; |
||||
/** |
||||
* 调度员[用户]id |
||||
*/ |
||||
public static final String COL_DISPATCH_USER_ID = "DISPATCH_USER_ID"; |
||||
/** |
||||
* [XXXX]id |
||||
*/ |
||||
public static final String COL_MY_ID4 = "MY_ID4"; |
||||
/** |
||||
* 是否特殊 |
||||
*/ |
||||
public static final String COL_FLAG_SPECIAL = "FLAG_SPECIAL"; |
||||
/** |
||||
* MY_NUM2 |
||||
*/ |
||||
public static final String COL_MY_NUM2 = "MY_NUM2"; |
||||
/** |
||||
* MY_NUM3 |
||||
*/ |
||||
public static final String COL_MY_NUM3 = "MY_NUM3"; |
||||
/** |
||||
* MY_NUM4 |
||||
*/ |
||||
public static final String COL_MY_NUM4 = "MY_NUM4"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_NUM5 = "MY_NUM5"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_NUM6 = "MY_NUM6"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_NUM7 = "MY_NUM7"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_NUM8 = "MY_NUM8"; |
||||
/** |
||||
* MY_CHA1 |
||||
*/ |
||||
public static final String COL_MY_CHA1 = "MY_CHA1"; |
||||
/** |
||||
* MY_CHA2 |
||||
*/ |
||||
public static final String COL_MY_CHA2 = "MY_CHA2"; |
||||
/** |
||||
* MY_CHA3 |
||||
*/ |
||||
public static final String COL_MY_CHA3 = "MY_CHA3"; |
||||
/** |
||||
* MY_CHA4 |
||||
*/ |
||||
public static final String COL_MY_CHA4 = "MY_CHA4"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_CHA5 = "MY_CHA5"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_CHA6 = "MY_CHA6"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_CHA7 = "MY_CHA7"; |
||||
/** |
||||
* |
||||
*/ |
||||
public static final String COL_MY_CHA8 = "MY_CHA8"; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
public static final String COL_SORT = "SORT"; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
public static final String COL_REMARK = "REMARK"; |
||||
|
||||
/** |
||||
* [班组]编码 |
||||
*/ |
||||
@Schema(description = "[班组]编码") |
||||
private String teamCode; |
||||
/** |
||||
* [班组]类型:[1]:针孔;[2]:壳体;[3]:烧结;[4]:园区; |
||||
*/ |
||||
@Schema(description = "[班组]类型:[1]:针孔;[2]:壳体;[3]:烧结;[4]:园区;") |
||||
private Long teamType; |
||||
/** |
||||
* [班组]名称 |
||||
*/ |
||||
@Schema(description = "[班组]名称") |
||||
private String name; |
||||
/** |
||||
* 班组长[用户]id |
||||
*/ |
||||
@Schema(description = "班组长[用户]id") |
||||
private BigDecimal leaderUserId; |
||||
/** |
||||
* 计划员[用户]id |
||||
*/ |
||||
@Schema(description = "计划员[用户]id") |
||||
private BigDecimal plannerUserId; |
||||
/** |
||||
* 调度员[用户]id |
||||
*/ |
||||
@Schema(description = "调度员[用户]id") |
||||
private BigDecimal dispatchUserId; |
||||
/** |
||||
* [XXXX]id |
||||
*/ |
||||
@Schema(description = "[XXXX]id") |
||||
private BigDecimal myId4; |
||||
/** |
||||
* 是否特殊 |
||||
*/ |
||||
@Schema(description = "是否特殊") |
||||
private Long flagSpecial; |
||||
/** |
||||
* MY_NUM2 |
||||
*/ |
||||
@Schema(description = "MY_NUM2") |
||||
private Long myNum2; |
||||
/** |
||||
* MY_NUM3 |
||||
*/ |
||||
@Schema(description = "MY_NUM3") |
||||
private Long myNum3; |
||||
/** |
||||
* MY_NUM4 |
||||
*/ |
||||
@Schema(description = "MY_NUM4") |
||||
private Long myNum4; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private Long myNum5; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private Long myNum6; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private Long myNum7; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private Long myNum8; |
||||
/** |
||||
* MY_CHA1 |
||||
*/ |
||||
@Schema(description = "MY_CHA1") |
||||
private String myCha1; |
||||
/** |
||||
* MY_CHA2 |
||||
*/ |
||||
@Schema(description = "MY_CHA2") |
||||
private String myCha2; |
||||
/** |
||||
* MY_CHA3 |
||||
*/ |
||||
@Schema(description = "MY_CHA3") |
||||
private String myCha3; |
||||
/** |
||||
* MY_CHA4 |
||||
*/ |
||||
@Schema(description = "MY_CHA4") |
||||
private String myCha4; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private String myCha5; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private String myCha6; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private String myCha7; |
||||
/** |
||||
* |
||||
*/ |
||||
@Schema(description = "") |
||||
private String myCha8; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@Schema(description = "排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@Schema(description = "备注") |
||||
private String remark; |
||||
} |
||||
@ -0,0 +1,130 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.entity; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
|
||||
import java.io.Serial; |
||||
import java.math.BigDecimal; |
||||
|
||||
/** |
||||
* [作业中心] 实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@TableName("BA_WORKSTATION") |
||||
@Schema(description = "Workstation Entity对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class Workstation extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* [作业中心]编码 |
||||
*/ |
||||
public static final String COL_WORKSTATION_CODE = "WORKSTATION_CODE"; |
||||
/** |
||||
* [作业中心]类型 |
||||
*/ |
||||
public static final String COL_WORKSTATION_TYPE = "WORKSTATION_TYPE"; |
||||
/** |
||||
* [作业中心]名称 |
||||
*/ |
||||
public static final String COL_NAME = "NAME"; |
||||
/** |
||||
* 工艺主管[用户]id |
||||
*/ |
||||
public static final String COL_PROCESS_USER_ID = "PROCESS_USER_ID"; |
||||
/** |
||||
* 交付中心 |
||||
*/ |
||||
public static final String COL_DELIVERY_CENTER = "DELIVERY_CENTER"; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
public static final String COL_SORT = "SORT"; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
public static final String COL_REMARK = "REMARK"; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
public static final String COL_BIZ_TAG = "BIZ_TAG"; |
||||
/** |
||||
* 检验标记 |
||||
*/ |
||||
public static final String COL_FLAG_TEST = "FLAG_TEST"; |
||||
/** |
||||
* 镀后标记 |
||||
*/ |
||||
public static final String COL_FLAG_AFTER_PLATING = "FLAG_AFTER_PLATING"; |
||||
/** |
||||
* 是否大批量 |
||||
*/ |
||||
public static final String COL_FLAG_BIG_BAT = "FLAG_BIG_BAT"; |
||||
|
||||
/** |
||||
* [作业中心]编码 |
||||
*/ |
||||
@Schema(description = "[作业中心]编码") |
||||
private String workstationCode; |
||||
/** |
||||
* [作业中心]类型 |
||||
*/ |
||||
@Schema(description = "[作业中心]类型") |
||||
private Long workstationType; |
||||
/** |
||||
* [作业中心]名称 |
||||
*/ |
||||
@Schema(description = "[作业中心]名称") |
||||
private String name; |
||||
/** |
||||
* 工艺主管[用户]id |
||||
*/ |
||||
@Schema(description = "工艺主管[用户]id") |
||||
private BigDecimal processUserId; |
||||
/** |
||||
* 交付中心 |
||||
*/ |
||||
@Schema(description = "交付中心") |
||||
private String deliveryCenter; |
||||
/** |
||||
* 排序 |
||||
*/ |
||||
@Schema(description = "排序") |
||||
private Long sort; |
||||
/** |
||||
* 备注 |
||||
*/ |
||||
@Schema(description = "备注") |
||||
private String remark; |
||||
/** |
||||
* 业务标识 |
||||
*/ |
||||
@Schema(description = "业务标识") |
||||
private String bizTag; |
||||
/** |
||||
* 检验标记 |
||||
*/ |
||||
@Schema(description = "检验标记") |
||||
private Long flagTest; |
||||
/** |
||||
* 镀后标记 |
||||
*/ |
||||
@Schema(description = "镀后标记") |
||||
private Long flagAfterPlating; |
||||
/** |
||||
* 是否大批量 |
||||
*/ |
||||
@Schema(description = "是否大批量") |
||||
private Long flagBigBat; |
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.vo.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.BaWorkstation; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [作业中心] 视图实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class BaWorkstationGenVO extends BaWorkstation { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.vo.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [班次] 视图实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class ShiftGenVO extends Shift { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.vo.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [班组] 视图实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class TeamGenVO extends Team { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.pojo.vo.gen; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [作业中心] 视图实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class WorkstationGenVO extends Workstation { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,30 @@ |
||||
package org.springblade.desk.basic.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import jakarta.annotation.Resource; |
||||
import lombok.Data; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.desk.basic.mapper.gen.WorkTankGenMapper; |
||||
import org.springblade.desk.basic.pojo.entity.WorkTank; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Service |
||||
@Data |
||||
@Slf4j |
||||
public class WorkTankService { |
||||
|
||||
@Resource |
||||
private WorkTankGenMapper genMapper; |
||||
|
||||
/** |
||||
* 所有供下拉选择。 |
||||
* |
||||
* @return |
||||
*/ |
||||
public R<List<WorkTank>> listForSelect() { |
||||
return R.data(genMapper.selectList(new QueryWrapper<>())); |
||||
} |
||||
} |
||||
@ -0,0 +1,30 @@ |
||||
package org.springblade.desk.basic.service; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
||||
import jakarta.annotation.Resource; |
||||
import lombok.Data; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.desk.basic.mapper.gen.WorkstationGenMapper; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
@Service |
||||
@Data |
||||
@Slf4j |
||||
public class WorkstationService { |
||||
|
||||
@Resource |
||||
private WorkstationGenMapper genMapper; |
||||
|
||||
/** |
||||
* 所有供下拉选择。 |
||||
* |
||||
* @return |
||||
*/ |
||||
public R<List<Workstation>> listForSelect() { |
||||
return R.data(genMapper.selectList(new QueryWrapper<>())); |
||||
} |
||||
} |
||||
@ -0,0 +1,38 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.desk.basic.excel.gen.ShiftGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
import org.springblade.desk.basic.pojo.vo.gen.ShiftGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班次] 服务类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface IShiftGenService extends BaseService<Shift> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param shift 查询参数 |
||||
* @return IPage<ShiftVO> |
||||
*/ |
||||
IPage<ShiftGenVO> selectShiftPage(IPage<ShiftGenVO> page, ShiftGenVO shift); |
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<ShiftExcel> |
||||
*/ |
||||
List<ShiftGenExcel> exportShift(Wrapper<Shift> queryWrapper); |
||||
} |
||||
@ -0,0 +1,38 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.desk.basic.excel.gen.TeamGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
import org.springblade.desk.basic.pojo.vo.gen.TeamGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班组] 服务类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface ITeamGenService extends BaseService<Team> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param team 查询参数 |
||||
* @return IPage<TeamVO> |
||||
*/ |
||||
IPage<TeamGenVO> selectTeamPage(IPage<TeamGenVO> page, TeamGenVO team); |
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<TeamExcel> |
||||
*/ |
||||
List<TeamGenExcel> exportTeam(Wrapper<Team> queryWrapper); |
||||
} |
||||
@ -0,0 +1,38 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.desk.basic.excel.gen.WorkstationGenExcel; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.WorkstationGenVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [作业中心] 服务类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public interface IWorkstationGenService extends BaseService<Workstation> { |
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param workstation 查询参数 |
||||
* @return IPage<WorkstationVO> |
||||
*/ |
||||
IPage<WorkstationGenVO> selectWorkstationPage(IPage<WorkstationGenVO> page, WorkstationGenVO workstation); |
||||
|
||||
/** |
||||
* 导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<WorkstationExcel> |
||||
*/ |
||||
List<WorkstationGenExcel> exportWorkstation(Wrapper<Workstation> queryWrapper); |
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.impl.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.desk.basic.excel.gen.ShiftGenExcel; |
||||
import org.springblade.desk.basic.mapper.gen.ShiftGenMapper; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
import org.springblade.desk.basic.pojo.vo.gen.ShiftGenVO; |
||||
import org.springblade.desk.basic.service.gen.IShiftGenService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班次] 服务实现类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Service |
||||
public class ShiftGenServiceImpl extends BaseServiceImpl<ShiftGenMapper, Shift> implements IShiftGenService { |
||||
|
||||
@Override |
||||
public IPage<ShiftGenVO> selectShiftPage(IPage<ShiftGenVO> page, ShiftGenVO shift) { |
||||
return page.setRecords(baseMapper.selectShiftPage(page, shift)); |
||||
} |
||||
|
||||
@Override |
||||
public List<ShiftGenExcel> exportShift(Wrapper<Shift> queryWrapper) { |
||||
List<ShiftGenExcel> shiftList = baseMapper.exportShift(queryWrapper); |
||||
//shiftList.forEach(shift -> {
|
||||
// shift.setTypeName(DictCache.getValue(DictEnum.YES_NO, Shift.getType()));
|
||||
//});
|
||||
return shiftList; |
||||
} |
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.impl.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.desk.basic.excel.gen.TeamGenExcel; |
||||
import org.springblade.desk.basic.mapper.gen.TeamGenMapper; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
import org.springblade.desk.basic.pojo.vo.gen.TeamGenVO; |
||||
import org.springblade.desk.basic.service.gen.ITeamGenService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [班组] 服务实现类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Service |
||||
public class TeamGenServiceImpl extends BaseServiceImpl<TeamGenMapper, Team> implements ITeamGenService { |
||||
|
||||
@Override |
||||
public IPage<TeamGenVO> selectTeamPage(IPage<TeamGenVO> page, TeamGenVO team) { |
||||
return page.setRecords(baseMapper.selectTeamPage(page, team)); |
||||
} |
||||
|
||||
@Override |
||||
public List<TeamGenExcel> exportTeam(Wrapper<Team> queryWrapper) { |
||||
List<TeamGenExcel> teamList = baseMapper.exportTeam(queryWrapper); |
||||
//teamList.forEach(team -> {
|
||||
// team.setTypeName(DictCache.getValue(DictEnum.YES_NO, Team.getType()));
|
||||
//});
|
||||
return teamList; |
||||
} |
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.service.impl.gen; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.desk.basic.excel.gen.WorkstationGenExcel; |
||||
import org.springblade.desk.basic.mapper.gen.WorkstationGenMapper; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.WorkstationGenVO; |
||||
import org.springblade.desk.basic.service.gen.IWorkstationGenService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [作业中心] 服务实现类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
@Service |
||||
public class WorkstationGenServiceImpl extends BaseServiceImpl<WorkstationGenMapper, Workstation> implements IWorkstationGenService { |
||||
|
||||
@Override |
||||
public IPage<WorkstationGenVO> selectWorkstationPage(IPage<WorkstationGenVO> page, WorkstationGenVO workstation) { |
||||
return page.setRecords(baseMapper.selectWorkstationPage(page, workstation)); |
||||
} |
||||
|
||||
@Override |
||||
public List<WorkstationGenExcel> exportWorkstation(Wrapper<Workstation> queryWrapper) { |
||||
List<WorkstationGenExcel> workstationList = baseMapper.exportWorkstation(queryWrapper); |
||||
//workstationList.forEach(workstation -> {
|
||||
// workstation.setTypeName(DictCache.getValue(DictEnum.YES_NO, Workstation.getType()));
|
||||
//});
|
||||
return workstationList; |
||||
} |
||||
} |
||||
@ -0,0 +1,36 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.wrapper.gen; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.desk.basic.pojo.entity.BaWorkstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.BaWorkstationGenVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* [作业中心] 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public class BaWorkstationGenWrapper extends BaseEntityWrapper<BaWorkstation, BaWorkstationGenVO> { |
||||
|
||||
public static BaWorkstationGenWrapper build() { |
||||
return new BaWorkstationGenWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public BaWorkstationGenVO entityVO(BaWorkstation baWorkstation) { |
||||
BaWorkstationGenVO baWorkstationVO = Objects.requireNonNull(BeanUtil.copyProperties(baWorkstation, BaWorkstationGenVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(baWorkstation.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(baWorkstation.getUpdateUser());
|
||||
//baWorkstationVO.setCreateUserName(createUser.getName());
|
||||
//baWorkstationVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return baWorkstationVO; |
||||
} |
||||
} |
||||
@ -0,0 +1,36 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.wrapper.gen; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.desk.basic.pojo.entity.Shift; |
||||
import org.springblade.desk.basic.pojo.vo.gen.ShiftGenVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* [班次] 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public class ShiftGenWrapper extends BaseEntityWrapper<Shift, ShiftGenVO> { |
||||
|
||||
public static ShiftGenWrapper build() { |
||||
return new ShiftGenWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public ShiftGenVO entityVO(Shift shift) { |
||||
ShiftGenVO shiftVO = Objects.requireNonNull(BeanUtil.copyProperties(shift, ShiftGenVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(shift.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(shift.getUpdateUser());
|
||||
//shiftVO.setCreateUserName(createUser.getName());
|
||||
//shiftVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return shiftVO; |
||||
} |
||||
} |
||||
@ -0,0 +1,36 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.wrapper.gen; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.desk.basic.pojo.entity.Team; |
||||
import org.springblade.desk.basic.pojo.vo.gen.TeamGenVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* [班组] 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public class TeamGenWrapper extends BaseEntityWrapper<Team, TeamGenVO> { |
||||
|
||||
public static TeamGenWrapper build() { |
||||
return new TeamGenWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public TeamGenVO entityVO(Team team) { |
||||
TeamGenVO teamVO = Objects.requireNonNull(BeanUtil.copyProperties(team, TeamGenVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(team.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(team.getUpdateUser());
|
||||
//teamVO.setCreateUserName(createUser.getName());
|
||||
//teamVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return teamVO; |
||||
} |
||||
} |
||||
@ -0,0 +1,36 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.basic.wrapper.gen; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.desk.basic.pojo.entity.Workstation; |
||||
import org.springblade.desk.basic.pojo.vo.gen.WorkstationGenVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* [作业中心] 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-11-20 |
||||
*/ |
||||
public class WorkstationGenWrapper extends BaseEntityWrapper<Workstation, WorkstationGenVO> { |
||||
|
||||
public static WorkstationGenWrapper build() { |
||||
return new WorkstationGenWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public WorkstationGenVO entityVO(Workstation workstation) { |
||||
WorkstationGenVO workstationVO = Objects.requireNonNull(BeanUtil.copyProperties(workstation, WorkstationGenVO.class)); |
||||
|
||||
//User createUser = UserCache.getUser(workstation.getCreateUser());
|
||||
//User updateUser = UserCache.getUser(workstation.getUpdateUser());
|
||||
//workstationVO.setCreateUserName(createUser.getName());
|
||||
//workstationVO.setUpdateUserName(updateUser.getName());
|
||||
|
||||
return workstationVO; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue