|
@@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="parUnit" column="par_unit" />
|
|
|
<result property="parUnitCn" column="par_unit_cn" />
|
|
|
<result property="parType" column="par_Type" />
|
|
|
+ <result property="parField" column="par_field" />
|
|
|
<result property="status" column="status" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -21,10 +22,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectPdmParVo">
|
|
|
- select id, par_code, par_name, par_value, par_unit,par_Type,p.status, p.remark, p.create_by, p.create_time, p.update_by, p.update_time from pdm_par p
|
|
|
+ select id, par_code, par_name, par_value, par_unit,par_Type,par_field,p.status, p.remark, p.create_by, p.create_time, p.update_by, p.update_time from pdm_par p
|
|
|
</sql>
|
|
|
<sql id="selectPdmParVo2">
|
|
|
- select id, par_code, par_name, par_value, par_unit, dict_label par_unit_cn,par_Type,p.status, p.remark, p.create_by, p.create_time, p.update_by, p.update_time from pdm_par p
|
|
|
+ select id, par_code, par_name, par_value, par_unit, dict_label par_unit_cn,par_Type,par_field,p.status, p.remark, p.create_by, p.create_time, p.update_by, p.update_time from pdm_par p
|
|
|
</sql>
|
|
|
<select id="selectPdmParList" parameterType="PdmPar" resultMap="PdmParResult">
|
|
|
<include refid="selectPdmParVo2"/> LEFT JOIN sys_dict_data on dict_value=par_unit and dict_type in('pdm_maintenance_time','repeat_power_failure')
|
|
@@ -50,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parValue != null">par_value,</if>
|
|
|
<if test="parUnit != null">par_unit,</if>
|
|
|
<if test="parType != null">par_type,</if>
|
|
|
+ <if test="parField != null">par_field,</if>
|
|
|
<if test="status != null">status,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -63,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parValue != null">#{parValue},</if>
|
|
|
<if test="parUnit != null">#{parUnit},</if>
|
|
|
<if test="parType != null">#{parType},</if>
|
|
|
+ <if test="parField != null">#{parField},</if>
|
|
|
<if test="status != null">#{status},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="parValue != null">par_value = #{parValue},</if>
|
|
|
<if test="parUnit != null">par_unit = #{parUnit},</if>
|
|
|
<if test="parType != null">par_type = #{parType},</if>
|
|
|
+ <if test="parField != null">par_field=#{parField},</if>
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|