You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.0 KiB
55 lines
2.0 KiB
<?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.epmet.dao.FunctionDao">
|
|
|
|
<resultMap type="com.epmet.entity.FunctionEntity" id="functionMap">
|
|
<result property="id" column="ID"/>
|
|
<result property="functionName" column="FUNCTION_NAME"/>
|
|
<result property="functionGroup" column="FUNCTION_GROUP"/>
|
|
<result property="shoppingStatus" column="SHOPPING_STATUS"/>
|
|
<result property="functionExplain" column="FUNCTION_EXPLAIN"/>
|
|
<result property="delFlag" column="DEL_FLAG"/>
|
|
<result property="revision" column="REVISION"/>
|
|
<result property="createdBy" column="CREATED_BY"/>
|
|
<result property="createdTime" column="CREATED_TIME"/>
|
|
<result property="updatedBy" column="UPDATED_BY"/>
|
|
<result property="updatedTime" column="UPDATED_TIME"/>
|
|
</resultMap>
|
|
|
|
<!-- 查询已上架的所有功能,供下拉框使用 -->
|
|
<select id="selectFunctionList" resultType="com.epmet.dto.FunctionDTO">
|
|
SELECT
|
|
f.id,
|
|
f.FUNCTION_NAME AS functionName
|
|
FROM
|
|
FUNCTION f
|
|
WHERE
|
|
f.DEL_FLAG = '0'
|
|
AND f.SHOPPING_STATUS = '1'
|
|
</select>
|
|
<select id="selectShopFunctionList" resultType="com.epmet.dto.FunctionDTO">
|
|
SELECT
|
|
*
|
|
FROM
|
|
function
|
|
WHERE
|
|
del_flag = '0'
|
|
AND
|
|
shopping_status = #{shoppingStatus}
|
|
</select>
|
|
<select id="selectQueryFunctionList" resultType="com.epmet.dto.FunctionDTO">
|
|
SELECT
|
|
f.id,
|
|
f.FUNCTION_NAME AS functionName
|
|
FROM
|
|
FUNCTION f
|
|
WHERE
|
|
f.DEL_FLAG = '0'
|
|
AND f.SHOPPING_STATUS = '1'
|
|
<if test="functionGroup != null and functionGroup.trim() != ''">
|
|
AND f.function_group = #{functionGroup}
|
|
</if>
|
|
</select>
|
|
|
|
</mapper>
|
|
|