| | |
| | | i.manager as manager, |
| | | i.tel as tel, |
| | | i.email as email, |
| | | i.url as url, |
| | | i.memo as memo |
| | | FROM |
| | | isp_field i |
| | |
| | | <if test="id != '' and id != null"> |
| | | AND i.id like CONCAT('%',#{id},'%') |
| | | </if> |
| | | ORDER BY i.register_date DESC |
| | | <if test="pageSize != '' and pageSize != null"> |
| | | limit #{pageSize} offset #{page}; |
| | | </if> |
| | |
| | | |
| | | <select id="count" resultType="java.lang.Long" parameterType="kr.wisestone.owl.web.condition.IspFieldCondition"> |
| | | SELECT |
| | | count(i.id) |
| | | count(DISTINCT i.id) |
| | | FROM |
| | | isp_field i |
| | | WHERE 1=1 |
| | |
| | | AND i.id like CONCAT('%',#{id},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="findById" resultType="java.util.HashMap" parameterType="java.lang.Long"> |
| | | SELECT |
| | | i.id as id, |
| | | i.code as code, |
| | | i.name as name, |
| | | i.manager as manager, |
| | | i.tel as tel, |
| | | i.email as email, |
| | | i.url as url, |
| | | i.memo as memo |
| | | FROM |
| | | isp_field i |
| | | WHERE i.id = ${id} |
| | | </select> |
| | | </mapper> |