| | |
| | | </resultMap> |
| | | |
| | | <select id="selectOrderManDay" resultType="java.lang.Integer"> |
| | | select coalesce(max(ip.man_day), 0) from ins_sample i |
| | | left join ins_product ip on i.id = ip.ins_sample_id |
| | | where i.id = #{sampleId} |
| | | select coalesce(max(ip.man_day), 0) from ins_order io |
| | | left join ins_sample isa on io.id = isa.ins_order_id |
| | | left join ins_product ip on isa.id = ip.ins_sample_id |
| | | where io.id = #{orderId} |
| | | </select> |
| | | <select id="selectUserById" resultType="java.util.Map"> |
| | | select name,company,phone,address from user where id = #{userId} |
| | | </select> |
| | | </mapper> |