| | |
| | | <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},'%') |
| | |
| | | <if test="time!=null and time!=''"> |
| | | and create_time=#{time} |
| | | </if> |
| | | <if test="type!=null and type!=''"> |
| | | <if test="type!=null "> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="checkState!=null and checkState!=''"> |
| | | <if test="checkState!=null "> |
| | | and check_state=#{checkState} |
| | | </if> |
| | | 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 |
| | | and check_state = 1 |
| | | and type = 0 |
| | | </select> |
| | | </mapper> |