清理代码,更新时间

This commit is contained in:
panshuling321 2022-04-02 10:29:30 +08:00
parent 72b5bf6a90
commit 1fac912262
2 changed files with 3 additions and 13 deletions

View File

@ -12,7 +12,6 @@ import com.xhpc.system.api.model.LoginUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.naming.ldap.PagedResultsControl;
import java.util.ArrayList;
import java.util.List;
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) {
LoginUser loginUser = tokenService.getLoginUser();
String loginUserTenantId = loginUser.getTenantId();
Long logUserId = loginUser.getUserid();
SysUser sysUser = loginUser.getSysUser();
List<Map<String, Object>> list = new ArrayList<>();
@ -84,16 +82,12 @@ public class XhpcCardClientUserServiceImpl extends BaseService implements IXhpcC
}
if(cardClientUser.getUsersLevel() ==null){
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())){
return AjaxResult.error("运营商为空");
}
if(cardClientUser.getUsersID()==null){
int i = xhpcCardClientUserMapper.insertXhpcCardClientUser(cardClientUser);
if(i==0){

View File

@ -75,9 +75,7 @@
<if test="null != corpName and ''!=corpName ">
corpName,
</if>
<if test="null != usersTime">
usersTime,
</if>
<if test="null != tenantId and '' != tenantId">
tenant_id
</if>
@ -107,9 +105,7 @@
<if test="null != corpName and ''!=corpName ">
#{corpNameand},
</if>
<if test="null != usersTime">
#{usersTime},
</if>
sysdate(),
<if test="null != tenantId and '' != tenantId">
#{tenantId}
</if>