8ea9c133
陈威
初始化提交
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?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.hotent.bo.persistence.dao.BoAttributeDao">
<resultMap id="BoAttribute"
type="com.hotent.bo.model.BoAttribute">
<id property="id" column="id_" jdbcType="VARCHAR" />
<result property="entId" column="ent_id_" jdbcType="VARCHAR" />
<result property="name" column="name_" jdbcType="VARCHAR" />
<result property="desc" column="desc_" jdbcType="VARCHAR" />
<result property="dataType" column="data_type_"
jdbcType="VARCHAR" />
<result property="defaultValue" column="default_value_"
jdbcType="VARCHAR" />
<result property="format" column="format_" jdbcType="VARCHAR" />
<result property="isRequired" column="is_required_"
jdbcType="NUMERIC" />
<result property="attrLength" column="attr_length_"
jdbcType="NUMERIC" />
<result property="decimalLen" column="decimal_len_"
jdbcType="NUMERIC" />
<result property="fieldName" column="field_name_"
jdbcType="VARCHAR" />
<result property="status" column="status_" jdbcType="VARCHAR" />
<result property="index" column="index_" jdbcType="NUMERIC" />
</resultMap>
<select id="getByEntId" parameterType="java.lang.String" resultMap="BoAttribute">
SELECT
*
FROM
form_bo_attr
WHERE
ENT_ID_ = #{entId} order by id_
</select>
<delete id="removeByEntId">
delete from form_bo_attr where ENT_ID_ = #{entId}
</delete>
<delete id="deleteByDefId" parameterType="java.lang.String">
DELETE
FROM
form_bo_attr
WHERE
ent_id_ IN (
SELECT
ref_ent_id_
FROM
form_bo_ent_relation
WHERE
BO_DEFID_ = #{defId})
</delete>
</mapper>
|