Bladeren bron

refactor(FlowMapper):流程表参数更新

HMY 7 maanden geleden
bovenliggende
commit
68bf9eaa6b
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      admin/src/main/resources/mapper/hnyzdcs/FlowMapper.xml

+ 3 - 1
admin/src/main/resources/mapper/hnyzdcs/FlowMapper.xml

@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="flowId"    column="flow_id"    />
         <result property="flowName"    column="flow_name"    />
         <result property="flowCode" column="flow_code"/>
+        <result property="flowAttribution" column="flow_attribution"/>
         <result property="sort"    column="sort"    />
         <result property="status"    column="status"    />
         <result property="delFlag"    column="del_flag"    />
@@ -19,13 +20,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </resultMap>
 
     <sql id="selectFlowVo">
-        select flow_id, flow_name, sort, status, del_flag, create_by, create_time, update_by, update_time, remark from flow
+        select flow_id, flow_name, flow_code ,flow_attribution, sort, status, del_flag, create_by, create_time, update_by, update_time, remark from flow
     </sql>
 
     <select id="selectFlowList" parameterType="Flow" resultMap="FlowResult">
         <include refid="selectFlowVo"/>
         <where>  
             <if test="flowName != null  and flowName != ''"> and flow_name like concat('%', #{flowName}, '%')</if>
+            <if test="flowAttribution != null  and flowAttribution != ''"> and flow_attribution = #{flowAttribution}</if>
             <if test="status != null "> and status = #{status}</if>
             <if test="delFlag == null"> and del_flag = '0'</if>
         </where>