Este commit está contenido en:
weihongyang 2020-01-06 16:53:07 +08:00
padre e376194e1d
commit 02e8142b7f
Se han modificado 2 ficheros con 2 adiciones y 2 borrados

Ver fichero

@ -125,14 +125,13 @@
</select>
<select id="findMaterialsByKeyWords" parameterType="com.deer.wms.produce.manage.model.MaterialsInfoParams" resultMap="mtAloneProcessMaterialsBomVO">
SELECT * from mt_alone_materials_info materialsInfo inner JOIN mt_alone_process_materials_bom pmb on materialsInfo.id = pmb.materials_id
SELECT * from mt_alone_materials_info materialsInfo
<where>
<if test="keywords != null and keywords != ''">
AND materialsInfo.materials_name LIKE CONCAT('%', #{keywords}, '%')
OR materialsInfo.code LIKE CONCAT('%', #{keywords}, '%')
OR materialsInfo.specification LIKE CONCAT('%', #{keywords}, '%')
OR materialsInfo.unit_id LIKE CONCAT('%', #{keywords}, '%')
OR pmb.dosage LIKE CONCAT('%', #{keywords}, '%')
</if>
</where>

Ver fichero

@ -198,6 +198,7 @@ public class MaterialsInfoController {
if(currentUser==null){
return ResultGenerator.genFailResult( CommonCode.SERVICE_ERROR,"未登录错误",null );
}
System.err.println("pageSize"+params.getPageSize()+"pageNum"+params.getPageNum()+",keyWords"+params.getKeywords());
params.setCompanyId(currentUser.getCompanyId());
PageHelper.startPage(params.getPageNum(), params.getPageSize());
List<MaterialsInfoVO> list = new ArrayList<>();