|
@@ -39,18 +39,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="chargeUnit" column="charge_unit" />
|
|
<result property="chargeUnit" column="charge_unit" />
|
|
|
<result property="mode" column="mode" />
|
|
<result property="mode" column="mode" />
|
|
|
<result property="fileInfo" column="file_info" />
|
|
<result property="fileInfo" column="file_info" />
|
|
|
|
|
+ <result property="iconInfo" column="icon_info" />
|
|
|
<result property="createBy" column="create_by" />
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="remark" column="remark" />
|
|
<result property="remark" column="remark" />
|
|
|
|
|
+ <result property="ord" column="ord" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<sql id="selectDanganVo">
|
|
<sql id="selectDanganVo">
|
|
|
select dangan_id,
|
|
select dangan_id,
|
|
|
key_id,
|
|
key_id,
|
|
|
dangan_no,dangan_name, status,
|
|
dangan_no,dangan_name, status,
|
|
|
- sys_person, file_type, model, project_id, brand, run_device_id, relate_device_id, maintain_item_id, factory_time, project_time, use_unit, medium, maintain_time, page_address, test_address, build_factory, build_factory_time, factory_person, factory_person_phone, language, server_ip, server_location, server_info, server_based_yes_no, ops_person, charge_unit, mode, file_info, create_by, create_time, update_by, update_time, remark from sys_dangan
|
|
|
|
|
|
|
+ sys_person, file_type, model, project_id, brand, run_device_id, relate_device_id, maintain_item_id, factory_time, project_time, use_unit, medium, maintain_time, page_address, test_address, build_factory, build_factory_time, factory_person, factory_person_phone, language, server_ip, server_location, server_info, server_based_yes_no, ops_person, charge_unit, mode, file_info,icon_info, create_by, create_time, update_by, update_time, remark,ord from sys_dangan
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectDanganList" parameterType="Dangan" resultMap="DanganResult">
|
|
<select id="selectDanganList" parameterType="Dangan" resultMap="DanganResult">
|
|
@@ -89,6 +91,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="chargeUnit != null and chargeUnit != ''"> and charge_unit = #{chargeUnit}</if>
|
|
<if test="chargeUnit != null and chargeUnit != ''"> and charge_unit = #{chargeUnit}</if>
|
|
|
<if test="mode != null and mode != ''"> and mode = #{mode}</if>
|
|
<if test="mode != null and mode != ''"> and mode = #{mode}</if>
|
|
|
<if test="fileInfo != null and fileInfo != ''"> and file_info = #{fileInfo}</if>
|
|
<if test="fileInfo != null and fileInfo != ''"> and file_info = #{fileInfo}</if>
|
|
|
|
|
+ <if test="iconInfo != null and iconInfo != ''"> and icon_info = #{iconInfo}</if>
|
|
|
|
|
+ <if test="ord != null and ord != ''"> and ord = #{ord}</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -97,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where dangan_id = #{danganId}
|
|
where dangan_id = #{danganId}
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
- <insert id="insertDangan" parameterType="Dangan" useGeneratedKeys="true" keyProperty="danganId">
|
|
|
|
|
|
|
+ <insert id="insertDangan" parameterType="Dangan" useGeneratedKeys="true" keyProperty="danganId" keyColumn="dangan_id">
|
|
|
insert into sys_dangan
|
|
insert into sys_dangan
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="danganName != null">dangan_name,</if>
|
|
<if test="danganName != null">dangan_name,</if>
|
|
@@ -133,11 +137,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="chargeUnit != null">charge_unit,</if>
|
|
<if test="chargeUnit != null">charge_unit,</if>
|
|
|
<if test="mode != null">mode,</if>
|
|
<if test="mode != null">mode,</if>
|
|
|
<if test="fileInfo != null">file_info,</if>
|
|
<if test="fileInfo != null">file_info,</if>
|
|
|
|
|
+ <if test="iconInfo != null">icon_info,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
+ <if test="ord != null">ord,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="danganName != null">#{danganName},</if>
|
|
<if test="danganName != null">#{danganName},</if>
|
|
@@ -173,11 +179,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="chargeUnit != null">#{chargeUnit},</if>
|
|
<if test="chargeUnit != null">#{chargeUnit},</if>
|
|
|
<if test="mode != null">#{mode},</if>
|
|
<if test="mode != null">#{mode},</if>
|
|
|
<if test="fileInfo != null">#{fileInfo},</if>
|
|
<if test="fileInfo != null">#{fileInfo},</if>
|
|
|
|
|
+ <if test="iconInfo != null">#{iconInfo},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
+ <if test="ord != null">#{ord},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -217,11 +225,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="chargeUnit != null">charge_unit = #{chargeUnit},</if>
|
|
<if test="chargeUnit != null">charge_unit = #{chargeUnit},</if>
|
|
|
<if test="mode != null">mode = #{mode},</if>
|
|
<if test="mode != null">mode = #{mode},</if>
|
|
|
<if test="fileInfo != null">file_info = #{fileInfo},</if>
|
|
<if test="fileInfo != null">file_info = #{fileInfo},</if>
|
|
|
|
|
+ <if test="iconInfo != null">icon_info = #{iconInfo},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
+ <if test="ord != null">ord = #{ord},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where dangan_id = #{danganId}
|
|
where dangan_id = #{danganId}
|
|
|
</update>
|
|
</update>
|
|
@@ -231,7 +241,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
</delete>
|
|
|
|
|
|
|
|
<delete id="deleteDanganByIds" parameterType="String">
|
|
<delete id="deleteDanganByIds" parameterType="String">
|
|
|
- delete from sys_dangan where dangan_id in
|
|
|
|
|
|
|
+ delete from sys_dangan where dangan_id::VARCHAR in
|
|
|
<foreach item="danganId" collection="array" open="(" separator="," close=")">
|
|
<foreach item="danganId" collection="array" open="(" separator="," close=")">
|
|
|
#{danganId}
|
|
#{danganId}
|
|
|
</foreach>
|
|
</foreach>
|