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
85056d95
Commit
85056d95
authored
Aug 02, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一码通总览数据异常
parent
46f3ad63
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
EquipmentCategoryMapper.xml
...api/src/main/resources/mapper/EquipmentCategoryMapper.xml
+1
-0
EquipmentCategoryServiceImpl.java
...le/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
+8
-4
No files found.
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-api/src/main/resources/mapper/EquipmentCategoryMapper.xml
View file @
85056d95
...
@@ -320,6 +320,7 @@
...
@@ -320,6 +320,7 @@
ibjoi."CLAIM_STATUS"
<![CDATA[ <> ]]>
''
ibjoi."CLAIM_STATUS"
<![CDATA[ <> ]]>
''
and ibjui."USE_UNIT_CREDIT_CODE"
<![CDATA[ <> ]]>
''
and ibjui."USE_UNIT_CREDIT_CODE"
<![CDATA[ <> ]]>
''
and ibjri."EQU_LIST"
<![CDATA[ <> ]]>
''
and ibjri."EQU_LIST"
<![CDATA[ <> ]]>
''
and ibjui."IS_NOT_ES" = 1
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
<if
test=
"unitCodes !=null and unitCodes.size>0"
>
and ibjui.USE_UNIT_CREDIT_CODE in
and ibjui.USE_UNIT_CREDIT_CODE in
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
<foreach
collection=
"unitCodes"
separator=
","
item=
"unitCode"
open=
"("
close=
")"
>
...
...
amos-boot-system-tzs/amos-boot-module-ymt/amos-boot-module-ymt-biz/src/main/java/com/yeejoin/amos/boot/module/ymt/biz/service/impl/EquipmentCategoryServiceImpl.java
View file @
85056d95
...
@@ -949,9 +949,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -949,9 +949,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
private
List
<
EquipmentCategoryData
>
updateEquipmentCategoryData
(
String
unitCode
,
String
orgBranchCode
)
{
private
List
<
EquipmentCategoryData
>
updateEquipmentCategoryData
(
String
unitCode
,
String
orgBranchCode
)
{
List
<
String
>
unitCodeList
=
new
ArrayList
<>();
List
<
String
>
unitCodeList
=
new
ArrayList
<>();
unitCodeList
.
add
(
unitCode
);
unitCodeList
.
add
(
unitCode
);
List
<
String
>
orgBranchCodeList
=
new
ArrayList
<>();
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCodeList
,
null
);
orgBranchCodeList
.
add
(
orgBranchCode
);
List
<
EquipmentCategoryData
>
equipmentCategoryData
=
getCategoryData
(
unitCodeList
,
orgBranchCodeList
);
return
equipmentCategoryData
;
return
equipmentCategoryData
;
}
}
...
@@ -1042,6 +1040,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1042,6 +1040,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
if
(!
ObjectUtils
.
isEmpty
(
responseModel
)
&&
"200"
.
equals
(
String
.
valueOf
(
responseModel
.
getStatus
())))
{
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
YSY
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
YSY
.
getCode
());
}
else
{
}
else
{
UseInfo
useInfo
=
new
UseInfo
();
useInfo
.
setIsNotEs
(
2
);
useInfoMapper
.
update
(
useInfo
,
new
QueryWrapper
<
UseInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
}
}
}
else
if
(
EquipmentCategoryEnum
.
DRL
.
getName
().
equals
(
claimStatus
))
{
}
else
if
(
EquipmentCategoryEnum
.
DRL
.
getName
().
equals
(
claimStatus
))
{
...
@@ -1061,6 +1062,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1061,6 +1062,9 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
log
.
error
(
e
.
getMessage
(),
e
);
UseInfo
useInfo
=
new
UseInfo
();
useInfo
.
setIsNotEs
(
2
);
useInfoMapper
.
update
(
useInfo
,
new
QueryWrapper
<
UseInfo
>().
eq
(
"SUPERVISORY_CODE"
,
supervisionMap
.
get
(
"SUPERVISORY_CODE"
)));
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
supervisoryCodeInfo
.
setStatus
(
EquipmentCategoryEnum
.
BF
.
getCode
());
ResponseModel
<
Object
>
response
=
new
ResponseModel
<>();
ResponseModel
<
Object
>
response
=
new
ResponseModel
<>();
response
.
setDevMessage
(
e
.
getMessage
());
response
.
setDevMessage
(
e
.
getMessage
());
...
@@ -1086,7 +1090,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
...
@@ -1086,7 +1090,7 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
public
Page
<
Map
<
String
,
Object
>>
getAll
(
Map
<
String
,
Object
>
map
)
{
public
Page
<
Map
<
String
,
Object
>>
getAll
(
Map
<
String
,
Object
>
map
)
{
String
tableName
=
map
.
get
(
TABLENAME
).
toString
();
String
tableName
=
map
.
get
(
TABLENAME
).
toString
();
Assert
.
hasText
(
tableName
,
"表名不能为空"
);
Assert
.
hasText
(
tableName
,
"表名不能为空"
);
String
selectSql
=
" SELECT * FROM "
+
tableName
+
" WHERE IS_NOT_ES
<> 1 or IS_NOT_ES
IS NULL "
;
String
selectSql
=
" SELECT * FROM "
+
tableName
+
" WHERE IS_NOT_ES IS NULL "
;
Integer
number
=
ValidationUtil
.
isEmpty
(
map
.
get
(
"number"
))
?
0
:
Integer
.
valueOf
(
map
.
get
(
"number"
).
toString
());
Integer
number
=
ValidationUtil
.
isEmpty
(
map
.
get
(
"number"
))
?
0
:
Integer
.
valueOf
(
map
.
get
(
"number"
).
toString
());
Integer
size
=
ValidationUtil
.
isEmpty
(
map
.
get
(
"size"
))
?
0
:
Integer
.
valueOf
(
map
.
get
(
"size"
).
toString
());
Integer
size
=
ValidationUtil
.
isEmpty
(
map
.
get
(
"size"
))
?
0
:
Integer
.
valueOf
(
map
.
get
(
"size"
).
toString
());
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
number
,
size
);
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
number
,
size
);
...
...
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