Commit 45b46a49 by guojuxing

pmd

parent 4a55ce9b
...@@ -42,6 +42,12 @@ ...@@ -42,6 +42,12 @@
<artifactId>javax.el</artifactId> <artifactId>javax.el</artifactId>
<version>3.0.1-b09</version> <version>3.0.1-b09</version>
</dependency> </dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-commons</artifactId>
<version>${gic-commons}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
...@@ -7,10 +7,25 @@ package com.gic.auth.constant; ...@@ -7,10 +7,25 @@ package com.gic.auth.constant;
* @date 2020/10/23 9:52 AM
 * @date 2020/10/23 9:52 AM

*/ */
public enum MenuPlatformTypeEnum { public enum MenuPlatformTypeEnum {
/**
* gic"),
*/
GIC(0, "gic"), GIC(0, "gic"),
/**
* 好办后台"),
*/
HAOBAN_PC(1, "好办后台"), HAOBAN_PC(1, "好办后台"),
/**
* 好办小程序"),
*/
HAOBAN_APPLET(3, "好办小程序"), HAOBAN_APPLET(3, "好办小程序"),
/**
* 好办应用"),
*/
HAOBAN_APP(2, "好办应用"), HAOBAN_APP(2, "好办应用"),
/**
* 好办小程序应用");
*/
HAOBAN_APPLET_APP(4, "好办小程序应用"); HAOBAN_APPLET_APP(4, "好办小程序应用");
private Integer code; private Integer code;
......
...@@ -82,4 +82,15 @@ public class GoodsResourceDTO implements Serializable{ ...@@ -82,4 +82,15 @@ public class GoodsResourceDTO implements Serializable{
this.goodsResourceEntMapSelectId = goodsResourceEntMapSelectId; this.goodsResourceEntMapSelectId = goodsResourceEntMapSelectId;
return this; return this;
} }
@Override
public String toString() {
return "GoodsResourceDTO{" +
"goodsResourceId=" + goodsResourceId +
", type=" + type +
", goodsResourceAuth=" + goodsResourceAuth +
", goodsResourceConfig='" + goodsResourceConfig + '\'' +
", goodsResourceEntMapSelectId=" + goodsResourceEntMapSelectId +
'}';
}
} }
...@@ -66,4 +66,14 @@ public class ResourceGroupCustomUserDTO implements Serializable{ ...@@ -66,4 +66,14 @@ public class ResourceGroupCustomUserDTO implements Serializable{
this.cuSelectId = cuSelectId; this.cuSelectId = cuSelectId;
return this; return this;
} }
@Override
public String toString() {
return "ResourceGroupCustomUserDTO{" +
"type=" + type +
", sort=" + sort +
", areaValue='" + areaValue + '\'' +
", cuSelectId=" + cuSelectId +
'}';
}
} }
package com.gic.auth.dto.wechat; package com.gic.auth.dto.wechat;
import com.gic.commons.annotation.SkipNamingCheck;
import java.io.Serializable; import java.io.Serializable;
/** /**
* 服务号关注用户 * 服务号关注用户
...@@ -8,6 +10,7 @@ import java.io.Serializable; ...@@ -8,6 +10,7 @@ import java.io.Serializable;
* @author guojuxing
 * @author guojuxing

* @date 2021/1/26 10:20 AM
 * @date 2021/1/26 10:20 AM

*/ */
@SkipNamingCheck
public class WechatUserDTO implements Serializable{ public class WechatUserDTO implements Serializable{
private static final long serialVersionUID = -2148969953172055593L; private static final long serialVersionUID = -2148969953172055593L;
......
...@@ -3,6 +3,7 @@ package com.gic.auth.service; ...@@ -3,6 +3,7 @@ package com.gic.auth.service;
import com.gic.api.base.commons.Page; import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse; import com.gic.api.base.commons.ServiceResponse;
import com.gic.auth.dto.*; import com.gic.auth.dto.*;
import com.gic.commons.annotation.SkipNamingCheck;
import java.util.List; import java.util.List;
...@@ -13,6 +14,7 @@ import java.util.List; ...@@ -13,6 +14,7 @@ import java.util.List;
* @author guojuxing
 * @author guojuxing

* @date 2021/1/8 4:36 PM
 * @date 2021/1/8 4:36 PM

*/ */
@SkipNamingCheck
public interface ResourceGroupApiService { public interface ResourceGroupApiService {
/** /**
......
...@@ -226,6 +226,7 @@ public interface TabSysUserMapper { ...@@ -226,6 +226,7 @@ public interface TabSysUserMapper {
/** /**
* 查询 * 查询
* @param openId * @param openId
* @param enterpriseId
* @return * @return
*/ */
TabSysUser getUserByOpenId(@Param("openId") String openId, @Param("enterpriseId") Integer enterpriseId); TabSysUser getUserByOpenId(@Param("openId") String openId, @Param("enterpriseId") Integer enterpriseId);
......
...@@ -79,7 +79,8 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{ ...@@ -79,7 +79,8 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
//有效的才会重新授权。如果是已解除、待解除、解除中,不再重新授权 //有效的才会重新授权。如果是已解除、待解除、解除中,不再重新授权
if (unionEnterpriseAuthDTO != null && unionEnterpriseAuthDTO.getStatusFlag() == 1) { if (unionEnterpriseAuthDTO != null && unionEnterpriseAuthDTO.getStatusFlag() == 1) {
//验证码验证 //验证码验证
if (!"hasValid".equals(resourceGroup.getAuthCode())) { boolean isUnionEnterpriseAuthResourceGroup = "hasValid".endsWith(resourceGroup.getAuthCode());
if (!isUnionEnterpriseAuthResourceGroup) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "验证码未通过"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "验证码未通过");
} }
......
...@@ -36,8 +36,6 @@ public class MenuOperationUtils { ...@@ -36,8 +36,6 @@ public class MenuOperationUtils {
test.setTarget(1); test.setTarget(1);
String result = map.get(SAVE_FIRST_PAGE).operate(test); String result = map.get(SAVE_FIRST_PAGE).operate(test);
System.out.println(result);
System.out.println(test.toString());
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment