Commit 950837f9 by 李小惠

修改调岗bug,单据查看bug

parent 96e52896
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -253,7 +253,7 @@ public class CounterSignListener implements ExecutionListener { ...@@ -253,7 +253,7 @@ public class CounterSignListener implements ExecutionListener {
} }
} }
else if (orderType.equals("reassigment"))//调岗相关 else if (orderType.equals("reassignment"))//调岗相关
{ {
Reassignment re= reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>() Reassignment re= reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>()
.eq(Reassignment::getProcessId, execution.getProcessInstanceId())); .eq(Reassignment::getProcessId, execution.getProcessInstanceId()));
......
...@@ -168,7 +168,7 @@ import static com.junmp.junmpProcess.common.CommonConstants.*; ...@@ -168,7 +168,7 @@ import static com.junmp.junmpProcess.common.CommonConstants.*;
} }
busFormService.updateById(busForm); busFormService.updateById(busForm);
} else } else
if (Type.equals("reassigment")){//调岗申请单 if (Type.equals("reassignment")){//调岗申请单
Reassignment one = reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>() Reassignment one = reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>()
.eq(Reassignment::getProcessId, processInstanceId)); .eq(Reassignment::getProcessId, processInstanceId));
UpdateReassignmentReq updateReassignmentReq = new UpdateReassignmentReq(); UpdateReassignmentReq updateReassignmentReq = new UpdateReassignmentReq();
......
...@@ -84,12 +84,25 @@ ...@@ -84,12 +84,25 @@
<if test="req.endOrgId != null and req.endOrgId != ''"> <if test="req.endOrgId != null and req.endOrgId != ''">
and end_org_id = #{req.endOrgId} and end_org_id = #{req.endOrgId}
</if> </if>
and (start_org_user_id = #{userId} or end_org_user_id = #{userId} or history_assign like CONCAT('%', #{userId}, '%') or current_assign like CONCAT('%', #{userId}, '%')) <if test="req.orderType=='in'">
and ( end_org_user_id = #{userId}
or history_assign like CONCAT('%', #{userId}, '%') or current_assign like CONCAT('%', #{userId}, '%'))
</if>
<if test="req.orderType=='out'">
and (start_org_user_id = #{userId}
or history_assign like CONCAT('%', #{userId}, '%') or current_assign like CONCAT('%', #{userId}, '%'))
</if>
<if test="req.orderState !=null and req.orderState != ''"> <if test="req.orderState !=null and req.orderState != ''">
and order_state = #{req.orderState} and order_state = #{req.orderState}
</if> </if>
<if test="req.name!=null and req.name!=''"> <if test="req.name!=null and req.name!='' and req.orderType=='in'">
and (start_org_name LIKE CONCAT('%', #{req.name}, '%') or end_org_name LIKE CONCAT('%', #{req.name}, '%') or supplier_name LIKE CONCAT('%', #{req.name}, '%') ) and (end_org_name LIKE CONCAT('%', #{req.name}, '%')
or supplier_name LIKE CONCAT('%', #{req.name}, '%') or return_user LIKE CONCAT('%', #{req.name}, '%') )
</if>
<if test="req.name!=null and req.name!='' and req.orderType=='out'">
and (start_org_name LIKE CONCAT('%', #{req.name}, '%')
or supplier_name LIKE CONCAT('%', #{req.name}, '%') or return_user LIKE CONCAT('%', #{req.name}, '%') )
</if> </if>
<if test=" req.examineState=='unaudited'"> <if test=" req.examineState=='unaudited'">
and examine_state in('none','working') and examine_state in('none','working')
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
set om.examine_state ="refuse" where om.process_id =#{processId} set om.examine_state ="refuse" where om.process_id =#{processId}
</update> </update>
<update id="updateReassignment" parameterType="java.lang.String"> <update id="updateReassignment" parameterType="java.lang.String">
update bussiness_breassignment om update bussiness_reassignment om
set om.examine_state ="refuse" where om.process_id =#{processId} set om.examine_state ="refuse" where om.process_id =#{processId}
</update> </update>
<update id="updateInventorySum"> <update id="updateInventorySum">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论