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 {
private Integer parentId;
private String name;
private String serviceName;
private Byte orgStatus;
......@@ -59,6 +60,14 @@ public class SysOrganization {
return id;
}
public String getServiceName() {
return serviceName;
}
public void setServiceName(String serviceName) {
this.serviceName = serviceName;
}
public void setId(Integer id) {
this.id = id;
}
......
......@@ -963,44 +963,44 @@
END
</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">
<if test="mechanicId != null ">
<bind name="mechanicId" value="'%' + mechanicId + '%'"/>
</if>
SELECT
u.id,
u.org_id orgId,
so.NAME orgName,
u.user_status userStatus,
u. NAME,
u. PASSWORD password,
u.phone_number phoneNumber,
sm.district district,
sm.address address,
u.create_time createTime,
GROUP_CONCAT(sdd.data_value SEPARATOR '/') serviceItems,
GROUP_CONCAT(sdd.data_key) serviceKey,
sm.service_type serviceType,
sm.IDCard,
sm.mechanic_status mechanicStatus,
sm.work_time_start workTimeStart,
sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType,
sm.send_type sendType,
su.NAME serviceName
FROM sys_user u
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_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_user su ON su.id = ssm.service_id
LEFT JOIN sys_organization so ON u.org_id = so.id
WHERE
ssm.service_id = #{userId}
AND u.user_type = 3
AND sm.mechanic_status = 'sys_user_status_pass_check'
<if test="id != null and id!=''">
u.id,
u.org_id orgId,
so.NAME orgName,
u.user_status userStatus,
u. NAME,
u. PASSWORD password,
u.phone_number phoneNumber,
sm.district district,
sm.address address,
u.create_time createTime,
GROUP_CONCAT(sdd.data_value SEPARATOR '/') serviceItems,
GROUP_CONCAT(sdd.data_key) serviceKey,
sm.service_type serviceType,
sm.IDCard,
sm.mechanic_status mechanicStatus,
sm.work_time_start workTimeStart,
sm.work_time_end workTimeEnd,
sm.dispatch_type dispatchType,
sm.send_type sendType,
su.NAME serviceName
FROM sys_user u
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_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_user su ON su.id = ssm.service_id
LEFT JOIN sys_organization so ON u.org_id = so.id
WHERE
ssm.service_id = #{userId}
AND u.user_type = 3
AND sm.mechanic_status = 'sys_user_status_pass_check'
<if test="id != null and id!=''">
and u.id = #{id,jdbcType=INTEGER}
</if>
......@@ -1033,9 +1033,9 @@
and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse')
</otherwise>
</choose>
GROUP BY
u.id
</select>
GROUP BY
u.id
</select>
<select id="getSysMechanicList" parameterType="com.glsx.usercenter.pojo.vo.UserQueryVo"
resultType="com.glsx.usercenter.pojo.user.SysMechanic">
......@@ -1219,13 +1219,16 @@
LEFT JOIN sys_manager sm ON sm.user_id = u.id
WHERE u.user_type = 1
and u.user_status='sys_user_status_normal'
and u.group_id = #{orgId,jdbcType=INTEGER}
<if test="id != 0 and id!=''">
<if test="orgId != null">
and u.group_id = #{orgId,jdbcType=INTEGER}
</if>
<if test="id != 0">
AND uo.user_id = #{id,jdbcType=INTEGER}
</if>
<if test="name != null and name!=''">
AND sm.provider_name LIKE "%"#{name,jdbcType=VARCHAR}"%"
<if test="name != null and name != ''">
AND sm.provider_name LIKE concat('%',#{name,jdbcType=VARCHAR},'%')
</if>
Limit 50
</select>
<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!