11 changed files with 97 additions and 13 deletions
@ -0,0 +1,9 @@ |
|||
package com.ccsens.common.persist.dao; |
|||
|
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface PluginDao { |
|||
Long getPluginIdByName(@Param("pluginName") String pluginName); |
|||
} |
@ -0,0 +1,15 @@ |
|||
<?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.ccsens.common.persist.dao.PluginDao"> |
|||
|
|||
<select id="getPluginIdByName" resultType="java.lang.Long"> |
|||
SELECT |
|||
id |
|||
FROM |
|||
`plugin`.t_pro_plugin |
|||
WHERE |
|||
`name` = #{pluginName} |
|||
and rec_status = 0 |
|||
limit 1 |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue