| | |
| | | select id, |
| | | name, |
| | | specifications, |
| | | code, |
| | | check_state, |
| | | quality_traceability, |
| | | check_result, |
| | | user_name, |
| | | DATE_FORMAT(create_time, '%Y-%m-%d') '入库日期', |
| | | note |
| | |
| | | <if test="type!=null "> |
| | | and type=#{type} |
| | | </if> |
| | | <if test="checkState!=null "> |
| | | and check_state=#{checkState} |
| | | <if test="result!=null "> |
| | | and check_result=#{result} |
| | | </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> |