Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -19,7 +19,7 @@
|
|||||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<revision>3.0.43</revision>
|
<revision>3.0.44</revision>
|
||||||
<!-- Maven 相关 -->
|
<!-- Maven 相关 -->
|
||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ public class DemotesQueryReqVO extends PageParam {
|
|||||||
private String contractPaperNumber;
|
private String contractPaperNumber;
|
||||||
@Schema(description = "物料名称")
|
@Schema(description = "物料名称")
|
||||||
private String materialName;
|
private String materialName;
|
||||||
|
@Schema(description = "物料编码")
|
||||||
|
private String materialNumber;
|
||||||
@Schema(description = "金属元素")
|
@Schema(description = "金属元素")
|
||||||
private String elementName;
|
private String elementAbbreviation;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,12 @@ public class FormulasQueryReqVO extends PageParam {
|
|||||||
private String contractName;
|
private String contractName;
|
||||||
@Schema(description = "合同编码")
|
@Schema(description = "合同编码")
|
||||||
private String contractPaperNumber;
|
private String contractPaperNumber;
|
||||||
|
@Schema(description = "公式类型")
|
||||||
|
private String formulaType;
|
||||||
@Schema(description = "物料名称")
|
@Schema(description = "物料名称")
|
||||||
private String materialName;
|
private String materialName;
|
||||||
|
@Schema(description = "物料编码")
|
||||||
|
private String materialNumber;
|
||||||
@Schema(description = "金属元素")
|
@Schema(description = "金属元素")
|
||||||
private String elementName;
|
private String elementAbbreviation;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ public class NotsQueryReqVO extends PageParam {
|
|||||||
private String contractPaperNumber;
|
private String contractPaperNumber;
|
||||||
@Schema(description = "物料名称")
|
@Schema(description = "物料名称")
|
||||||
private String materialName;
|
private String materialName;
|
||||||
|
@Schema(description = "物料编码")
|
||||||
|
private String materialNumber;
|
||||||
@Schema(description = "金属元素")
|
@Schema(description = "金属元素")
|
||||||
private String elementName;
|
private String elementAbbreviation;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,10 +43,13 @@ public interface ContractDemoteMapper extends BaseMapperX<ContractDemoteDO> {
|
|||||||
"<if test= \"materialName != null and materialName != ''\">",
|
"<if test= \"materialName != null and materialName != ''\">",
|
||||||
"and mtrl_name like concat('%',#{materialName},'%')",
|
"and mtrl_name like concat('%',#{materialName},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"<if test= \"elementName != null and elementName != ''\">",
|
"<if test= \"materialNumber != null and materialNumber != ''\">",
|
||||||
"and mtrl_num like concat('%',#{elementName},'%')",
|
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
|
||||||
|
"</if>",
|
||||||
|
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
|
||||||
|
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"</script>"
|
"</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);
|
||||||
}
|
}
|
||||||
@@ -42,13 +42,19 @@ public interface ContractFormulaMapper extends BaseMapperX<ContractFormulaDO> {
|
|||||||
"#{contractId}",
|
"#{contractId}",
|
||||||
"</foreach>",
|
"</foreach>",
|
||||||
"</if>",
|
"</if>",
|
||||||
|
"<if test= \"formulaType != null and formulaType != ''\">",
|
||||||
|
"and FMU_TP = #{formulaType}",
|
||||||
|
"</if>",
|
||||||
"<if test= \"materialName != null and materialName != ''\">",
|
"<if test= \"materialName != null and materialName != ''\">",
|
||||||
"and mtrl_name like concat('%',#{materialName},'%')",
|
"and mtrl_name like concat('%',#{materialName},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"<if test= \"elementName != null and elementName != ''\">",
|
"<if test= \"materialNumber != null and materialNumber != ''\">",
|
||||||
"and mtrl_num like concat('%',#{elementName},'%')",
|
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
|
||||||
|
"</if>",
|
||||||
|
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
|
||||||
|
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"</script>"
|
"</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);
|
||||||
}
|
}
|
||||||
@@ -43,10 +43,13 @@ public interface ContractNotMapper extends BaseMapperX<ContractNotDO> {
|
|||||||
"<if test= \"materialName != null and materialName != ''\">",
|
"<if test= \"materialName != null and materialName != ''\">",
|
||||||
"and mtrl_name like concat('%',#{materialName},'%')",
|
"and mtrl_name like concat('%',#{materialName},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"<if test= \"elementName != null and elementName != ''\">",
|
"<if test= \"materialNumber != null and materialNumber != ''\">",
|
||||||
"and elem_name like concat('%',#{elementName},'%')",
|
"and MTRL_NUM like concat('%',#{materialNumber},'%')",
|
||||||
|
"</if>",
|
||||||
|
"<if test= \"elementAbbreviation != null and elementAbbreviation != ''\">",
|
||||||
|
"and ELEM_ABBR like concat('%',#{elementAbbreviation},'%')",
|
||||||
"</if>",
|
"</if>",
|
||||||
"</script>"
|
"</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);
|
||||||
}
|
}
|
||||||
@@ -1198,7 +1198,8 @@ public class ContractServiceImpl implements ContractService {
|
|||||||
new Page<NotRespVO>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
|
new Page<NotRespVO>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
|
||||||
contractIds,
|
contractIds,
|
||||||
queryReqVO.getMaterialName(),
|
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()),
|
new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
|
||||||
contractIds,
|
contractIds,
|
||||||
queryReqVO.getMaterialName(),
|
queryReqVO.getMaterialName(),
|
||||||
queryReqVO.getElementName()
|
queryReqVO.getMaterialNumber(),
|
||||||
|
queryReqVO.getElementAbbreviation()
|
||||||
);
|
);
|
||||||
|
|
||||||
// 分页返回
|
// 分页返回
|
||||||
@@ -1239,8 +1241,10 @@ public class ContractServiceImpl implements ContractService {
|
|||||||
IPage<FormulaRespVO> ipage = contractFormulaMapper.selectFormulas(
|
IPage<FormulaRespVO> ipage = contractFormulaMapper.selectFormulas(
|
||||||
new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
|
new Page<>().setCurrent(queryReqVO.getPageNo()).setSize(queryReqVO.getPageSize()),
|
||||||
contractIds,
|
contractIds,
|
||||||
|
queryReqVO.getFormulaType(),
|
||||||
queryReqVO.getMaterialName(),
|
queryReqVO.getMaterialName(),
|
||||||
queryReqVO.getElementName()
|
queryReqVO.getMaterialNumber(),
|
||||||
|
queryReqVO.getElementAbbreviation()
|
||||||
);
|
);
|
||||||
|
|
||||||
// 分页返回结果
|
// 分页返回结果
|
||||||
|
|||||||
Reference in New Issue
Block a user