|
@@ -20,6 +20,7 @@
|
|
|
<result column="department_org_id" property="departmentOrgId" jdbcType="VARCHAR" />
|
|
|
<result column="order_status" property="orderStatus" jdbcType="INTEGER" />
|
|
|
<result column="event_type" property="eventType" jdbcType="INTEGER" />
|
|
|
+ <result column="event_type_name" property="eventTypeName" jdbcType="VARCHAR" />
|
|
|
<result column="order_type_id" property="orderTypeId" jdbcType="INTEGER" />
|
|
|
<result column="order_pid" property="orderPid" jdbcType="VARCHAR" />
|
|
|
<result column="tenant_id" property="tenantId" jdbcType="VARCHAR" />
|
|
@@ -512,14 +513,13 @@
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<!--分页查询-->
|
|
|
<select id="findPage" resultMap="OrderResultMap">
|
|
|
select
|
|
|
t1.id, t1.task_no, t1.task_desc, t1.order_user_id, t1.send_time, t1.send_by, t1.plan_finish_date, t1.finish_date,
|
|
|
t1.date_limit, t1.urgency, t1.address, t1.contact_user, t1.contact_phone, t1.order_time, t1.company_org_id,
|
|
|
- t1.department_org_id, t1.order_status, t1.event_type, t1.order_type_id, t1.order_pid, t1.tenant_id,
|
|
|
+ t1.department_org_id, t1.order_status, t1.event_type,case when t1.event_type=1 then '运维上报' when t1.event_type=2 then '用户上报' when t1.event_type=3 then '设备告警' end event_type_name,
|
|
|
+ t1.order_type_id, t1.order_pid, t1.tenant_id,
|
|
|
t1.process_instance_id, t1.process_def_id, t1.current_task_id, t1.current_users, t1.current_task_name,
|
|
|
t1.create_by, t1.date_create, t1.update_by, t1.date_update, t1.geo,t1.videos,t1.pictures,
|
|
|
t2.flow_detail,t2.create_by detail_create_by,t2.date_create detail_date_create,t2.update_by detail_update_by,t2.date_update detail_date_update
|
|
@@ -551,9 +551,9 @@
|
|
|
#{item.orgId}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
- <if test="plan.permissonType == 1">
|
|
|
+ <if test="order.permissonType == 1">
|
|
|
and t1.COMPANY_ORG_ID in
|
|
|
- <foreach collection="plan.programItems" item="item" open="(" close=")" separator=",">
|
|
|
+ <foreach collection="order.programItems" item="item" open="(" close=")" separator=",">
|
|
|
#{item.orgId}
|
|
|
</foreach>
|
|
|
and (t1.DEPT_ORG_ID is null or t1.DEPT_ORG_ID =0)
|
|
@@ -566,13 +566,13 @@
|
|
|
and t1.order_status != 0
|
|
|
</if>
|
|
|
<if test="order.orderTypeId != null">
|
|
|
- and t1.order_type_id = #{plan.orderTypeId,jdbcType=INTEGER}
|
|
|
+ and t1.order_type_id = #{order.orderTypeId,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="order.eventType != null">
|
|
|
and t1.event_type = #{order.eventType,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
<if test="order.currentUsers != null">
|
|
|
- and INSTR(t1.current_users,#{plan.currentUsers})
|
|
|
+ and INSTR(t1.current_users,#{order.currentUsers})
|
|
|
</if>
|
|
|
<if test="order.startDate != null and order.endDate != null">
|
|
|
and t1.date_create >= date_format(#{order.startDate,jdbcType=VARCHAR},'%Y-%c-%d')
|