Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
a69b4ff0
Commit
a69b4ff0
authored
Apr 19, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据场站id获取砂石类型的接口修改为从单独的子表获取
parent
c7d72ac8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
DinasTypeDaoImpl.java
...ava/com/xyst/dinas/biz/internal/dao/DinasTypeDaoImpl.java
+9
-5
Station$DinasTypeDetail.jmx
.../com/xyst/dinas/biz/datamodel/Station$DinasTypeDetail.jmx
+0
-3
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/dao/DinasTypeDaoImpl.java
View file @
a69b4ff0
...
...
@@ -91,15 +91,19 @@ public class DinasTypeDaoImpl extends AbstractBaseDao implements DinasTypeDao, D
// detachedCriteria.add(Restrictions.eq("del", false));
// detachedCriteria.add(Restrictions.eq("station.id", stationId));
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
ENTITY
,
KClass
.
class
);
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
STATION_DINAS_TYPE_DETAIL_
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
addRegionalCompanyFilter
(
detachedCriteria
);
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
detachedCriteria
.
createAlias
(
"station
s
"
,
"station"
);
detachedCriteria
.
add
(
Restrictions
.
eq
(
"station.
station.
id"
,
stationId
));
detachedCriteria
.
createAlias
(
"station"
,
"station"
);
detachedCriteria
.
add
(
Restrictions
.
eq
(
"station.id"
,
stationId
));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"station.del"
,
false
));
detachedCriteria
.
addOrder
(
Order
.
desc
(
"sortOrder"
));
return
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
);
List
<
KObject
>
byCriteria
=
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
);
ArrayList
<
KObject
>
dinasTypes
=
new
ArrayList
<>();
for
(
KObject
byCriterion
:
byCriteria
)
{
dinasTypes
.
add
(
byCriterion
.
get
(
"dinasType"
));
}
return
dinasTypes
;
}
@Override
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/datamodel/Station$DinasTypeDetail.jmx
View file @
a69b4ff0
...
...
@@ -26,9 +26,6 @@
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.json.JsonIgnore
</m:type>
</m:annotation>
</m:annotations>
<m:id>
61699557-6afc-43c2-adeb-fecfeb844536
</m:id>
<m:name>
dinasType
</m:name>
...
...
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