Commit a9e6fa22 by duanhq

技工管理不显示未审核技工,技工默认归属在绑定服务商部门下 by duanht 2019/3/16

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18591 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 161fe111
...@@ -320,10 +320,9 @@ public class UserController extends BaseController { ...@@ -320,10 +320,9 @@ public class UserController extends BaseController {
serviceId = ShiroUtil.getUserId(); serviceId = ShiroUtil.getUserId();
sysMechanic.setMechanicStatus("sys_user_status_pass_check"); sysMechanic.setMechanicStatus("sys_user_status_pass_check");
} else { } else {
//技工默认归属在绑定商户集团下 //技工默认归属在绑定服务商部门下
SysUser user = sysUserService.selectByPrimaryKey(serviceId); SysUser user = sysUserService.selectByPrimaryKey(serviceId);
Integer groupId = iSysOrganizationService.getGroupIdByOrgId(user.getOrgId()); sysMechanic.setOrgId(user.getOrgId());
sysMechanic.setOrgId(groupId);
sysMechanic.setMechanicStatus("sys_user_status_uncheck"); sysMechanic.setMechanicStatus("sys_user_status_uncheck");
} }
......
...@@ -872,7 +872,6 @@ ...@@ -872,7 +872,6 @@
sm.work_time_start workTimeStart, sm.work_time_start workTimeStart,
sm.work_time_end workTimeEnd, sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType sm.dispatch_type dispatchType
<choose> <choose>
<when test="userId != 0 and userId!=''"> <when test="userId != 0 and userId!=''">
FROM FROM
...@@ -929,6 +928,7 @@ ...@@ -929,6 +928,7 @@
and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse') and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse')
</otherwise> </otherwise>
</choose> </choose>
and sm.mechanic_status IN ('sys_user_status_pass_check')
GROUP BY u.id GROUP BY u.id
ORDER BY u.create_time DESC ORDER BY u.create_time DESC
</select> </select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!