Commit 508a3dfd authored by chenzhao's avatar chenzhao

修改代码

parent ed344b0e
...@@ -43,14 +43,6 @@ public class Point extends BasicEntity { ...@@ -43,14 +43,6 @@ public class Point extends BasicEntity {
*/ */
private String coordinates; private String coordinates;
public String getIsSccreen() {
return isSccreen;
}
public void setIsSccreen(String isSccreen) {
this.isSccreen = isSccreen;
}
/** /**
* 创建用户id * 创建用户id
*/ */
...@@ -236,9 +228,6 @@ public class Point extends BasicEntity { ...@@ -236,9 +228,6 @@ public class Point extends BasicEntity {
private String ue4Location; private String ue4Location;
//bizOrgCode是否筛选字段,默认是1 为0时代表是前端传递进来的 数据库字段取值为eq 同级查找
private String isSccreen = "1";
/** /**
* ue4旋转 * ue4旋转
*/ */
......
...@@ -1107,9 +1107,7 @@ public class PointController extends AbstractBaseController { ...@@ -1107,9 +1107,7 @@ public class PointController extends AbstractBaseController {
return CommonResponseUtil.failure("用户session过期"); return CommonResponseUtil.failure("用户session过期");
} }
try { try {
if (!StringUtils.isEmpty(point.getBizOrgCode())){ if (StringUtils.isEmpty(point.getBizOrgCode())){
point.setIsSccreen("0");
}else {
point.setBizOrgCode(reginParams.getPersonIdentity().getCompanyBizOrgCode()); point.setBizOrgCode(reginParams.getPersonIdentity().getCompanyBizOrgCode());
} }
......
...@@ -50,7 +50,7 @@ public class PersonIdentifyAspect { ...@@ -50,7 +50,7 @@ public class PersonIdentifyAspect {
public void personIdentity(JoinPoint joinPoint) throws PermissionException { public void personIdentity(JoinPoint joinPoint) throws PermissionException {
ReginParams reginParam = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class); ReginParams reginParam = JSON.parseObject(redisUtils.get(RedisKey.buildReginKey(RequestContext.getExeUserId(), RequestContext.getToken())).toString(), ReginParams.class);
if (reginParam != null ) { if (reginParam != null ) {
if(reginParam.getPersonIdentity()==null){ if(reginParam.getPersonIdentity()==null || reginParam.getPersonIdentity().getCompanyBizOrgCode()==null){
String userId = reginParam.getUserModel().getUserId(); String userId = reginParam.getUserModel().getUserId();
if(userId!=null){ if(userId!=null){
......
...@@ -98,10 +98,7 @@ ...@@ -98,10 +98,7 @@
<if test="pointParams.catalogId != null and pointParams.catalogId != ''"> <if test="pointParams.catalogId != null and pointParams.catalogId != ''">
and p.catalog_id = #{pointParams.catalogId} and p.catalog_id = #{pointParams.catalogId}
</if> </if>
<if test="pointParams.bizOrgCode != null and pointParams.bizOrgCode != '' and pointParams.isSccreen == '0'"> <if test="pointParams.bizOrgCode != null and pointParams.bizOrgCode != ''">
and p.biz_org_code = #{pointParams.bizOrgCode}
</if>
<if test="pointParams.bizOrgCode != null and pointParams.bizOrgCode != '' and pointParams.isSccreen == '1'">
and p.biz_org_code LIKE CONCAT (#{pointParams.bizOrgCode} ,'%') and p.biz_org_code LIKE CONCAT (#{pointParams.bizOrgCode} ,'%')
</if> </if>
</where> </where>
...@@ -126,10 +123,8 @@ ...@@ -126,10 +123,8 @@
<if test="catalogId != null and catalogId != ''"> <if test="catalogId != null and catalogId != ''">
and catalog_id = #{catalogId} and catalog_id = #{catalogId}
</if> </if>
<if test="bizOrgCode != null and bizOrgCode != '' and isSccreen == '0'">
and biz_org_code = #{bizOrgCode} <if test="bizOrgCode != null and bizOrgCode != ''">
</if>
<if test="bizOrgCode != null and bizOrgCode != '' and isSccreen == '1'">
and biz_org_code LIKE CONCAT (#{bizOrgCode} ,'%') and biz_org_code LIKE CONCAT (#{bizOrgCode} ,'%')
</if> </if>
</where> </where>
......
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