Commit c26ecb82 by zhangjing

fixed 订单管理/未知订单管理

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23820 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 6e69cf96
...@@ -12,6 +12,7 @@ public class SysOrganization { ...@@ -12,6 +12,7 @@ public class SysOrganization {
private Integer parentId; private Integer parentId;
private String name; private String name;
private String serviceName;
private Byte orgStatus; private Byte orgStatus;
...@@ -59,6 +60,14 @@ public class SysOrganization { ...@@ -59,6 +60,14 @@ public class SysOrganization {
return id; return id;
} }
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public void setId(Integer id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
......
...@@ -963,44 +963,44 @@ ...@@ -963,44 +963,44 @@
END END
</select> </select>
<select id="getSPMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo" <select id="getSPMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMechanic"> resultType="com.glsx.usercenter.pojo.user.SysMechanic">
<if test="mechanicId != null "> <if test="mechanicId != null ">
<bind name="mechanicId" value="'%' + mechanicId + '%'"/> <bind name="mechanicId" value="'%' + mechanicId + '%'"/>
</if> </if>
SELECT SELECT
u.id, u.id,
u.org_id orgId, u.org_id orgId,
so.NAME orgName, so.NAME orgName,
u.user_status userStatus, u.user_status userStatus,
u. NAME, u. NAME,
u. PASSWORD password, u. PASSWORD password,
u.phone_number phoneNumber, u.phone_number phoneNumber,
sm.district district, sm.district district,
sm.address address, sm.address address,
u.create_time createTime, u.create_time createTime,
GROUP_CONCAT(sdd.data_value SEPARATOR '/') serviceItems, GROUP_CONCAT(sdd.data_value SEPARATOR '/') serviceItems,
GROUP_CONCAT(sdd.data_key) serviceKey, GROUP_CONCAT(sdd.data_key) serviceKey,
sm.service_type serviceType, sm.service_type serviceType,
sm.IDCard, sm.IDCard,
sm.mechanic_status mechanicStatus, sm.mechanic_status mechanicStatus,
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,
sm.send_type sendType, sm.send_type sendType,
su.NAME serviceName su.NAME serviceName
FROM sys_user u FROM sys_user u
LEFT JOIN sys_mechanic sm ON sm.user_id = u.id LEFT JOIN sys_mechanic sm ON sm.user_id = u.id
LEFT JOIN sys_user_services sus ON sm.user_id = sus.user_id LEFT JOIN sys_user_services sus ON sm.user_id = sus.user_id
LEFT JOIN sys_dict_data sdd ON sus.service_key = sdd.data_key LEFT JOIN sys_dict_data sdd ON sus.service_key = sdd.data_key
LEFT JOIN sys_service_mechanic ssm ON ssm.mechanic_id = u.id LEFT JOIN sys_service_mechanic ssm ON ssm.mechanic_id = u.id
LEFT JOIN sys_user su ON su.id = ssm.service_id LEFT JOIN sys_user su ON su.id = ssm.service_id
LEFT JOIN sys_organization so ON u.org_id = so.id LEFT JOIN sys_organization so ON u.org_id = so.id
WHERE WHERE
ssm.service_id = #{userId} ssm.service_id = #{userId}
AND u.user_type = 3 AND u.user_type = 3
AND sm.mechanic_status = 'sys_user_status_pass_check' AND sm.mechanic_status = 'sys_user_status_pass_check'
<if test="id != null and id!=''"> <if test="id != null and id!=''">
and u.id = #{id,jdbcType=INTEGER} and u.id = #{id,jdbcType=INTEGER}
</if> </if>
...@@ -1033,9 +1033,9 @@ ...@@ -1033,9 +1033,9 @@
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>
GROUP BY GROUP BY
u.id u.id
</select> </select>
<select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo" <select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMechanic"> resultType="com.glsx.usercenter.pojo.user.SysMechanic">
...@@ -1219,13 +1219,16 @@ ...@@ -1219,13 +1219,16 @@
LEFT JOIN sys_manager sm ON sm.user_id = u.id LEFT JOIN sys_manager sm ON sm.user_id = u.id
WHERE u.user_type = 1 WHERE u.user_type = 1
and u.user_status='sys_user_status_normal' and u.user_status='sys_user_status_normal'
and u.group_id = #{orgId,jdbcType=INTEGER} <if test="orgId != null">
<if test="id != 0 and id!=''"> and u.group_id = #{orgId,jdbcType=INTEGER}
</if>
<if test="id != 0">
AND uo.user_id = #{id,jdbcType=INTEGER} AND uo.user_id = #{id,jdbcType=INTEGER}
</if> </if>
<if test="name != null and name!=''"> <if test="name != null and name != ''">
AND sm.provider_name LIKE "%"#{name,jdbcType=VARCHAR}"%" AND sm.provider_name LIKE concat('%',#{name,jdbcType=VARCHAR},'%')
</if> </if>
Limit 50
</select> </select>
<resultMap type="com.glsx.usercenter.pojo.menu.SysOrganization" id="sysOrganizationMap"> <resultMap type="com.glsx.usercenter.pojo.menu.SysOrganization" id="sysOrganizationMap">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!