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; ...@@ -25,6 +25,7 @@ import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.glsx.common.constants.ResultObject; import com.glsx.common.constants.ResultObject;
import com.glsx.common.feign.client.OrderClient; import com.glsx.common.feign.client.OrderClient;
import com.glsx.common.pojo.OderReceivingReq;
import com.glsx.common.utils.DateUtil; import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.Page; import com.glsx.common.utils.Page;
import com.glsx.common.utils.PropertiesUtil; import com.glsx.common.utils.PropertiesUtil;
...@@ -207,9 +208,12 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -207,9 +208,12 @@ public class SysUserServiceImpl implements SysUserService {
userQueryVo.seteTime(eTime); userQueryVo.seteTime(eTime);
} }
if (StringUtils.isNotBlank(userQueryVo.getKeyWord()) && StringUtils.isNumeric(userQueryVo.getKeyWord())) {
userQueryVo.setMechanicId(Integer.parseInt(userQueryVo.getKeyWord()));
}
List<SysMechanic> sysMechanicList = new ArrayList<>(); 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.setId(userQueryVo.getUserId());
user = sysUserMapper.get(user); user = sysUserMapper.get(user);
...@@ -226,13 +230,15 @@ public class SysUserServiceImpl implements SysUserService { ...@@ -226,13 +230,15 @@ public class SysUserServiceImpl implements SysUserService {
sysMechanicList = sysUserMapper.getSysMechanicList(userQueryVo); sysMechanicList = sysUserMapper.getSysMechanicList(userQueryVo);
} }
// 技工认证中列表 // 技工认证中列表
} else if (Constants.LIST_TYPE_MECHANIC_CHECK.equals(userQueryVo.getListType())) {
userQueryVo.setUserStatus(Constants.SYS_USER_STATUS_CHECKING); /*
if (page != null) { * else if
PageHelper.startPage(page.getPageIndex(), page.getPageSize(), true); * (Constants.LIST_TYPE_MECHANIC_CHECK.equals(userQueryVo.getListType())
} * ) { userQueryVo.setUserStatus(Constants.SYS_USER_STATUS_CHECKING); if
sysMechanicList = sysUserMapper.getCheckSysMechanicList(userQueryVo); * (page != null) { PageHelper.startPage(page.getPageIndex(),
} * page.getPageSize(), true); } sysMechanicList =
* sysUserMapper.getCheckSysMechanicList(userQueryVo); }
*/
for (SysMechanic sysMechanic : sysMechanicList) { for (SysMechanic sysMechanic : sysMechanicList) {
//获取技工图片 //获取技工图片
......
...@@ -1109,26 +1109,18 @@ ...@@ -1109,26 +1109,18 @@
<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>
<if test="keyWord != null and keyWord!=''"> <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>
<!--
<if test="mechanicId != null "> <if test="mechanicId != null ">
and u.id like #{mechanicId} OR u.id like #{mechanicId}
</if> --> </if>
<if test="serviceType != null and serviceType!=''"> <if test="serviceType != null and serviceType!=''">
and sm.service_type = #{serviceType,jdbcType=VARCHAR} and sm.service_type = #{serviceType,jdbcType=VARCHAR}
</if> </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!=''"> <if test="serviceKey != null and serviceKey!=''">
AND sdd.data_key LIKE "%"#{serviceKey,jdbcType=VARCHAR}"%" AND sdd.data_key LIKE "%"#{serviceKey,jdbcType=VARCHAR}"%"
</if> </if>
...@@ -1143,7 +1135,6 @@ ...@@ -1143,7 +1135,6 @@
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>
<choose> <choose>
<when test="mechanicStatus != null and mechanicStatus !=''"> <when test="mechanicStatus != null and mechanicStatus !=''">
and sm.mechanic_status= #{mechanicStatus,jdbcType=VARCHAR} and sm.mechanic_status= #{mechanicStatus,jdbcType=VARCHAR}
...@@ -1214,8 +1205,8 @@ ...@@ -1214,8 +1205,8 @@
and u.create_time between #{sTime,jdbcType=TIMESTAMP} and #{eTime,jdbcType=TIMESTAMP} and u.create_time between #{sTime,jdbcType=TIMESTAMP} and #{eTime,jdbcType=TIMESTAMP}
</if> </if>
<choose> <choose>
<when test="userStatus != null and userStatus!=''"> <when test="mechanicStatus != null and mechanicStatus''">
and sm.mechanic_status = #{userStatus,jdbcType=VARCHAR} and sm.mechanic_status = #{mechanicStatus,jdbcType=VARCHAR}
</when> </when>
<otherwise> <otherwise>
and sm.mechanic_status IN 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!