Commit 2fe72a68 authored by kinky2014's avatar kinky2014

Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register

parents eb00cbe4 7f3db858
...@@ -79,6 +79,17 @@ public class TzsAuthController extends BaseController { ...@@ -79,6 +79,17 @@ public class TzsAuthController extends BaseController {
} }
/** /**
* 获取用户组织机构树
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/getUserReginTree")
@ApiOperation(httpMethod = "GET", value = "获取用户组织机构树", notes = "获取用户组织机构树")
public ResponseModel<Collection<RegionModel>> getUserReginTree() {
List<RegionModel> result = tzsAuthService.getUserReginTree();
return ResponseHelper.buildResponse(result);
}
/**
* 获取三级组织机构树 * 获取三级组织机构树
* *
* @return * @return
......
...@@ -337,6 +337,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin ...@@ -337,6 +337,14 @@ public class CylinderFillingRecordServiceImpl extends BaseService<CylinderFillin
boolMust.must(query); boolMust.must(query);
} }
//应用id
if (!ObjectUtils.isEmpty(esCylinderFillingRecordDto.getAppId())) {
flag = false;
BoolQueryBuilder query = QueryBuilders.boolQuery();
query.must(QueryBuilders.termsQuery("appId", esCylinderFillingRecordDto.getAppId().toLowerCase()));
boolMust.must(query);
}
//匹配气瓶品种 //匹配气瓶品种
if (!ObjectUtils.isEmpty(esCylinderFillingRecordDto.getCylinderVariety())) { if (!ObjectUtils.isEmpty(esCylinderFillingRecordDto.getCylinderVariety())) {
flag = false; flag = false;
......
...@@ -908,14 +908,15 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind ...@@ -908,14 +908,15 @@ public class CylinderInfoServiceImpl extends BaseService<CylinderInfoDto, Cylind
boolMust.should(appIdBuilder); boolMust.should(appIdBuilder);
} }
//匹配appid //应用id
if (!ObjectUtils.isEmpty(cylinderInfoDto.getAppId())) { if (!ObjectUtils.isEmpty(cylinderInfoDto.getAppId())) {
flag = false; flag = false;
BoolQueryBuilder appIdBuilder = QueryBuilders.boolQuery(); BoolQueryBuilder query = QueryBuilders.boolQuery();
appIdBuilder.must(QueryBuilders.matchQuery("appId", "*" + cylinderInfoDto.getAppId() + "*")); query.must(QueryBuilders.termsQuery("appId", cylinderInfoDto.getAppId().toLowerCase()));
boolMust.should(appIdBuilder); boolMust.must(query);
} }
//匹配产权单位 //匹配产权单位
if (!ObjectUtils.isEmpty(cylinderInfoDto.getUnitName())) { if (!ObjectUtils.isEmpty(cylinderInfoDto.getUnitName())) {
flag = false; flag = false;
......
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