Commit bd415902 by zhengxj

finish 技工列表 on 20191031 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@24492 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 7e97be60
......@@ -25,6 +25,7 @@ import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.OrderClient;
import com.glsx.common.pojo.OderReceivingReq;
import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.Page;
import com.glsx.common.utils.PropertiesUtil;
......@@ -207,10 +208,13 @@ public class SysUserServiceImpl implements SysUserService {
userQueryVo.seteTime(eTime);
}
if (StringUtils.isNotBlank(userQueryVo.getKeyWord()) && StringUtils.isNumeric(userQueryVo.getKeyWord())) {
userQueryVo.setMechanicId(Integer.parseInt(userQueryVo.getKeyWord()));
}
List<SysMechanic> sysMechanicList = new ArrayList<>();
//技工列表
if (Constants.LIST_TYPE_MECHANIC_MANANGE.equals(userQueryVo.getListType())) {
SysUser user = new SysUser();
// 技工列表
SysUser user = new SysUser();
user.setId(userQueryVo.getUserId());
user = sysUserMapper.get(user);
Integer userType = user.getUserType();
......@@ -226,13 +230,15 @@ public class SysUserServiceImpl implements SysUserService {
sysMechanicList = sysUserMapper.getSysMechanicList(userQueryVo);
}
// 技工认证中列表
} else if (Constants.LIST_TYPE_MECHANIC_CHECK.equals(userQueryVo.getListType())) {
userQueryVo.setUserStatus(Constants.SYS_USER_STATUS_CHECKING);
if (page != null) {
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true);
}
sysMechanicList = sysUserMapper.getCheckSysMechanicList(userQueryVo);
}
/*
* else if
* (Constants.LIST_TYPE_MECHANIC_CHECK.equals(userQueryVo.getListType())
* ) { userQueryVo.setUserStatus(Constants.SYS_USER_STATUS_CHECKING); if
* (page != null) { PageHelper.startPage(page.getPageIndex(),
* page.getPageSize(), true); } sysMechanicList =
* sysUserMapper.getCheckSysMechanicList(userQueryVo); }
*/
for (SysMechanic sysMechanic : sysMechanicList) {
//获取技工图片
......
......@@ -1109,26 +1109,18 @@
<if test="id != null and id!=''">
and u.id = #{id,jdbcType=INTEGER}
</if>
<if test="keyWord != null and keyWord!=''">
and( u.id like #{keyWord} or u.name like "%"#{keyWord,jdbcType=VARCHAR}"%" or su.name like "%"#{keyWord,jdbcType=VARCHAR}"%" or u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%" )
and( u.name like '%'#{keyWord}'%' or su.name like '%'#{keyWord}'%' or u.phone_number like '%'#{keyWord}'%' )
</if>
<!--
<if test="mechanicId != null ">
and u.id like #{mechanicId}
</if> -->
OR u.id like #{mechanicId}
</if>
<if test="serviceType != null and serviceType!=''">
and sm.service_type = #{serviceType,jdbcType=VARCHAR}
</if>
<!-- <if test="name != null and name!=''">
and u.name like "%"#{name,jdbcType=VARCHAR}"%"
</if>
<if test="phoneNumber != null and phoneNumber!=''">
and u.phone_number like "%"#{phoneNumber,jdbcType=VARCHAR}"%"
</if> -->
<if test="serviceKey != null and serviceKey!=''">
AND sdd.data_key LIKE "%"#{serviceKey,jdbcType=VARCHAR}"%"
</if>
......@@ -1142,9 +1134,8 @@
<otherwise>
and u.user_status IN ('sys_user_status_normal','sys_user_status_nonuse')
</otherwise>
</choose>
<choose>
</choose>
<choose>
<when test="mechanicStatus != null and mechanicStatus !=''">
and sm.mechanic_status= #{mechanicStatus,jdbcType=VARCHAR}
</when>
......@@ -1214,8 +1205,8 @@
and u.create_time between #{sTime,jdbcType=TIMESTAMP} and #{eTime,jdbcType=TIMESTAMP}
</if>
<choose>
<when test="userStatus != null and userStatus!=''">
and sm.mechanic_status = #{userStatus,jdbcType=VARCHAR}
<when test="mechanicStatus != null and mechanicStatus''">
and sm.mechanic_status = #{mechanicStatus,jdbcType=VARCHAR}
</when>
<otherwise>
and sm.mechanic_status IN
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!