|
@@ -1,7 +1,7 @@
|
|
|
<?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.datau.kpim.mapper.kpiconfig.KpiConfigMapper">
|
|
|
+<mapper namespace="com.ozs.kpim.mapper.kpiconfig.KpiConfigMapper">
|
|
|
|
|
|
<sql id="base_column_list">
|
|
|
id,name,type,rule_type_id,rule,kpi_code,unit,description,enable_status,edit_status,
|
|
@@ -9,7 +9,7 @@
|
|
|
</sql>
|
|
|
|
|
|
<!--插入一条(所有字段) -->
|
|
|
- <insert id="insert" parameterType="com.datau.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
+ <insert id="insert" parameterType="com.ozs.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
INSERT INTO kpim_info_config(
|
|
|
id,name,type,rule_type_id,rule,kpi_code,unit,description,enable_status,
|
|
|
edit_status,update_time,update_user_id,relationship
|
|
@@ -19,7 +19,7 @@
|
|
|
</insert>
|
|
|
|
|
|
<!--更新(所有字段,id,kpi_code除外) -->
|
|
|
- <update id="update" parameterType="com.datau.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
+ <update id="update" parameterType="com.ozs.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
UPDATE kpim_info_config
|
|
|
SET
|
|
|
name = #{name},
|
|
@@ -56,7 +56,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!--根据ID查询详情 -->
|
|
|
- <select id="getById" resultType="com.datau.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
+ <select id="getById" resultType="com.ozs.kpim.dto.kpiconfig.KpiConfigPO">
|
|
|
SELECT
|
|
|
A.id,A.name,A.type,A.rule_type_id,A.rule,A.kpi_code,
|
|
|
A.unit,A.description,A.enable_status,A.edit_status,
|
|
@@ -91,7 +91,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!--KPI列表查询 -->
|
|
|
- <select id="listKpiConfigs" resultType="com.datau.kpim.dto.kpiconfig.KpiConfigForListDTO">
|
|
|
+ <select id="listKpiConfigs" resultType="com.ozs.kpim.dto.kpiconfig.KpiConfigForListDTO">
|
|
|
|
|
|
SELECT
|
|
|
DISTINCT(A.id),A.name,A.type,A.rule_type_id,A.rule,A.kpi_code,
|
|
@@ -166,7 +166,7 @@
|
|
|
</select>
|
|
|
|
|
|
<!--查询主题下的KPI配置信息 -->
|
|
|
- <select id="listKpiConfigsByTopic" resultType="com.datau.kpim.dto.kpiconfig.KpiConfigForListDTO">
|
|
|
+ <select id="listKpiConfigsByTopic" resultType="com.ozs.kpim.dto.kpiconfig.KpiConfigForListDTO">
|
|
|
SELECT
|
|
|
C.id,C.kpi_code,C.name,C.type,C.rule_type_id,
|
|
|
D.name as typeName,E.type_desc as ruleTypeName,E.type as ruleType,E.format
|