Merge remote-tracking branch 'origin/DM/第2批问题修复'
This commit is contained in:
commit
c768d37c5f
|
|
@ -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);
|
||||
//排序
|
||||
|
|
|
|||
|
|
@ -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},'%')
|
||||
|
|
|
|||
Loading…
Reference in New Issue