CwCheckMapper.xml
1.03 KB
<?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="com.sincere.smartSearch.mapper.CwCheckMapper">
<resultMap id="BaseResultMap" type="com.sincere.smartSearch.model.CwCheck">
<result column="ID" jdbcType="INTEGER" property="id" />
<result column="CheckName" jdbcType="VARCHAR" property="checkname" />
<result column="BeginTime" jdbcType="VARCHAR" property="begintime" />
<result column="EndTime" jdbcType="VARCHAR" property="endtime" />
<result column="TemplateId" jdbcType="INTEGER" property="templateid" />
<result column="SchoolId" jdbcType="INTEGER" property="schoolid" />
<result column="State" jdbcType="INTEGER" property="state" />
<result column="Intime" jdbcType="TIMESTAMP" property="intime" />
</resultMap>
<select id="selectBySchoolId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select * from CW_Check where SchoolId =#{schoolId} and state = 1
</select>
</mapper>