parent
1fe1bd9c68
commit
b9faefa686
21 changed files with 735 additions and 8 deletions
@ -0,0 +1,74 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.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; |
||||
import java.time.LocalDate; |
||||
|
||||
/** |
||||
* [工序检验项明细,硬度] 实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
@Data |
||||
@TableName("QA_WORK_RAISE_HAND") |
||||
@Schema(description = "RaiseHand Entity对象") |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class RaiseHand extends BaseEntity { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 提出人 |
||||
*/ |
||||
@Schema(description = "提出人") |
||||
private Long reportUserId; |
||||
/** |
||||
* 岗位 |
||||
*/ |
||||
@Schema(description = "岗位") |
||||
private String postName; |
||||
private Long postId; |
||||
/** |
||||
* 发生时间 |
||||
*/ |
||||
@Schema(description = "发生时间") |
||||
private LocalDate happenDate; |
||||
/** |
||||
* 免责问题描述 |
||||
*/ |
||||
@Schema(description = "免责问题描述") |
||||
private String notes; |
||||
/** |
||||
* 原因 |
||||
*/ |
||||
@Schema(description = "原因") |
||||
private String reason; |
||||
/** |
||||
* 措施 |
||||
*/ |
||||
@Schema(description = "措施") |
||||
private String measure; |
||||
/** |
||||
* 免责理由 |
||||
*/ |
||||
@Schema(description = "免责理由") |
||||
private String raiseHandReason; |
||||
/** |
||||
* 免责金额 |
||||
*/ |
||||
@Schema(description = "免责金额") |
||||
private BigDecimal amount; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,25 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.pojo.vo; |
||||
|
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import org.springblade.desk.quality.pojo.entity.RaiseHand; |
||||
import org.springblade.desk.quality.pojo.entity.WorkPlanThicknessDetail; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* [工序检验项明细] 视图实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
@Data |
||||
@EqualsAndHashCode(callSuper = true) |
||||
public class RaiseHandVO extends RaiseHand { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
} |
||||
@ -0,0 +1,242 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.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.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
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.annotation.Resource; |
||||
import jakarta.servlet.http.HttpServletResponse; |
||||
import jakarta.validation.Valid; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
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.tool.api.R; |
||||
import org.springblade.core.tool.utils.DateUtil; |
||||
import org.springblade.core.tool.utils.Func; |
||||
import org.springblade.desk.basic.constant.BaseCol; |
||||
import org.springblade.desk.basic.constant.BaseRequest; |
||||
import org.springblade.desk.basic.util.ExcelExtUtil; |
||||
import org.springblade.desk.basic.util.RequestUtil; |
||||
import org.springblade.desk.quality.constant.QAModuleConst; |
||||
import org.springblade.desk.quality.excel.LiquidTankWaveExcel; |
||||
import org.springblade.desk.quality.excel.RaiseHandExcel; |
||||
import org.springblade.desk.quality.pojo.entity.*; |
||||
import org.springblade.desk.quality.pojo.vo.LiquidTankTaskCopyVO; |
||||
import org.springblade.desk.quality.pojo.vo.LiquidTankWaveVO; |
||||
import org.springblade.desk.quality.pojo.vo.RaiseHandVO; |
||||
import org.springblade.desk.quality.service.ILiquidTankTaskCopyService; |
||||
import org.springblade.desk.quality.service.ILiquidTankWaveService; |
||||
import org.springblade.desk.quality.service.IRaiseHandService; |
||||
import org.springblade.desk.quality.service.IRelTankWaveItemService; |
||||
import org.springblade.desk.quality.wrapper.LiquidTankTaskCopyWrapper; |
||||
import org.springblade.desk.quality.wrapper.LiquidTankWaveWrapper; |
||||
import org.springblade.desk.quality.wrapper.RaiseHandWrapper; |
||||
import org.springblade.system.feign.IUserClient; |
||||
import org.springblade.system.pojo.entity.User; |
||||
import org.springframework.http.ResponseEntity; |
||||
import org.springframework.web.bind.annotation.*; |
||||
import org.springframework.web.multipart.MultipartFile; |
||||
|
||||
import java.time.LocalDate; |
||||
import java.time.format.DateTimeFormatter; |
||||
import java.time.format.DateTimeParseException; |
||||
import java.util.*; |
||||
import java.util.stream.Collectors; |
||||
|
||||
/** |
||||
* 举手免责控制器 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-12-19 |
||||
*/ |
||||
@RestController |
||||
@RequestMapping(QAModuleConst.CONTROLLER_PREFIX + "/RaiseHand") |
||||
@Data |
||||
@AllArgsConstructor |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@Slf4j |
||||
@Tag(name = "[举手免责]", description = "[举手免责]接口") |
||||
public class RaiseHandController extends BladeController { |
||||
|
||||
@Resource |
||||
private IRaiseHandService service; |
||||
|
||||
@Resource |
||||
private ILiquidTankTaskCopyService copyService; |
||||
@Resource |
||||
private IRelTankWaveItemService relReportItemService; |
||||
@Resource |
||||
private IUserClient userClient; |
||||
|
||||
|
||||
|
||||
/** |
||||
* [槽液曲线] 详情 |
||||
*/ |
||||
@GetMapping("/detail") |
||||
@ApiOperationSupport(order = 10) |
||||
@Operation(summary = "详情", description = "传入LiquidTankWave Obj") |
||||
public R<RaiseHandVO> detail(RaiseHand liquidTankWave) { |
||||
QueryWrapper<RaiseHand> qw = Condition.getQueryWrapper(liquidTankWave); |
||||
RaiseHand detail = service.getOne(qw); |
||||
RaiseHandVO detailVO = RaiseHandWrapper.build().entityVO(detail); |
||||
|
||||
return R.data(detailVO); |
||||
} |
||||
|
||||
/** |
||||
* [槽液曲线] list分页 |
||||
*/ |
||||
@GetMapping("/list") |
||||
@ApiOperationSupport(order = 20) |
||||
@Operation(summary = "list分页", description = "传入LiquidTankWave Obj") |
||||
public R<IPage<RaiseHandVO>> list(@Parameter(hidden = true) @RequestParam Map<String, Object> liquidTankWave, |
||||
Query query) { |
||||
QueryWrapper<RaiseHand> qw = Condition.getQueryWrapper(liquidTankWave, RaiseHand.class); |
||||
qw.eq(liquidTankWave.containsKey("name"), LiquidTankReport.COL_NAME, liquidTankWave.get("name")); |
||||
if (liquidTankWave.containsKey(BaseRequest.CREATE_TIME_START) && liquidTankWave.containsKey(BaseRequest.CREATE_TIME_END)) { |
||||
Date crStart = RequestUtil.buildDateBeginOfDay(liquidTankWave, BaseRequest.CREATE_TIME_START); |
||||
Date crEnd = RequestUtil.buildDateEndOfDay(liquidTankWave, BaseRequest.CREATE_TIME_END); |
||||
qw.between(BaseCol.CREATE_TIME, crStart, crEnd); |
||||
} |
||||
IPage<RaiseHand> pages = service.page(Condition.getPage(query), qw); |
||||
IPage<RaiseHandVO> pagesVO = RaiseHandWrapper.build().pageVO(pages); |
||||
return R.data(pagesVO); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* [槽液曲线] page分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 21) |
||||
@Operation(summary = "page分页", description = "传入LiquidTankWave Obj") |
||||
public R<IPage<RaiseHandVO>> page(RaiseHandVO liquidTankWave, Query query) { |
||||
IPage<RaiseHandVO> pagesVO = service.selectRaiseHandPage( |
||||
Condition.getPage(query), liquidTankWave |
||||
); |
||||
return R.data(pagesVO); |
||||
} |
||||
|
||||
|
||||
|
||||
@PostMapping("/save") |
||||
@ApiOperationSupport(order = 30) |
||||
@Operation(summary = "新增一条", description = "传入LiquidTankWave Obj") |
||||
public R save(@Valid @RequestBody RaiseHand addOne) { |
||||
addOne.setId(null); |
||||
return R.status(service.save(addOne)); |
||||
} |
||||
|
||||
@PostMapping("/saveBat") |
||||
@ApiOperationSupport(order = 31) |
||||
@Operation(summary = "新增批量", description = "传入LiquidTankWave List") |
||||
public R saveBat(@Valid @RequestBody List<RaiseHand> addList) { |
||||
addList.forEach(one -> { |
||||
one.setId(null); |
||||
}); |
||||
return R.status(service.saveBatch(addList)); |
||||
} |
||||
|
||||
|
||||
@PostMapping("/update") |
||||
@ApiOperationSupport(order = 40) |
||||
@Operation(summary = "修改一条", description = "传入LiquidTankWave Obj") |
||||
public R update(@Valid @RequestBody RaiseHand updateOne) { |
||||
return R.status(service.updateById(updateOne)); |
||||
} |
||||
|
||||
|
||||
@PostMapping("/updateBat") |
||||
@ApiOperationSupport(order = 41) |
||||
@Operation(summary = "修改批量", description = "传入LiquidTankWave List") |
||||
public R updateBat(@Valid @RequestBody List<RaiseHand> updateList) { |
||||
return R.status(service.updateBatchById(updateList)); |
||||
} |
||||
|
||||
|
||||
@PostMapping("/submit") |
||||
@ApiOperationSupport(order = 50) |
||||
@Operation(summary = "新增或修改一条", description = "传入LiquidTankWave Obj") |
||||
public R submit(@Valid @RequestBody RaiseHand mergeOne) { |
||||
return R.status(service.saveOrUpdate(mergeOne)); |
||||
} |
||||
|
||||
|
||||
@PostMapping("/submitBat") |
||||
@ApiOperationSupport(order = 51) |
||||
@Operation(summary = "新增或修改批量", description = "传入LiquidTankWave List") |
||||
public R submitBat(@Valid @RequestBody List<RaiseHand> mergeList) { |
||||
return R.status(service.saveOrUpdateBatch(mergeList)); |
||||
} |
||||
|
||||
/** |
||||
* [槽液曲线] 逻辑删除 |
||||
*/ |
||||
@PostMapping("/remove") |
||||
@ApiOperationSupport(order = 61) |
||||
@Operation(summary = "逻辑删除", description = "传入ids") |
||||
public R remove(@Parameter(description = "主键集合", required = true) @RequestParam String ids) { |
||||
return R.status(service.deleteLogic(Func.toLongList(ids))); |
||||
} |
||||
|
||||
/** |
||||
* [槽液曲线] 导出Excel |
||||
*/ |
||||
@GetMapping("/exportExcel") |
||||
@ApiOperationSupport(order = 70) |
||||
@Operation(summary = "导出Excel", description = "传入LiquidTankWave") |
||||
public void exportExcel(@Parameter(hidden = true) @RequestParam Map<String, Object> liquidTankWave, |
||||
BladeUser bladeUser, HttpServletResponse response) { |
||||
QueryWrapper<RaiseHand> qw = Condition.getQueryWrapper(liquidTankWave, RaiseHand.class); |
||||
//if (!AuthUtil.isAdministrator()) {
|
||||
// queryWrapper.lambda().eq(LiquidTankWave::getTenantId, bladeUser.getTenantId());
|
||||
//}
|
||||
//queryWrapper.lambda().eq(LiquidTankWaveEntity::getIsDeleted, BladeConstant.DB_NOT_DELETED);
|
||||
List<RaiseHandExcel> list = service.exportRaiseHand(qw); |
||||
ExcelUtil.export(response, "[举手免责]数据" + DateUtil.time(), |
||||
"[举手免责]数据表", list, RaiseHandExcel.class); |
||||
} |
||||
|
||||
/** |
||||
* [槽液曲线] 下载Excel模板 |
||||
*/ |
||||
@GetMapping("/downloadExcelTemplate") |
||||
@ApiOperationSupport(order = 71) |
||||
@Operation(summary = "下载Excel模板", description = "") |
||||
public ResponseEntity<org.springframework.core.io.Resource> downloadExcelTemplate() { |
||||
return ExcelExtUtil.downloadXlsTemplate( |
||||
"Excel/QA/ImportTemplate-CycleTestItem.xls", |
||||
"导入模版-周期试验项目.xls"); |
||||
} |
||||
|
||||
/** |
||||
* [槽液曲线] 导入Excel |
||||
*/ |
||||
@PostMapping("/importExcel") |
||||
@ApiOperationSupport(order = 72) |
||||
@Operation(summary = "导入Excel", description = "MultipartFile") |
||||
public R importExcel(@RequestParam("file") MultipartFile file) { |
||||
R checkR = ExcelExtUtil.importExcelCheck(file); |
||||
if (checkR != null) { |
||||
return checkR; |
||||
} |
||||
List<RaiseHand> importList = ExcelUtil.read( |
||||
file, 0, 1, RaiseHand.class |
||||
); |
||||
return R.status(service.saveBatch(importList)); |
||||
} |
||||
} |
||||
@ -0,0 +1,94 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.excel; |
||||
|
||||
|
||||
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; |
||||
import java.time.LocalDateTime; |
||||
|
||||
|
||||
/** |
||||
* [IOT硬度] Excel实体类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2025-12-23 |
||||
*/ |
||||
@Data |
||||
@ColumnWidth(25) |
||||
@HeadRowHeight(20) |
||||
@ContentRowHeight(18) |
||||
public class RaiseHandExcel implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
// /**
|
||||
// * 编码
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("编码")
|
||||
// private String code;
|
||||
// /**
|
||||
// * 使用标记位
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("使用标记位")
|
||||
// private Long flagUse;
|
||||
// /**
|
||||
// * 读取标记位
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("读取标记位")
|
||||
// private Long flagRead;
|
||||
// /**
|
||||
// * 设备号
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("设备号")
|
||||
// private String equipmentCode;
|
||||
// /**
|
||||
// * 批次号
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("批次号")
|
||||
// private String batchNo;
|
||||
// /**
|
||||
// * 检测内容
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("检测内容")
|
||||
// private String data;
|
||||
// /**
|
||||
// * 排序
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("排序")
|
||||
// private Long sort;
|
||||
// /**
|
||||
// * 备注
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("备注")
|
||||
// private String remark;
|
||||
// /**
|
||||
// * 数据上传时间
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("数据上传时间")
|
||||
// private LocalDateTime uploadDate;
|
||||
// /**
|
||||
// * [设备]id
|
||||
// */
|
||||
// @ColumnWidth(20)
|
||||
// @ExcelProperty("[设备]id")
|
||||
// private BigDecimal equipmentId;
|
||||
} |
||||
@ -0,0 +1,45 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.mapper; |
||||
|
||||
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.quality.excel.RaiseHandExcel; |
||||
import org.springblade.desk.quality.excel.StandardExcel; |
||||
import org.springblade.desk.quality.pojo.entity.RaiseHand; |
||||
import org.springblade.desk.quality.pojo.entity.Standard; |
||||
import org.springblade.desk.quality.pojo.entity.WorkPlanThicknessDetail; |
||||
import org.springblade.desk.quality.pojo.vo.RaiseHandVO; |
||||
import org.springblade.desk.quality.pojo.vo.WorkPlanItemThicknessVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [工序检验项] Mapper 接口 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
public interface RaiseHandMapper extends BaseMapper<RaiseHand> { |
||||
|
||||
/** |
||||
* 自定义分页 |
||||
* |
||||
* @param page 分页参数 |
||||
* @param workPlanItem 查询参数 |
||||
* @return List<WorkPlanItemVO> |
||||
*/ |
||||
IPage<RaiseHandVO> selectRaiseHandPage(IPage page, RaiseHandVO workPlanItem); |
||||
List<RaiseHandExcel> exportRaiseHand(@Param("ew") Wrapper<RaiseHand> queryWrapper); |
||||
|
||||
/** |
||||
* 获取导出数据 |
||||
* |
||||
* @param queryWrapper 查询条件 |
||||
* @return List<WorkPlanItemExcel> |
||||
*/ |
||||
// List<WorkPlanItemExcel> exportWorkPlanItem(@Param("ew") Wrapper<WorkPlanItem> 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.desk.quality.mapper.RaiseHandMapper"> |
||||
|
||||
<!-- 通用查询映射结果 --> |
||||
<resultMap id="workPlanItemResultMap" |
||||
type="org.springblade.desk.quality.pojo.entity.RaiseHand"> |
||||
<!-- <result column="WP_ID" property="wpId"/>--> |
||||
<!-- <result column="CHECK_QTY" property="checkQty"/>--> |
||||
<!-- <result column="TEST_QTY" property="testQty"/>--> |
||||
<!-- <result column="LOSS_QTY" property="lossQty"/>--> |
||||
<!-- <result column="ITEM_CODE" property="itemCode"/>--> |
||||
<!-- <result column="ITEM_NAME" property="itemName"/>--> |
||||
<!-- <result column="STANDARD_NAME" property="standardName"/>--> |
||||
<!-- <result column="CHECK_USER_ID" property="checkUserId"/>--> |
||||
<!-- <result column="CHECK_VALUE" property="checkValue"/>--> |
||||
<!-- <result column="CHECK_DATE" property="checkDate"/>--> |
||||
<!-- <result column="CHECK_RESULT" property="checkResult"/>--> |
||||
<!-- <result column="HOUR_QUOTA" property="hourQuota"/>--> |
||||
<!-- <result column="HOUR_PREPARE" property="hourPrepare"/>--> |
||||
<!-- <result column="TASK_ID" property="taskId"/>--> |
||||
<!-- <result column="ITEM_ID" property="itemId"/>--> |
||||
<!-- <result column="STANDARD_ID" property="standardId"/>--> |
||||
<!-- <result column="TEMPLATE_ID" property="templateId"/>--> |
||||
<!-- <result column="SPECIAL_TYPE" property="specialType"/>--> |
||||
</resultMap> |
||||
|
||||
<select id="selectRaiseHandPage" resultType="org.springblade.desk.quality.pojo.vo.RaiseHandVO"> |
||||
SELECT * |
||||
FROM QA_WORK_RAISE_HAND |
||||
WHERE is_deleted = 0 |
||||
</select> |
||||
|
||||
<select id="exportWorkPlanItem" |
||||
resultType="org.springblade.desk.quality.excel.RaiseHandExcel"> |
||||
SELECT * |
||||
FROM QA_WORK_RAISE_HAND ${ew.customSqlSegment} |
||||
</select> |
||||
</mapper> |
||||
@ -0,0 +1,38 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.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.desk.quality.excel.RaiseHandExcel; |
||||
import org.springblade.desk.quality.excel.StandardExcel; |
||||
import org.springblade.desk.quality.pojo.entity.RaiseHand; |
||||
import org.springblade.desk.quality.pojo.entity.Standard; |
||||
import org.springblade.desk.quality.pojo.entity.WorkPlanThicknessDetail; |
||||
import org.springblade.desk.quality.pojo.vo.RaiseHandVO; |
||||
import org.springblade.desk.quality.pojo.vo.WorkPlanItemThicknessVO; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [工序检验项明细] 服务类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
public interface IRaiseHandService extends BaseService<RaiseHand> { |
||||
|
||||
/** |
||||
* VO |
||||
* |
||||
* @param vo |
||||
*/ |
||||
void setVOValue(WorkPlanItemThicknessVO vo); |
||||
|
||||
IPage<RaiseHandVO> selectRaiseHandPage(IPage page, RaiseHandVO workPlanItem); |
||||
|
||||
List<RaiseHandExcel> exportRaiseHand(Wrapper<RaiseHand> queryWrapper); |
||||
|
||||
} |
||||
@ -0,0 +1,65 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.service.impl; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.desk.quality.excel.RaiseHandExcel; |
||||
import org.springblade.desk.quality.excel.StandardExcel; |
||||
import org.springblade.desk.quality.mapper.RaiseHandMapper; |
||||
import org.springblade.desk.quality.mapper.WorkPlanItemThicknessMapper; |
||||
import org.springblade.desk.quality.pojo.entity.RaiseHand; |
||||
import org.springblade.desk.quality.pojo.entity.WorkPlanThicknessDetail; |
||||
import org.springblade.desk.quality.pojo.vo.RaiseHandVO; |
||||
import org.springblade.desk.quality.pojo.vo.WorkPlanItemThicknessVO; |
||||
import org.springblade.desk.quality.service.IRaiseHandService; |
||||
import org.springblade.desk.quality.service.IWorkPlanItemThicknessService; |
||||
import org.springblade.desk.quality.wrapper.WorkPlanItemThicknessWrapper; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* [工序检验项明细] 服务实现类 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
@Service |
||||
@Data |
||||
@AllArgsConstructor |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@Slf4j |
||||
public class RaiseHandServiceImpl extends BaseServiceImpl<RaiseHandMapper, RaiseHand> |
||||
implements IRaiseHandService { |
||||
|
||||
|
||||
@Override |
||||
public void setVOValue(WorkPlanItemThicknessVO vo) { |
||||
|
||||
} |
||||
|
||||
@Override |
||||
public IPage<RaiseHandVO> selectRaiseHandPage(IPage page, RaiseHandVO workPlanItem) { |
||||
return baseMapper.selectRaiseHandPage(page, workPlanItem); |
||||
} |
||||
|
||||
@Override |
||||
public List<RaiseHandExcel> exportRaiseHand(Wrapper<RaiseHand> queryWrapper) { |
||||
List<RaiseHandExcel> standardList = baseMapper.exportRaiseHand(queryWrapper); |
||||
//standardList.forEach(standard -> {
|
||||
// standard.setTypeName(DictCache.getValue(DictEnum.YES_NO, Standard.getType()));
|
||||
//});
|
||||
return standardList; |
||||
} |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,32 @@ |
||||
/** |
||||
* Author: Tom Shuo |
||||
*/ |
||||
package org.springblade.desk.quality.wrapper; |
||||
|
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.desk.quality.pojo.entity.RaiseHand; |
||||
import org.springblade.desk.quality.pojo.entity.WorkPlanThicknessDetail; |
||||
import org.springblade.desk.quality.pojo.vo.RaiseHandVO; |
||||
import org.springblade.desk.quality.pojo.vo.WorkPlanItemThicknessVO; |
||||
|
||||
import java.util.Objects; |
||||
|
||||
/** |
||||
* [工序检验项明细] 包装类,返回视图层所需的字段 |
||||
* |
||||
* @author Tom Shuo |
||||
* @since 2026-01-06 |
||||
*/ |
||||
public class RaiseHandWrapper extends BaseEntityWrapper<RaiseHand, RaiseHandVO> { |
||||
|
||||
public static RaiseHandWrapper build() { |
||||
return new RaiseHandWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public RaiseHandVO entityVO(RaiseHand entity) { |
||||
RaiseHandVO VO = Objects.requireNonNull(BeanUtil.copyProperties(entity, RaiseHandVO.class)); |
||||
return VO; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue