inventory-server/src/main/resources/mapper/RepertoryMapper.xml
@@ -14,7 +14,7 @@ <where> and state=1 <if test="name!=null and name!=''"> and name LIKE CONCAT('%',#{name},'%') and name LIKE CONCAT('%',#{name},'%') </if> <if test="specifications!=null and specifications!=''"> and specifications LIKE CONCAT('%',#{specifications},'%') @@ -31,4 +31,10 @@ order by id desc </where> </select> <!--查询库存三个字段给添加销售单--> <select id="getSale" resultType="java.util.Map"> select id, name, specifications, unit from mom_ocean.repertory where state = 1 </select> </mapper>