1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE mapper
3 PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
4 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
5 <mapper namespace="com.managerSystem.dao.IBusinessDao">
6 <update id="updateState" parameterType="com.managerSystem.model.Business">
7 UPDATE business SET state=#{state} WHERE id= #{id}
8 </update>
9 <select id="queryState" parameterType="int" resultType="com.managerSystem.model.Business">
10 SELECT state FROM business WHERE id=#{id}
11 </select>
12 </mapper>