| | |
| | | on sp.standard_id = s.id |
| | | </select> |
| | | |
| | | <select id="selectMcodeId" resultType="com.yuanchu.mom.pojo.Material"> |
| | | select id, code |
| | | from mom_ocean.material |
| | | where name = #{name} |
| | | </select> |
| | | |
| | | <select id="selectIdByCoNa" resultType="java.util.Map"> |
| | | select m.id '物料id', |
| | | st.id '规格id', |
| | | st.name '规格名称', |
| | | sp.name '型号名称' |
| | | from mom_ocean.material m, |
| | | mom_ocean.standard st, |
| | | mom_ocean.specifications sp |
| | | where m.id = material_id |
| | | and material_id = standard_id |
| | | and m.name = #{name} |
| | | and code = #{code} |
| | | </select> |
| | | |
| | | <!--根据标准id查询物料--> |
| | | <select id="selFath" resultType="com.yuanchu.mom.pojo.Material"> |
| | | select * |