|
@@ -7,6 +7,7 @@ import com.dgtly.common.core.controller.ApiBaseController;
|
|
|
import com.dgtly.common.core.domain.AjaxResult;
|
|
import com.dgtly.common.core.domain.AjaxResult;
|
|
|
import com.dgtly.common.core.domain.ParameterObject;
|
|
import com.dgtly.common.core.domain.ParameterObject;
|
|
|
import com.dgtly.common.core.domain.Ztree;
|
|
import com.dgtly.common.core.domain.Ztree;
|
|
|
|
|
+import com.dgtly.common.utils.StringUtils;
|
|
|
import com.dgtly.common.utils.bean.EnDecoderUtil;
|
|
import com.dgtly.common.utils.bean.EnDecoderUtil;
|
|
|
import com.dgtly.common.utils.bean.HexUtils;
|
|
import com.dgtly.common.utils.bean.HexUtils;
|
|
|
import com.dgtly.common.utils.http.HttpUtils;
|
|
import com.dgtly.common.utils.http.HttpUtils;
|
|
@@ -28,6 +29,7 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
+import org.springframework.jdbc.core.JdbcTemplate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.io.UnsupportedEncodingException;
|
|
@@ -478,6 +480,11 @@ public class WxController extends ApiBaseController {
|
|
|
return AjaxResult.error(301,"根据Ticket获取用户信息失败");
|
|
return AjaxResult.error(301,"根据Ticket获取用户信息失败");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ JdbcTemplate jdbcTemplate;
|
|
|
@ApiOperation(value = "根据账户密码获取用户信息",notes = "参数:{'username':'1','password':'xxx'}" +
|
|
@ApiOperation(value = "根据账户密码获取用户信息",notes = "参数:{'username':'1','password':'xxx'}" +
|
|
|
" 错误:301 密码错误" +
|
|
" 错误:301 密码错误" +
|
|
|
"错误:302 查无此人")
|
|
"错误:302 查无此人")
|
|
@@ -490,8 +497,13 @@ public class WxController extends ApiBaseController {
|
|
|
obj.checkParameterNotNull("username,password");
|
|
obj.checkParameterNotNull("username,password");
|
|
|
String username = obj.getString("username");
|
|
String username = obj.getString("username");
|
|
|
String password = obj.getString("password");
|
|
String password = obj.getString("password");
|
|
|
- String type=obj.getString("type");
|
|
|
|
|
|
|
+ String logintype=obj.getString("logintype");
|
|
|
SysUser user = sysUserService.selectUserByLoginName(username);
|
|
SysUser user = sysUserService.selectUserByLoginName(username);
|
|
|
|
|
+ //通过字典判断 logintype 查询客户需要传值类型
|
|
|
|
|
+ if(StringUtils.isNotBlank(logintype)){
|
|
|
|
|
+ List<Map<String,Object>> loginType= jdbcTemplate.queryForList("select dict_value from sys_dict_data where dict_type='' and ",);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if(user==null){
|
|
if(user==null){
|
|
|
return AjaxResult.error(302,"查无此人");
|
|
return AjaxResult.error(302,"查无此人");
|
|
|
}
|
|
}
|