89 lines
3.0 KiB
XML
89 lines
3.0 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
|
||
|
|
|
||
|
|
<mapper namespace="com.hx.slj.modules.reportCustomer.dao.AssessmentIndexVoDao">
|
||
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
||
|
|
<resultMap id="baseAssessmentIndex" type="com.hx.slj.modules.reportCustomer.entity.AssessmentIndexVo">
|
||
|
|
<id column="ID" property="id"/>
|
||
|
|
<result column="system_ID" property="systemId"/>
|
||
|
|
<result column="PARENT_ID" property="parentId"/>
|
||
|
|
<result column="parent_ids" property="parentIds"/>
|
||
|
|
<result column="NAME" property="name"/>
|
||
|
|
<result column="SORT" property="sort"/>
|
||
|
|
<result column="HREF" property="href"/>
|
||
|
|
<result column="TARGET" property="target"/>
|
||
|
|
<result column="ICON" property="icon"/>
|
||
|
|
<result column="IS_SHOW" property="isShow"/>
|
||
|
|
<result column="PERMISSION" property="permission"/>
|
||
|
|
<result column="level" property="level"/>
|
||
|
|
<result column="isFinal" property="isFinal"/>
|
||
|
|
<result column="isRoot" property="isRoot"/>
|
||
|
|
<result column="description" property="description"/>
|
||
|
|
<result column="datasource" property="datasource"/>
|
||
|
|
<result column="object" property="object"/>
|
||
|
|
<result column="score" property="score"/>
|
||
|
|
<result column="method" property="method"/>
|
||
|
|
<result column="evaluation" property="evaluation"/>
|
||
|
|
<result column="CREATE_BY" property="createBy"/>
|
||
|
|
<result column="CREATE_DATE" property="createDate"/>
|
||
|
|
<result column="UPDATE_BY" property="updateBy"/>
|
||
|
|
<result column="UPDATE_DATE" property="updateDate"/>
|
||
|
|
<result column="REMARKS" property="remarks"/>
|
||
|
|
<result column="DEL_FLAG" property="delFlag"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<select id="findListBySystemId" resultMap="baseAssessmentIndex">
|
||
|
|
select * from assessment_index where system_ID = #{systemId} and del_flag = '0' and PARENT_ID !='0'
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
<select id="findListByOne" resultMap="baseAssessmentIndex">
|
||
|
|
select * from assessment_index where system_ID = #{systemId} and PARENT_ID="0" and del_flag = '0'
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
<insert id="insertAssessment">
|
||
|
|
INSERT INTO assessment_index(`ID`, `system_ID`, `PARENT_ID`, `parent_ids`, `NAME`, `SORT`, `HREF`,
|
||
|
|
`TARGET`, `ICON`, `IS_SHOW`, `PERMISSION`, `level`, `isFinal`, `isRoot`,
|
||
|
|
`description`, `datasource`, `object`, `score`, `method`, `evaluation`, `CREATE_BY`,
|
||
|
|
`CREATE_DATE`, `UPDATE_BY`, `UPDATE_DATE`, `REMARKS`, `DEL_FLAG`) VALUES (
|
||
|
|
|
||
|
|
#{id},
|
||
|
|
#{systemId},
|
||
|
|
#{parentId},
|
||
|
|
#{parentIds},
|
||
|
|
#{name},
|
||
|
|
#{sort},
|
||
|
|
#{href},
|
||
|
|
#{target},
|
||
|
|
#{icon},
|
||
|
|
#{isShow},
|
||
|
|
#{permission},
|
||
|
|
#{level},
|
||
|
|
#{isFinal},
|
||
|
|
#{isRoot},
|
||
|
|
#{description},
|
||
|
|
#{datasource},
|
||
|
|
#{object},
|
||
|
|
#{score},
|
||
|
|
#{method},
|
||
|
|
#{evaluation},
|
||
|
|
#{createBy},
|
||
|
|
#{createDate},
|
||
|
|
#{updateBy},
|
||
|
|
#{updateDate},
|
||
|
|
#{remarks},
|
||
|
|
#{delFlag}
|
||
|
|
)
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|