<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
    "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.roadm.mapper.MdnNumberProMapper">
	<select id="listPageMdnNumberPro" resultType="MdnNumberPro">
		select * from mdn_number_pro 
		<where>
			<if test="mdnNumber!= null and mdnNumber!=''">
				and mdnNumber=#{mdnNumber}
			</if>
			<if test="province!=null and province!=''">
				and province=#{province}
			</if>
			<if test="city!=null and city!=''">
				and city=#{city}
			</if>
		</where>
	</select>
	
	
	<insert id="insertMdnNumberPro">
		insert into mdn_number_pro(mdnNumber,province,city) values(#{mdnNumber},#{province},#{city})
	</insert>
	
	<insert id="delMdnNumberPro">
		delete from mdn_number_pro where id=#{id}
	</insert>
    
</mapper>