Merge branch 'dev' into test

This commit is contained in:
chenbowen
2025-11-19 15:44:24 +08:00
8 changed files with 40 additions and 16 deletions

View File

@@ -19,7 +19,7 @@
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
<properties>
<revision>3.0.43</revision>
<revision>3.0.44</revision>
<!-- Maven 相关 -->
<java.version>17</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>

View File

@@ -14,6 +14,8 @@ public class DemotesQueryReqVO extends PageParam {
private String contractPaperNumber;
@Schema(description = "物料名称")
private String materialName;
@Schema(description = "物料编码")
private String materialNumber;
@Schema(description = "金属元素")
private String elementName;
private String elementAbbreviation;
}

View File

@@ -12,8 +12,12 @@ public class FormulasQueryReqVO extends PageParam {
private String contractName;
@Schema(description = "合同编码")
private String contractPaperNumber;
@Schema(description = "公式类型")
private String formulaType;
@Schema(description = "物料名称")
private String materialName;
@Schema(description = "物料编码")
private String materialNumber;
@Schema(description = "金属元素")
private String elementName;
private String elementAbbreviation;
}

View File

@@ -14,6 +14,8 @@ public class NotsQueryReqVO extends PageParam {
private String contractPaperNumber;
@Schema(description = "物料名称")
private String materialName;
@Schema(description = "物料编码")
private String materialNumber;
@Schema(description = "金属元素")
private String elementName;
private String elementAbbreviation;
}

View File

@@ -43,10 +43,13 @@ public interface ContractDemoteMapper extends BaseMapperX<ContractDemoteDO> {
"<if test= \"materialName != null and materialName != ''\">",
"and mtrl_name like concat('%',#{materialName},'%')",
"</if>",
"<if test= \"elementName != null and elementName != ''\">",
"and mtrl_num like concat('%',#{elementName},'%')",
"<if test= \"materialNumber != null and materialNumber != ''\">",
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
"</if>",
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
"</if>",
"</script>"
})
IPage<DemoteRespVO> selectDemotes(IPage<?> page, List<Long> contractIds, String materialName, String elementName);
IPage<DemoteRespVO> selectDemotes(IPage<?> page, List<Long> contractIds, String materialName, String materialNumber, String elementAbbreviation);
}

View File

@@ -42,13 +42,19 @@ public interface ContractFormulaMapper extends BaseMapperX<ContractFormulaDO> {
"#{contractId}",
"</foreach>",
"</if>",
"<if test= \"formulaType != null and formulaType != ''\">",
"and FMU_TP = #{formulaType}",
"</if>",
"<if test= \"materialName != null and materialName != ''\">",
"and mtrl_name like concat('%',#{materialName},'%')",
"</if>",
"<if test= \"elementName != null and elementName != ''\">",
"and mtrl_num like concat('%',#{elementName},'%')",
"<if test= \"materialNumber != null and materialNumber != ''\">",
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
"</if>",
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
"</if>",
"</script>"
})
IPage<FormulaRespVO> selectFormulas(IPage<?> page, List<Long> contractIds, String materialName, String elementName);
IPage<FormulaRespVO> selectFormulas(IPage<?> page, List<Long> contractIds, String formulaType, String materialName, String materialNumber, String elementAbbreviation);
}

View File

@@ -43,10 +43,13 @@ public interface ContractNotMapper extends BaseMapperX<ContractNotDO> {
"<if test= \"materialName != null and materialName != ''\">",
"and mtrl_name like concat('%',#{materialName},'%')",
"</if>",
"<if test= \"elementName != null and elementName != ''\">",
"and elem_name like concat('%',#{elementName},'%')",
"<if test= \"materialNumber != null and materialNumber != ''\">",
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
"</if>",
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
"</if>",
"</script>"
})
IPage<NotRespVO> selectNots(IPage<NotRespVO> page, List<Long> contractIds, String materialName, String elementName);
IPage<NotRespVO> selectNots(IPage<NotRespVO> page, List<Long> contractIds, String materialName, String materialNumber, String elementAbbreviation);
}

View File

@@ -1198,7 +1198,8 @@ public class ContractServiceImpl implements ContractService {
new Page<NotRespVO>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
contractIds,
queryReqVO.getMaterialName(),
queryReqVO.getElementName()
queryReqVO.getMaterialNumber(),
queryReqVO.getElementAbbreviation()
);
// 分页返回
@@ -1219,7 +1220,8 @@ public class ContractServiceImpl implements ContractService {
new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
contractIds,
queryReqVO.getMaterialName(),
queryReqVO.getElementName()
queryReqVO.getMaterialNumber(),
queryReqVO.getElementAbbreviation()
);
// 分页返回
@@ -1239,8 +1241,10 @@ public class ContractServiceImpl implements ContractService {
IPage<FormulaRespVO> ipage = contractFormulaMapper.selectFormulas(
new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
contractIds,
queryReqVO.getFormulaType(),
queryReqVO.getMaterialName(),
queryReqVO.getElementName()
queryReqVO.getMaterialNumber(),
queryReqVO.getElementAbbreviation()
);
// 分页返回结果