Merge branch 'test' of https://git.will-way.cn/zgty/zt-qms into test
This commit is contained in:
@@ -193,6 +193,7 @@ public interface ErrorCodeConstants {
|
|||||||
ErrorCode MATERIAL_PRODUCTS_EXISTS_CATEGORY = new ErrorCode(1_032_160_000, "物料大类列表中存在分类数据");
|
ErrorCode MATERIAL_PRODUCTS_EXISTS_CATEGORY = new ErrorCode(1_032_160_000, "物料大类列表中存在分类数据");
|
||||||
ErrorCode MATERIAL_LIFECYCLE_DETAIL_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料通用流程明细不存在");
|
ErrorCode MATERIAL_LIFECYCLE_DETAIL_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料通用流程明细不存在");
|
||||||
ErrorCode MATERIAL_LIFECYCLE_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料通用流程不存在");
|
ErrorCode MATERIAL_LIFECYCLE_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料通用流程不存在");
|
||||||
|
ErrorCode MATERIAL_CORRELATION_ASSAY_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料检化验关联信息不存在");
|
||||||
|
|
||||||
ErrorCode MATERIAL_BATCH_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料批次不存在");
|
ErrorCode MATERIAL_BATCH_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料批次不存在");
|
||||||
ErrorCode MATERIAL_BATCH_GONG_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料批次工段不存在");
|
ErrorCode MATERIAL_BATCH_GONG_NOT_EXISTS = new ErrorCode(1_032_160_000, "物料批次工段不存在");
|
||||||
|
|||||||
@@ -67,6 +67,9 @@ public class ReportDocumentAssistService {
|
|||||||
@Resource private FileApi fileApi;
|
@Resource private FileApi fileApi;
|
||||||
@Resource private BusinessFileApi businessFileApi;
|
@Resource private BusinessFileApi businessFileApi;
|
||||||
@Resource private DictionaryBusinessService dictionaryBusinessService;
|
@Resource private DictionaryBusinessService dictionaryBusinessService;
|
||||||
|
|
||||||
|
private final String iwork_sjly = "dt_dsc"; //
|
||||||
|
|
||||||
// private String sequenceKey = "QMS_REPORT_IWORK_CODE";
|
// private String sequenceKey = "QMS_REPORT_IWORK_CODE";
|
||||||
|
|
||||||
// todo 判断是否更新pdf
|
// todo 判断是否更新pdf
|
||||||
@@ -135,10 +138,13 @@ public class ReportDocumentAssistService {
|
|||||||
dto.setOperatorUserId(operatorUserId);
|
dto.setOperatorUserId(operatorUserId);
|
||||||
|
|
||||||
Map<String, Object> payload = new HashMap<>();
|
Map<String, Object> payload = new HashMap<>();
|
||||||
payload.put("sqr", jbr);
|
payload.put("sqr", jbr); //申请人
|
||||||
payload.put("sqrq", sdf.format(new Date()));
|
payload.put("sqrq", sdf.format(new Date())); //申请日期
|
||||||
payload.put("sqgs", fb);
|
payload.put("sqgs", fb); //申请公司
|
||||||
payload.put("sqbm", yybm);
|
payload.put("sqbm", yybm); //申请部门
|
||||||
|
payload.put("sjly", iwork_sjly); //数据来源
|
||||||
|
payload.put("ywxtdjbh", billNo); //业务系统单据编号
|
||||||
|
payload.put("yyfs", "1"); //用印方式
|
||||||
// payload.put("yysyhnrzy", "检测报告用印");
|
// payload.put("yysyhnrzy", "检测报告用印");
|
||||||
payload.put("xyywj", url);
|
payload.put("xyywj", url);
|
||||||
Map<String, Object> param = this.buildCreatePayload( billNo, jsonObject.getString("iwork_workflowId"), new JSONObject(payload));
|
Map<String, Object> param = this.buildCreatePayload( billNo, jsonObject.getString("iwork_workflowId"), new JSONObject(payload));
|
||||||
@@ -278,7 +284,7 @@ public class ReportDocumentAssistService {
|
|||||||
|
|
||||||
private List<Map<String, Object>> buildSealMainData(JSONObject payload) {
|
private List<Map<String, Object>> buildSealMainData(JSONObject payload) {
|
||||||
ArrayList target = new ArrayList();
|
ArrayList target = new ArrayList();
|
||||||
String allFields = "sqr,sqrq,sqgs,sqbm,bizId,yysyhnrzy";
|
String allFields = "sqr,sqrq,sqgs,sqbm,bizId,yysyhnrzy,sjly,ywxtdjbh,yyfs";
|
||||||
for(String field : allFields.split(",")){
|
for(String field : allFields.split(",")){
|
||||||
this.addField(target, field, payload.getString( field));
|
this.addField(target, field, payload.getString( field));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,4 +14,8 @@ public class MaterialConstants {
|
|||||||
|
|
||||||
// 外部模块
|
// 外部模块
|
||||||
public static final String DEVICE_BURETTE_CATEGORY_NAME = "滴定管";
|
public static final String DEVICE_BURETTE_CATEGORY_NAME = "滴定管";
|
||||||
|
|
||||||
|
// 流程
|
||||||
|
public static final String INIT_ASSAY_FLOW = "initAssayFlow";
|
||||||
|
public static final String ASSAY_FLAG = "assayFlag";
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,9 @@
|
|||||||
package com.zt.plat.module.qms.resource.material.controller.vo;
|
package com.zt.plat.module.qms.resource.material.controller.vo;
|
||||||
|
|
||||||
import com.zt.plat.framework.common.pojo.PageParam;
|
import com.zt.plat.framework.common.pojo.PageParam;
|
||||||
|
import com.zt.plat.module.qms.resource.material.enums.MaterialBatchBusinessType;
|
||||||
|
import com.zt.plat.module.qms.resource.material.enums.MaterialBatchGongBusinessType;
|
||||||
|
import com.zt.plat.module.qms.resource.material.enums.MaterialBatchGongType;
|
||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
@@ -21,7 +24,7 @@ public class MaterialBatchPageReqVO extends PageParam {
|
|||||||
private Long productId;
|
private Long productId;
|
||||||
|
|
||||||
@Schema(description = "业务场景 batch_manage-批次管理,acceptance-验收,inbound-入库,return_exchange-退换货")
|
@Schema(description = "业务场景 batch_manage-批次管理,acceptance-验收,inbound-入库,return_exchange-退换货")
|
||||||
private String businessType;
|
private MaterialBatchGongBusinessType businessType;
|
||||||
|
|
||||||
@Schema(description = "是否需要组装 children")
|
@Schema(description = "是否需要组装 children")
|
||||||
private Boolean children = false;
|
private Boolean children = false;
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ public class MaterialBatchRespVO {
|
|||||||
@ExcelProperty("物料大类id")
|
@ExcelProperty("物料大类id")
|
||||||
private Long productId;
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "关联的样品大类id")
|
||||||
|
private String productSampleIds;
|
||||||
|
|
||||||
@Schema(description = "分类自定义配置")
|
@Schema(description = "分类自定义配置")
|
||||||
@ExcelProperty("分类自定义配置")
|
@ExcelProperty("分类自定义配置")
|
||||||
private JSONObject categoryCustomConfig;
|
private JSONObject categoryCustomConfig;
|
||||||
|
|||||||
@@ -0,0 +1,62 @@
|
|||||||
|
package com.zt.plat.module.qms.resource.material.controller.vo;
|
||||||
|
|
||||||
|
import com.zt.plat.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 物料检化验关联信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class MaterialCorrelationAssayPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "检化验委托id,用于关联到检化验模块", example = "8699")
|
||||||
|
private Long entrustId;
|
||||||
|
|
||||||
|
@Schema(description = "业务类型,验收检化验等", example = "2")
|
||||||
|
private String businessType;
|
||||||
|
|
||||||
|
@Schema(description = "检验来源,如验收明细id")
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
@Schema(description = "物料大类id", example = "31683")
|
||||||
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "样品大类id,检化验业务样品大类", example = "1909")
|
||||||
|
private Long sampleId;
|
||||||
|
|
||||||
|
@Schema(description = "批次id", example = "3150")
|
||||||
|
private Long batchId;
|
||||||
|
|
||||||
|
@Schema(description = "批次拆分/工段id", example = "2292")
|
||||||
|
private Long gongduanId;
|
||||||
|
|
||||||
|
@Schema(description = "检测项")
|
||||||
|
private String item;
|
||||||
|
|
||||||
|
@Schema(description = "状态,未开始、进行中、已完成", example = "2")
|
||||||
|
private String assayStatus;
|
||||||
|
|
||||||
|
@Schema(description = "结果,检化验结果")
|
||||||
|
private String result;
|
||||||
|
|
||||||
|
@Schema(description = "是否合格,字典")
|
||||||
|
private String qualified;
|
||||||
|
|
||||||
|
@Schema(description = "说明")
|
||||||
|
private String reason;
|
||||||
|
|
||||||
|
@Schema(description = "所属部门")
|
||||||
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||||
|
private LocalDateTime[] createTime;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,79 @@
|
|||||||
|
package com.zt.plat.module.qms.resource.material.controller.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 物料检化验关联信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class MaterialCorrelationAssayRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6949")
|
||||||
|
@ExcelProperty("主键id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "检化验委托id,用于关联到检化验模块", example = "8699")
|
||||||
|
@ExcelProperty("检化验委托id,用于关联到检化验模块")
|
||||||
|
private Long entrustId;
|
||||||
|
|
||||||
|
@Schema(description = "业务类型,验收检化验等", example = "2")
|
||||||
|
@ExcelProperty("业务类型,验收检化验等")
|
||||||
|
private String businessType;
|
||||||
|
|
||||||
|
@Schema(description = "检验来源,如验收明细id")
|
||||||
|
@ExcelProperty("检验来源,如验收明细id")
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
@Schema(description = "物料大类id", example = "31683")
|
||||||
|
@ExcelProperty("物料大类id")
|
||||||
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "样品大类id,检化验业务样品大类", example = "1909")
|
||||||
|
@ExcelProperty("样品大类id,检化验业务样品大类")
|
||||||
|
private Long sampleId;
|
||||||
|
|
||||||
|
@Schema(description = "批次id", example = "3150")
|
||||||
|
@ExcelProperty("批次id")
|
||||||
|
private Long batchId;
|
||||||
|
|
||||||
|
@Schema(description = "批次拆分/工段id", example = "2292")
|
||||||
|
@ExcelProperty("批次拆分/工段id")
|
||||||
|
private Long gongduanId;
|
||||||
|
|
||||||
|
@Schema(description = "检测项")
|
||||||
|
@ExcelProperty("检测项")
|
||||||
|
private String item;
|
||||||
|
|
||||||
|
@Schema(description = "状态,未开始、进行中、已完成", example = "2")
|
||||||
|
@ExcelProperty("状态,未开始、进行中、已完成")
|
||||||
|
private String assayStatus;
|
||||||
|
|
||||||
|
@Schema(description = "结果,检化验结果")
|
||||||
|
@ExcelProperty("结果,检化验结果")
|
||||||
|
private String result;
|
||||||
|
|
||||||
|
@Schema(description = "是否合格,字典")
|
||||||
|
@ExcelProperty("是否合格,字典")
|
||||||
|
private String qualified;
|
||||||
|
|
||||||
|
@Schema(description = "说明")
|
||||||
|
@ExcelProperty("说明")
|
||||||
|
private String reason;
|
||||||
|
|
||||||
|
@Schema(description = "所属部门")
|
||||||
|
@ExcelProperty("所属部门")
|
||||||
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
@ExcelProperty("备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
@Schema(description = "创建时间")
|
||||||
|
@ExcelProperty("创建时间")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
package com.zt.plat.module.qms.resource.material.controller.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 物料检化验关联信息新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class MaterialCorrelationAssaySaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6949")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "检化验委托id,用于关联到检化验模块", example = "8699")
|
||||||
|
private Long entrustId;
|
||||||
|
|
||||||
|
@Schema(description = "业务类型,验收检化验等", example = "2")
|
||||||
|
private String businessType;
|
||||||
|
|
||||||
|
@Schema(description = "检验来源,如验收明细id")
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
@Schema(description = "物料大类id", example = "31683")
|
||||||
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "样品大类id,检化验业务样品大类", example = "1909")
|
||||||
|
private Long sampleId;
|
||||||
|
|
||||||
|
@Schema(description = "批次id", example = "3150")
|
||||||
|
private Long batchId;
|
||||||
|
|
||||||
|
@Schema(description = "批次拆分/工段id", example = "2292")
|
||||||
|
private Long gongduanId;
|
||||||
|
|
||||||
|
@Schema(description = "检测项")
|
||||||
|
private String item;
|
||||||
|
|
||||||
|
@Schema(description = "状态,未开始、进行中、已完成", example = "2")
|
||||||
|
private String assayStatus;
|
||||||
|
|
||||||
|
@Schema(description = "结果,检化验结果")
|
||||||
|
private String result;
|
||||||
|
|
||||||
|
@Schema(description = "是否合格,字典")
|
||||||
|
private String qualified;
|
||||||
|
|
||||||
|
@Schema(description = "说明")
|
||||||
|
private String reason;
|
||||||
|
|
||||||
|
@Schema(description = "所属部门")
|
||||||
|
private String systemDepartmentCode;
|
||||||
|
|
||||||
|
@Schema(description = "备注")
|
||||||
|
private String remark;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -30,6 +30,9 @@ public class MaterialLifecycleDetailRespVO {
|
|||||||
@ExcelProperty("物料大类id")
|
@ExcelProperty("物料大类id")
|
||||||
private Long productId;
|
private Long productId;
|
||||||
|
|
||||||
|
@Schema(description = "物料关联的样品大类")
|
||||||
|
private String productSampleIds;
|
||||||
|
|
||||||
@Schema(description = "物料大类名称")
|
@Schema(description = "物料大类名称")
|
||||||
@ExcelProperty("物料大类名称")
|
@ExcelProperty("物料大类名称")
|
||||||
private String productName;
|
private String productName;
|
||||||
@@ -94,6 +97,9 @@ public class MaterialLifecycleDetailRespVO {
|
|||||||
@ExcelProperty("是否检化验,1-是,0-否")
|
@ExcelProperty("是否检化验,1-是,0-否")
|
||||||
private Integer assayFlag;
|
private Integer assayFlag;
|
||||||
|
|
||||||
|
@Schema(description = "检化验id")
|
||||||
|
private Long assayId;
|
||||||
|
|
||||||
@Schema(description = "物料实例id", example = "968")
|
@Schema(description = "物料实例id", example = "968")
|
||||||
@ExcelProperty("物料实例id")
|
@ExcelProperty("物料实例id")
|
||||||
private Long infomationId;
|
private Long infomationId;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user