liweidong
parent
799439d3ba
commit
4ebef2495e
47 changed files with 1143 additions and 107 deletions
@ -0,0 +1,29 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.dashboard.feign.IBatchPreservePlanClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-槽液精细化-累计类 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class AccumulateTankSolutionRefinement implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IBatchPreservePlanClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
client.createAccumulateClassTask(); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.dashboard.feign.IBatchPreservePlanClient; |
||||||
|
import org.springblade.desk.dashboard.feign.IDsTaskBillClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-过程项任务 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class DsTaskBillProcessor implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IDsTaskBillClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
client.createCraSpecTask(); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,29 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.dashboard.feign.IBatchPreservePlanClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-槽液精细化-定期类 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class PerformPeriodicTankSolutionRefinement implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IBatchPreservePlanClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
client.createPeriodicalClassTask(); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.dashboard.feign.IBatchPreservePlanClient; |
||||||
|
import org.springblade.desk.quality.feign.ICycleTestTaskClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-槽液精细化-计划类 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class PlanTankSolutionRefinement implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IBatchPreservePlanClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
client.createPlanClassTask(); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,30 @@ |
|||||||
|
package org.springblade.job.processor.dashboard; |
||||||
|
|
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import lombok.Data; |
||||||
|
import lombok.extern.slf4j.Slf4j; |
||||||
|
import org.springblade.desk.dashboard.feign.IDsTaskBillClient; |
||||||
|
import org.springblade.desk.dashboard.feign.IPartClient; |
||||||
|
import org.springframework.stereotype.Component; |
||||||
|
import tech.powerjob.worker.core.processor.ProcessResult; |
||||||
|
import tech.powerjob.worker.core.processor.TaskContext; |
||||||
|
import tech.powerjob.worker.core.processor.sdk.BasicProcessor; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模块-返工任务 |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@Component |
||||||
|
@Data |
||||||
|
@Slf4j |
||||||
|
public class ReworkTaskProcessor implements BasicProcessor { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IPartClient client; |
||||||
|
|
||||||
|
@Override |
||||||
|
public ProcessResult process(TaskContext context) throws Exception { |
||||||
|
client.reworkTask(); |
||||||
|
return new ProcessResult(true); |
||||||
|
} |
||||||
|
} |
||||||
@ -0,0 +1,44 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import org.springblade.core.launch.constant.AppConstant; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = AppConstant.APPLICATION_DESK_NAME |
||||||
|
) |
||||||
|
public interface IBatchPreservePlanClient { |
||||||
|
|
||||||
|
String API_PREFIX = "/feign/client/batchPreservePlan"; |
||||||
|
|
||||||
|
String CREATE_PLAN_CLASS_TASK = API_PREFIX + "/createPlanClassTask"; |
||||||
|
|
||||||
|
String CREATE_PERIODICAL_CLASS_TASK = API_PREFIX + "/createPeriodicalClassTask"; |
||||||
|
|
||||||
|
String CREATE_ACCUMULATE_CLASS_TASK = API_PREFIX + "/createAccumulateClassTask"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 槽液精细化-计划类-任务发起 |
||||||
|
*/ |
||||||
|
@GetMapping(CREATE_PLAN_CLASS_TASK) |
||||||
|
void createPlanClassTask(); |
||||||
|
|
||||||
|
/** |
||||||
|
* 槽液精细化-定期类-任务发起 |
||||||
|
*/ |
||||||
|
@GetMapping(CREATE_PERIODICAL_CLASS_TASK) |
||||||
|
void createPeriodicalClassTask(); |
||||||
|
|
||||||
|
/** |
||||||
|
* 槽液精细化-累计类-任务发起 |
||||||
|
*/ |
||||||
|
@GetMapping(CREATE_ACCUMULATE_CLASS_TASK) |
||||||
|
void createAccumulateClassTask(); |
||||||
|
} |
||||||
@ -0,0 +1,28 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import org.springblade.core.launch.constant.AppConstant; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity; |
||||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@FeignClient( |
||||||
|
value = AppConstant.APPLICATION_DESK_NAME |
||||||
|
) |
||||||
|
public interface IDsTaskBillClient { |
||||||
|
|
||||||
|
String API_PREFIX = "/feign/client/taskBill"; |
||||||
|
|
||||||
|
String CREATE_CRA_SPEC_TASK = API_PREFIX + "/createCraSpecTask"; |
||||||
|
|
||||||
|
/** |
||||||
|
* 过程项任务 |
||||||
|
*/ |
||||||
|
@GetMapping(CREATE_CRA_SPEC_TASK) |
||||||
|
void createCraSpecTask(); |
||||||
|
} |
||||||
@ -0,0 +1,98 @@ |
|||||||
|
/** |
||||||
|
* 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.desk.dashboard.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 BladeX |
||||||
|
* @since 2025-11-12 |
||||||
|
*/ |
||||||
|
@Data |
||||||
|
@TableName("DS_MODEL_PROJECT") |
||||||
|
@Schema(description = "DsModelProject对象") |
||||||
|
@EqualsAndHashCode(callSuper = true) |
||||||
|
public class DsModelProjectEntity extends BaseEntity { |
||||||
|
|
||||||
|
@Serial |
||||||
|
private static final long serialVersionUID = 1L; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工艺模版明细ID |
||||||
|
*/ |
||||||
|
@Schema(description = "工艺模版明细ID") |
||||||
|
private Long modelDetailId; |
||||||
|
/** |
||||||
|
* 项目编号 |
||||||
|
*/ |
||||||
|
@Schema(description = "项目编号") |
||||||
|
private String projectCode; |
||||||
|
/** |
||||||
|
* 项目名称 |
||||||
|
*/ |
||||||
|
@Schema(description = "项目名称") |
||||||
|
private String projectName; |
||||||
|
/** |
||||||
|
* 标准 |
||||||
|
*/ |
||||||
|
@Schema(description = "标准") |
||||||
|
private String projectStandard; |
||||||
|
/** |
||||||
|
* 标准名称 |
||||||
|
*/ |
||||||
|
@Schema(description = "标准名称") |
||||||
|
private String projectStandardName; |
||||||
|
/** |
||||||
|
* 工时定额 |
||||||
|
*/ |
||||||
|
@Schema(description = "工时定额") |
||||||
|
private Long proHours; |
||||||
|
/** |
||||||
|
* 准备工时 |
||||||
|
*/ |
||||||
|
@Schema(description = "准备工时") |
||||||
|
private Long prepareHours; |
||||||
|
/** |
||||||
|
* 备注 |
||||||
|
*/ |
||||||
|
@Schema(description = "备注") |
||||||
|
private String remarks; |
||||||
|
|
||||||
|
/** |
||||||
|
* 实验编号 |
||||||
|
*/ |
||||||
|
@Schema(description = "实验编号") |
||||||
|
private String trialNo; |
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,69 @@ |
|||||||
|
/** |
||||||
|
* 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.desk.dashboard.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.dashboard.excel.DsProcessProjectExcel; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.DsProcessProjectVO; |
||||||
|
import org.springblade.desk.dashboard.service.IDsProcessProjectService; |
||||||
|
import org.springblade.desk.dashboard.wrapper.DsProcessProjectWrapper; |
||||||
|
import org.springframework.web.bind.annotation.*; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工序项目信息表 控制器 |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
* @since 2025-11-12 |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/DsModelProject") |
||||||
|
@Tag(name = "工艺模版项目表", description = "工艺模版项目表接口") |
||||||
|
public class DsModelProjectController extends BladeController { |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
@ -0,0 +1,40 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Hidden; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsPartRelationEntity; |
||||||
|
import org.springblade.desk.dashboard.service.IDsBatchPreservePlanService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsPartRelationService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsPartService; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@Hidden() |
||||||
|
public class BatchPreservePlanClient implements IBatchPreservePlanClient { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IDsBatchPreservePlanService batchPreservePlanService; |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public void createPlanClassTask() { |
||||||
|
batchPreservePlanService.createPlanClassTask(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void createPeriodicalClassTask() { |
||||||
|
batchPreservePlanService.createPeriodicalClassTask(); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public void createAccumulateClassTask() { |
||||||
|
batchPreservePlanService.createAccumulateClassTask(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,25 @@ |
|||||||
|
package org.springblade.desk.dashboard.feign; |
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Hidden; |
||||||
|
import jakarta.annotation.Resource; |
||||||
|
import org.springblade.desk.dashboard.service.IDsBatchPreservePlanService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsTaskBillService; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* @author liweidong |
||||||
|
*/ |
||||||
|
@RestController |
||||||
|
@Hidden() |
||||||
|
public class DsTaskBillClient implements IDsTaskBillClient { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private IDsTaskBillService taskBillService; |
||||||
|
|
||||||
|
|
||||||
|
@Override |
||||||
|
public void createCraSpecTask() { |
||||||
|
taskBillService.createCraSpecTask(); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
@ -0,0 +1,50 @@ |
|||||||
|
/** |
||||||
|
* 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.desk.dashboard.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.dashboard.excel.DsProcessProjectExcel; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.DsProcessProjectVO; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
* @since 2025-11-12 |
||||||
|
*/ |
||||||
|
public interface DsModelProjectMapper extends BaseMapper<DsModelProjectEntity> { |
||||||
|
|
||||||
|
|
||||||
|
List<DsModelProjectEntity> selectByDetailId(@Param("detailId") Long detailId); |
||||||
|
|
||||||
|
List<DsModelProjectEntity> selectByDetailIds(@Param("detailIds") List<Long> detailIds); |
||||||
|
} |
||||||
@ -0,0 +1,37 @@ |
|||||||
|
<?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.dashboard.mapper.DsModelProjectMapper"> |
||||||
|
|
||||||
|
<!-- 通用查询映射结果 --> |
||||||
|
<resultMap id="dsProcessProjectResultMap" type="org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity"> |
||||||
|
<result column="ID" property="id"/> |
||||||
|
<result column="MODEL_DETAIL_ID" property="modelDetailId"/> |
||||||
|
<result column="PROJECT_CODE" property="projectCode"/> |
||||||
|
<result column="PROJECT_NAME" property="projectName"/> |
||||||
|
<result column="PROJECT_STANDARD" property="projectStandard"/> |
||||||
|
<result column="PROJECT_STANDARD_NAME" property="projectStandardName"/> |
||||||
|
<result column="PRO_HOURS" property="proHours"/> |
||||||
|
<result column="PREPARE_HOURS" property="prepareHours"/> |
||||||
|
<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="TRIAL_NO" property="trialNo"/> |
||||||
|
</resultMap> |
||||||
|
<select id="selectByDetailId" resultType="org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity"> |
||||||
|
select * from where IS_DELETED = 0 and MODEL_DETAIL_ID = #{detailId} |
||||||
|
</select> |
||||||
|
<select id="selectByDetailIds" |
||||||
|
resultType="org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity"> |
||||||
|
select * from DS_MODEL_PROJECT where IS_DELETED = 0 and MODEL_DETAIL_ID in |
||||||
|
<foreach collection="detailIds" item="id" open="(" close=")" separator=","> |
||||||
|
#{id} |
||||||
|
</foreach> |
||||||
|
</select> |
||||||
|
|
||||||
|
|
||||||
|
</mapper> |
||||||
@ -0,0 +1,61 @@ |
|||||||
|
/** |
||||||
|
* 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.desk.dashboard.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.dashboard.excel.DsProcessProjectExcel; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.DsProcessProjectVO; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.PrReworkProcessVO; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工序项目信息表 服务类 |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
* @since 2025-11-12 |
||||||
|
*/ |
||||||
|
public interface IDsModelProjectService extends BaseService<DsModelProjectEntity> { |
||||||
|
|
||||||
|
/** |
||||||
|
* 根据模版明细ID查询 |
||||||
|
* @param detailId |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DsModelProjectEntity> selectByDetailId(Long detailId); |
||||||
|
|
||||||
|
/** |
||||||
|
* 批量查询 |
||||||
|
* @param detailIds |
||||||
|
* @return |
||||||
|
*/ |
||||||
|
List<DsModelProjectEntity> selectByDetailIds(List<Long> detailIds); |
||||||
|
} |
||||||
@ -0,0 +1,68 @@ |
|||||||
|
/** |
||||||
|
* 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.desk.dashboard.service.impl; |
||||||
|
|
||||||
|
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.dashboard.excel.DsProcessProjectExcel; |
||||||
|
import org.springblade.desk.dashboard.mapper.DsModelProjectMapper; |
||||||
|
import org.springblade.desk.dashboard.mapper.DsProcessProjectMapper; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsModelProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.entity.DsProcessProjectEntity; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.DsProcessProjectVO; |
||||||
|
import org.springblade.desk.dashboard.pojo.vo.PrReworkProcessVO; |
||||||
|
import org.springblade.desk.dashboard.service.IDsModelProjectService; |
||||||
|
import org.springblade.desk.dashboard.service.IDsProcessProjectService; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.stereotype.Service; |
||||||
|
import org.springframework.util.CollectionUtils; |
||||||
|
|
||||||
|
import java.util.List; |
||||||
|
|
||||||
|
/** |
||||||
|
* 工序项目信息表 服务实现类 |
||||||
|
* |
||||||
|
* @author BladeX |
||||||
|
* @since 2025-11-12 |
||||||
|
*/ |
||||||
|
@Service |
||||||
|
public class DsModelProjectServiceImpl extends BaseServiceImpl<DsModelProjectMapper, DsModelProjectEntity> implements IDsModelProjectService { |
||||||
|
|
||||||
|
@Autowired |
||||||
|
DsModelProjectMapper modelProjectMapper; |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<DsModelProjectEntity> selectByDetailId(Long detailId) { |
||||||
|
return modelProjectMapper.selectByDetailId(detailId); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
public List<DsModelProjectEntity> selectByDetailIds(List<Long> detailIds) { |
||||||
|
return modelProjectMapper.selectByDetailIds(detailIds); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue