Merge remote-tracking branch 'origin/DM/第2批问题修复'

This commit is contained in:
10001392 2024-10-30 17:12:27 +08:00
commit c768d37c5f
2 changed files with 6 additions and 4 deletions

View File

@ -336,7 +336,9 @@ public class BomReportApi extends BaseApi {
@PostMapping("queryMaterial")
@ApiOperation("物料查询")
public ResultVO<Page<MaterialQueryResult>> materialQuery(@RequestBody MaterialQueryDTO queryParam){
if(StrUtil.isNotBlank(queryParam.getDrawingNo())){
queryParam.setDrawingNo(StrUtil.replace(queryParam.getDrawingNo(),"*",""));
}
Page<MaterialQueryDTO> page = new PageVO<>(queryParam.getPage(), queryParam.getPageSize());
Page<MaterialQueryResult> result = materialMainService.getBaseMapper().queryMaterial(page , queryParam);
//排序

View File

@ -217,13 +217,13 @@
</choose>
from t_material_main where 1=1
<if test="query.materialCategoryCode != null and query.materialCategoryCode != ''">
and material_category_code = #{query.materialCategoryCode}
and material_category_code like concat( #{query.materialCategoryCode} ,'%')
</if>
<if test="query.materialNo != null and query.materialNo != ''">
and material_no like concat(#{query.materialNo},'%')
and material_no like concat('%', #{query.materialNo},'%')
</if>
<if test="query.drawingNo != null and query.drawingNo != ''">
and drawing_no like concat(#{query.drawingNo},'%')
and drawing_no like concat('%', #{query.drawingNo},'%')
</if>
<if test="query.materialDesc != null and query.materialDesc != ''">
and material_desc like concat('%',#{query.materialDesc},'%')