Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
f27e70fb
Commit
f27e70fb
authored
Oct 10, 2024
by
韩桐桐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(weapp): 接口修改
parent
e270fcc2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
11 deletions
+10
-11
TzsAppController.java
...amos/boot/module/app/biz/controller/TzsAppController.java
+3
-10
EquipmentCategoryServiceImpl.java
...le/app/biz/service/impl/EquipmentCategoryServiceImpl.java
+6
-0
TzsAppService.java
.../amos/boot/module/app/biz/service/impl/TzsAppService.java
+1
-1
No files found.
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/controller/TzsAppController.java
View file @
f27e70fb
...
@@ -34,14 +34,7 @@ import io.swagger.annotations.ApiOperation;
...
@@ -34,14 +34,7 @@ import io.swagger.annotations.ApiOperation;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
import
org.typroject.tyboot.core.foundation.utils.ValidationUtil
;
...
@@ -102,14 +95,14 @@ public class TzsAppController {
...
@@ -102,14 +95,14 @@ public class TzsAppController {
//判断是否有权限查看全部信息
//判断是否有权限查看全部信息
if
(
LEVEL
.
equals
(
companys
.
getLevel
()))
{
if
(
LEVEL
.
equals
(
companys
.
getLevel
()))
{
//企业
//企业
if
(
detial
.
get
(
"USE_UNIT_CREDIT_CODE"
).
equals
(
companys
.
getCompanyCode
()))
{
if
(
!
ValidationUtil
.
isEmpty
(
detial
.
get
(
"USE_UNIT_CREDIT_CODE"
))
&&
detial
.
get
(
"USE_UNIT_CREDIT_CODE"
).
equals
(
companys
.
getCompanyCode
()))
{
equipmentInfo
=
appService
.
getEquipmentInfo
(
record
);
equipmentInfo
=
appService
.
getEquipmentInfo
(
record
);
}
else
{
}
else
{
equipmentInfo
=
appService
.
getEquipmentInfoWX
(
record
);
equipmentInfo
=
appService
.
getEquipmentInfoWX
(
record
);
}
}
}
else
{
}
else
{
//监管
//监管
if
(
detial
.
get
(
"ORG_BRANCH_CODE"
).
contains
(
companys
.
getOrgCode
()))
{
if
(
!
ValidationUtil
.
isEmpty
(
detial
.
get
(
"ORG_BRANCH_CODE"
))
&&
detial
.
get
(
"ORG_BRANCH_CODE"
).
contains
(
companys
.
getOrgCode
()))
{
equipmentInfo
=
appService
.
getEquipmentInfo
(
record
);
equipmentInfo
=
appService
.
getEquipmentInfo
(
record
);
}
else
{
}
else
{
equipmentInfo
=
appService
.
getEquipmentInfoWX
(
record
);
equipmentInfo
=
appService
.
getEquipmentInfoWX
(
record
);
...
...
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
f27e70fb
...
@@ -1211,6 +1211,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1211,6 +1211,12 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
meBuilder
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"STATUS"
,
test
));
meBuilder
.
must
(
QueryBuilders
.
matchPhraseQuery
(
"STATUS"
,
test
));
boolMust
.
must
(
meBuilder
);
boolMust
.
must
(
meBuilder
);
}
}
if
(!
ObjectUtils
.
isEmpty
(
map
.
getString
(
"IS_INTO_MANAGEMENT"
)))
{
BoolQueryBuilder
pBuilder
=
QueryBuilders
.
boolQuery
();
String
param
=
QueryParser
.
escape
(
map
.
getString
(
"IS_INTO_MANAGEMENT"
));
pBuilder
.
must
(
QueryBuilders
.
matchQuery
(
"IS_INTO_MANAGEMENT"
,
param
));
boolMust
.
must
(
pBuilder
);
}
builder
.
query
(
boolMust
);
builder
.
query
(
boolMust
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
builder
.
sort
(
"REC_DATE"
,
SortOrder
.
DESC
);
builder
.
from
((
map
.
getInteger
(
"number"
)
-
1
)
*
map
.
getInteger
(
"size"
));
builder
.
from
((
map
.
getInteger
(
"number"
)
-
1
)
*
map
.
getInteger
(
"size"
));
...
...
amos-boot-system-tzs/amos-boot-module-app/amos-boot-module-app-biz/src/main/java/com/yeejoin/amos/boot/module/app/biz/service/impl/TzsAppService.java
View file @
f27e70fb
...
@@ -794,7 +794,7 @@ public class TzsAppService {
...
@@ -794,7 +794,7 @@ public class TzsAppService {
// 处理字典值
// 处理字典值
public
void
getCon
(
String
fileName
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
,
public
void
getCon
(
String
fileName
,
JSONObject
jsonObject
,
Map
<
String
,
Object
>
map
,
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
List
<
DataDictionary
>
dictionaryList
,
List
<
EquipmentCategory
>
equipmentCategories
)
{
if
(
"
province"
.
contains
(
fileName
)
||
"
city"
.
contains
(
fileName
)
||
"county"
.
contains
(
fileName
))
{
if
(
"city"
.
contains
(
fileName
)
||
"county"
.
contains
(
fileName
))
{
JSONArray
regionName
=
getRegionName
();
JSONArray
regionName
=
getRegionName
();
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
List
<
RegionModel
>
list
=
JSONArray
.
parseArray
(
regionName
.
toJSONString
(),
RegionModel
.
class
);
if
(!
ValidationUtil
.
isEmpty
(
list
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
)))
{
if
(!
ValidationUtil
.
isEmpty
(
list
)
&&
!
ValidationUtil
.
isEmpty
(
jsonObject
.
getString
(
fileName
)))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment