清理代码,更新时间
This commit is contained in:
parent
72b5bf6a90
commit
1fac912262
@ -12,7 +12,6 @@ import com.xhpc.system.api.model.LoginUser;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import javax.naming.ldap.PagedResultsControl;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@ -33,7 +32,6 @@ public class XhpcCardClientUserServiceImpl extends BaseService implements IXhpcC
|
|||||||
public List<Map<String, Object>> selectXhpcCardClientUserList(String userName, Integer usersLevel, Long operatorId, String tenantId) {
|
public List<Map<String, Object>> selectXhpcCardClientUserList(String userName, Integer usersLevel, Long operatorId, String tenantId) {
|
||||||
|
|
||||||
LoginUser loginUser = tokenService.getLoginUser();
|
LoginUser loginUser = tokenService.getLoginUser();
|
||||||
String loginUserTenantId = loginUser.getTenantId();
|
|
||||||
Long logUserId = loginUser.getUserid();
|
Long logUserId = loginUser.getUserid();
|
||||||
SysUser sysUser = loginUser.getSysUser();
|
SysUser sysUser = loginUser.getSysUser();
|
||||||
List<Map<String, Object>> list = new ArrayList<>();
|
List<Map<String, Object>> list = new ArrayList<>();
|
||||||
@ -84,16 +82,12 @@ public class XhpcCardClientUserServiceImpl extends BaseService implements IXhpcC
|
|||||||
}
|
}
|
||||||
if(cardClientUser.getUsersLevel() ==null){
|
if(cardClientUser.getUsersLevel() ==null){
|
||||||
return AjaxResult.error("级别为空");
|
return AjaxResult.error("级别为空");
|
||||||
}else{
|
|
||||||
// if(cardClientUser.getUsersLevel() ==3){
|
|
||||||
// if(cardClientUser.getCorpNo() ==null || "".equals(cardClientUser.getCorpNo())){
|
|
||||||
// return AjaxResult.error("运营商为空");
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cardClientUser.getCorpNo() ==null || "".equals(cardClientUser.getCorpNo())){
|
if(cardClientUser.getCorpNo() ==null || "".equals(cardClientUser.getCorpNo())){
|
||||||
return AjaxResult.error("运营商为空");
|
return AjaxResult.error("运营商为空");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(cardClientUser.getUsersID()==null){
|
if(cardClientUser.getUsersID()==null){
|
||||||
int i = xhpcCardClientUserMapper.insertXhpcCardClientUser(cardClientUser);
|
int i = xhpcCardClientUserMapper.insertXhpcCardClientUser(cardClientUser);
|
||||||
if(i==0){
|
if(i==0){
|
||||||
|
|||||||
@ -75,9 +75,7 @@
|
|||||||
<if test="null != corpName and ''!=corpName ">
|
<if test="null != corpName and ''!=corpName ">
|
||||||
corpName,
|
corpName,
|
||||||
</if>
|
</if>
|
||||||
<if test="null != usersTime">
|
|
||||||
usersTime,
|
usersTime,
|
||||||
</if>
|
|
||||||
<if test="null != tenantId and '' != tenantId">
|
<if test="null != tenantId and '' != tenantId">
|
||||||
tenant_id
|
tenant_id
|
||||||
</if>
|
</if>
|
||||||
@ -107,9 +105,7 @@
|
|||||||
<if test="null != corpName and ''!=corpName ">
|
<if test="null != corpName and ''!=corpName ">
|
||||||
#{corpNameand},
|
#{corpNameand},
|
||||||
</if>
|
</if>
|
||||||
<if test="null != usersTime">
|
sysdate(),
|
||||||
#{usersTime},
|
|
||||||
</if>
|
|
||||||
<if test="null != tenantId and '' != tenantId">
|
<if test="null != tenantId and '' != tenantId">
|
||||||
#{tenantId}
|
#{tenantId}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user