|
|
@ -3,21 +3,25 @@ |
|
|
|
|
|
|
|
<mapper namespace="com.epmet.dao.IcCoverageCategoryDictDao"> |
|
|
|
|
|
|
|
<resultMap type="com.epmet.entity.IcCoverageCategoryDictEntity" id="icCoverageCategoryDictMap"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="customerId" column="CUSTOMER_ID"/> |
|
|
|
<result property="categoryKey" column="CATEGORY_KEY"/> |
|
|
|
<result property="categoryName" column="CATEGORY_NAME"/> |
|
|
|
<result property="placeType" column="PLACE_TYPE"/> |
|
|
|
<result property="coverageType" column="COVERAGE_TYPE"/> |
|
|
|
<result property="sort" column="SORT"/> |
|
|
|
<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="dictMap" resultType="com.epmet.dto.result.IcCoverageCategoryDictListResultDTO"> |
|
|
|
SELECT |
|
|
|
category_key categoryKey, |
|
|
|
category_name categoryName |
|
|
|
FROM |
|
|
|
ic_coverage_category_dict |
|
|
|
WHERE |
|
|
|
del_flag = '0' |
|
|
|
<choose> |
|
|
|
<when test="customerId != null and customerId.trim() != ''"> |
|
|
|
AND customer_id = #{customerId} |
|
|
|
</when> |
|
|
|
<otherwise> |
|
|
|
AND customer_id = 'default' |
|
|
|
</otherwise> |
|
|
|
</choose> |
|
|
|
AND place_type = #{placeType} |
|
|
|
ORDER BY sort ASC |
|
|
|
</select> |
|
|
|
|
|
|
|
</mapper> |