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
7534d3d7
Commit
7534d3d7
authored
Apr 02, 2021
by
高晓磊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采砂许可证,生产线功能提交
parent
f8a0689d
Hide whitespace changes
Inline
Side-by-side
Showing
60 changed files
with
3551 additions
and
20 deletions
+3551
-20
ProductionLineConfiguration.java
...om/xyst/dinas/biz/config/ProductionLineConfiguration.java
+47
-0
SandMiningAreaConfiguration.java
...om/xyst/dinas/biz/config/SandMiningAreaConfiguration.java
+36
-0
StationConfiguration.java
.../java/com/xyst/dinas/biz/config/StationConfiguration.java
+4
-2
ProductionLineConstant.java
...a/com/xyst/dinas/biz/constant/ProductionLineConstant.java
+10
-0
SandMiningAreaConstant.java
...a/com/xyst/dinas/biz/constant/SandMiningAreaConstant.java
+10
-0
ProductionLineDao.java
...c/main/java/com/xyst/dinas/biz/dao/ProductionLineDao.java
+26
-0
ProductionLineDaoImpl.java
...om/xyst/dinas/biz/internal/dao/ProductionLineDaoImpl.java
+136
-0
ProductionLineServiceImpl.java
...dinas/biz/internal/service/ProductionLineServiceImpl.java
+64
-0
ProductionLineService.java
...ava/com/xyst/dinas/biz/service/ProductionLineService.java
+23
-0
DinasTypeController.java
...main/java/com/xyst/dinas/biz/web/DinasTypeController.java
+2
-2
ProductionLineController.java
...java/com/xyst/dinas/biz/web/ProductionLineController.java
+125
-0
ShipInfoController.java
.../main/java/com/xyst/dinas/biz/web/ShipInfoController.java
+2
-2
StationController.java
...c/main/java/com/xyst/dinas/biz/web/StationController.java
+2
-2
spring.factories
...st.dinas.biz/src/main/resources/META-INF/spring.factories
+2
-0
ProductionLine$sequence.jmx
...urces/com/xyst/dinas/biz/bill/ProductionLine$sequence.jmx
+20
-0
ProductionLine$serial.jmx
...sources/com/xyst/dinas/biz/bill/ProductionLine$serial.jmx
+30
-0
ProductionLine.jmx
...main/resources/com/xyst/dinas/biz/bill/ProductionLine.jmx
+27
-0
SandMiningArea$sequence.jmx
...urces/com/xyst/dinas/biz/bill/SandMiningArea$sequence.jmx
+20
-0
SandMiningArea$serial.jmx
...sources/com/xyst/dinas/biz/bill/SandMiningArea$serial.jmx
+30
-0
SandMiningArea.jmx
...main/resources/com/xyst/dinas/biz/bill/SandMiningArea.jmx
+27
-0
ProductionLine.jmx
...resources/com/xyst/dinas/biz/datamodel/ProductionLine.jmx
+46
-0
SandMiningArea.jmx
...resources/com/xyst/dinas/biz/datamodel/SandMiningArea.jmx
+96
-0
ShipInfo.jmx
.../main/resources/com/xyst/dinas/biz/datamodel/ShipInfo.jmx
+9
-0
Station.jmx
...c/main/resources/com/xyst/dinas/biz/datamodel/Station.jmx
+13
-0
ProductionLine.jmx
...ain/resources/com/xyst/dinas/biz/query/ProductionLine.jmx
+51
-0
SandMiningArea.jmx
...ain/resources/com/xyst/dinas/biz/query/SandMiningArea.jmx
+190
-0
ShipInfo.jmx
.../src/main/resources/com/xyst/dinas/biz/query/ShipInfo.jmx
+10
-0
SandMiningArea.hbm.xml
...inas.biz/src/main/resources/config/SandMiningArea.hbm.xml
+83
-0
ShipInfo.hbm.xml
...xyst.dinas.biz/src/main/resources/config/ShipInfo.hbm.xml
+6
-0
Station.hbm.xml
.../xyst.dinas.biz/src/main/resources/config/Station.hbm.xml
+28
-10
DischargingConfiguration.java
...yst/dinas/production/config/DischargingConfiguration.java
+49
-0
SandMiningConfiguration.java
...xyst/dinas/production/config/SandMiningConfiguration.java
+50
-0
DischargingConstant.java
...m/xyst/dinas/production/constant/DischargingConstant.java
+10
-0
SandMiningConstant.java
...om/xyst/dinas/production/constant/SandMiningConstant.java
+10
-0
DischargingDao.java
...in/java/com/xyst/dinas/production/dao/DischargingDao.java
+25
-0
SandMiningDao.java
...ain/java/com/xyst/dinas/production/dao/SandMiningDao.java
+25
-0
DischargingDaoImpl.java
...yst/dinas/production/internal/dao/DischargingDaoImpl.java
+131
-0
SandMiningDaoImpl.java
...xyst/dinas/production/internal/dao/SandMiningDaoImpl.java
+131
-0
DischargingServiceImpl.java
...s/production/internal/service/DischargingServiceImpl.java
+59
-0
SandMiningServiceImpl.java
...as/production/internal/service/SandMiningServiceImpl.java
+59
-0
DischargingService.java
...com/xyst/dinas/production/service/DischargingService.java
+21
-0
SandMiningService.java
.../com/xyst/dinas/production/service/SandMiningService.java
+21
-0
SandMiningExpiredSchedule.java
...xyst/dinas/production/task/SandMiningExpiredSchedule.java
+27
-0
SandMiningExpiredTask.java
...com/xyst/dinas/production/task/SandMiningExpiredTask.java
+17
-0
DischargingController.java
.../com/xyst/dinas/production/web/DischargingController.java
+141
-0
SandMiningController.java
...a/com/xyst/dinas/production/web/SandMiningController.java
+156
-0
spring.factories
...s.production/src/main/resources/META-INF/spring.factories
+4
-2
Discharging$sequence.jmx
...s/com/xyst/dinas/production/bill/Discharging$sequence.jmx
+20
-0
Discharging$serial.jmx
...ces/com/xyst/dinas/production/bill/Discharging$serial.jmx
+30
-0
Discharging.jmx
.../resources/com/xyst/dinas/production/bill/Discharging.jmx
+27
-0
SandMining$sequence.jmx
...es/com/xyst/dinas/production/bill/SandMining$sequence.jmx
+20
-0
SandMining$serial.jmx
...rces/com/xyst/dinas/production/bill/SandMining$serial.jmx
+30
-0
SandMining.jmx
...n/resources/com/xyst/dinas/production/bill/SandMining.jmx
+27
-0
Discharging.jmx
...urces/com/xyst/dinas/production/datamodel/Discharging.jmx
+117
-0
SandMining$SandMiningStationDetail.jmx
...oduction/datamodel/SandMining$SandMiningStationDetail.jmx
+44
-0
SandMining.jmx
...ources/com/xyst/dinas/production/datamodel/SandMining.jmx
+272
-0
Discharging.jmx
...resources/com/xyst/dinas/production/query/Discharging.jmx
+266
-0
SandMining.jmx
.../resources/com/xyst/dinas/production/query/SandMining.jmx
+330
-0
Discharging.hbm.xml
....production/src/main/resources/config/Discharging.hbm.xml
+99
-0
SandMining.hbm.xml
...s.production/src/main/resources/config/SandMining.hbm.xml
+158
-0
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/config/ProductionLineConfiguration.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
config
;
import
com.beecode.amino.metadata.runtime.MetadataMech
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.TypeConstants
;
import
com.xyst.dinas.biz.constant.ProductionLineConstant
;
import
com.xyst.dinas.biz.dao.ProductionLineDao
;
import
com.xyst.dinas.biz.internal.dao.ProductionLineDaoImpl
;
import
com.xyst.dinas.biz.internal.service.ProductionLineServiceImpl
;
import
com.xyst.dinas.biz.service.ProductionLineService
;
import
com.xyst.dinas.biz.web.ProductionLineController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.io.ClassPathResource
;
public
class
ProductionLineConfiguration
{
@Autowired
@Qualifier
(
TypeConstants
.
CLASS_MECH
)
private
MetadataMech
<
KClass
>
typeMech
;
//ProductionLineDaoImpl相关bean配置
@Bean
public
ProductionLineDao
productionLineDaoImpl
()
{
return
new
ProductionLineDaoImpl
();
}
@Bean
public
ProductionLineService
productionLineServiceImpl
(){
return
new
ProductionLineServiceImpl
();
}
@Bean
public
ProductionLineController
productionLineController
(){
return
new
ProductionLineController
();
}
@Bean
(
ProductionLineConstant
.
ENTITY
)
public
KClass
productionLineInfoEntity
()
{
return
typeMech
.
createStaticBeanByResource
(
new
ClassPathResource
(
"/com/xyst/dinas/biz/datamodel/ProductionLine.jmx"
,
KClass
.
class
));
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/config/SandMiningAreaConfiguration.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
config
;
import
com.beecode.amino.metadata.runtime.MetadataMech
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.TypeConstants
;
import
com.xyst.dinas.biz.constant.SandMiningAreaConstant
;
import
com.xyst.dinas.biz.constant.StationConstant
;
import
com.xyst.dinas.biz.dao.PositionDao
;
import
com.xyst.dinas.biz.internal.StationInfoQueryProcessor
;
import
com.xyst.dinas.biz.internal.dao.PositionDaoImpl
;
import
com.xyst.dinas.biz.internal.dao.StationDaoImpl
;
import
com.xyst.dinas.biz.internal.service.PositionServiceImpl
;
import
com.xyst.dinas.biz.internal.service.StationServiceImpl
;
import
com.xyst.dinas.biz.service.PositionService
;
import
com.xyst.dinas.biz.web.PositionController
;
import
com.xyst.dinas.biz.web.StationController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.io.ClassPathResource
;
public
class
SandMiningAreaConfiguration
{
@Autowired
@Qualifier
(
TypeConstants
.
CLASS_MECH
)
private
MetadataMech
<
KClass
>
typeMech
;
@Bean
(
SandMiningAreaConstant
.
ENTITY
)
public
KClass
sandMiningAreaEntity
()
{
return
typeMech
.
createStaticBeanByResource
(
new
ClassPathResource
(
"/com/xyst/dinas/biz/datamodel/SandMiningArea.jmx"
,
KClass
.
class
));
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/config/StationConfiguration.java
View file @
7534d3d7
...
...
@@ -5,12 +5,14 @@ import com.beecode.bcp.type.KClass;
import
com.beecode.bcp.type.TypeConstants
;
import
com.xyst.dinas.biz.constant.StationConstant
;
import
com.xyst.dinas.biz.dao.PositionDao
;
import
com.xyst.dinas.biz.dao.StationDao
;
import
com.xyst.dinas.biz.internal.StationInfoQueryProcessor
;
import
com.xyst.dinas.biz.internal.dao.PositionDaoImpl
;
import
com.xyst.dinas.biz.internal.dao.StationDaoImpl
;
import
com.xyst.dinas.biz.internal.service.PositionServiceImpl
;
import
com.xyst.dinas.biz.internal.service.StationServiceImpl
;
import
com.xyst.dinas.biz.service.PositionService
;
import
com.xyst.dinas.biz.service.StationService
;
import
com.xyst.dinas.biz.web.PositionController
;
import
com.xyst.dinas.biz.web.StationController
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -48,11 +50,11 @@ public class StationConfiguration {
//StationDaoImpl相关bean配置
@Bean
public
StationDao
Impl
stationDaoImpl
()
{
public
StationDao
stationDao
()
{
return
new
StationDaoImpl
();
}
@Bean
public
StationService
Impl
stationServiceImpl
(){
public
StationService
stationService
(){
return
new
StationServiceImpl
();
}
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/constant/ProductionLineConstant.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
constant
;
public
interface
ProductionLineConstant
{
/**
* 实体名
*/
String
ENTITY
=
"com.xyst.dinas.biz.datamodel.ProductionLine"
;
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/constant/SandMiningAreaConstant.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
constant
;
public
interface
SandMiningAreaConstant
{
/**
* 实体名
*/
String
ENTITY
=
"com.xyst.dinas.biz.datamodel.SandMiningArea"
;
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/dao/ProductionLineDao.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
dao
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.dao.BaseDao
;
import
java.util.List
;
import
java.util.UUID
;
public
interface
ProductionLineDao
extends
BaseDao
{
KObject
load
(
UUID
id
);
Page
<
KObject
>
listProductionLineInfoPaging
(
Page
<
KObject
>
page
,
Integer
productionLineStatus
);
UUID
create
(
KObject
kObject
);
int
selectCountByName
(
String
productionLineName
);
void
deleteById
(
UUID
id
);
List
<
KObject
>
getByName
(
String
name
,
UUID
id
);
void
modify
(
KObject
kobject
);
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/dao/ProductionLineDaoImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
internal
.
dao
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.core.context.AminoContextHolder
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.internal.dao.AbstractBaseDao
;
import
com.xyst.dinas.biz.constant.ProductionLineConstant
;
import
com.xyst.dinas.biz.dao.DinasTypeDao
;
import
com.xyst.dinas.biz.dao.ProductionLineDao
;
import
org.hibernate.criterion.DetachedCriteria
;
import
org.hibernate.criterion.Order
;
import
org.hibernate.criterion.Restrictions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.orm.hibernate5.HibernateTemplate
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.UUID
;
public
class
ProductionLineDaoImpl
extends
AbstractBaseDao
implements
ProductionLineDao
,
ProductionLineConstant
{
@Autowired
private
HibernateTemplate
template
;
@Autowired
private
DinasTypeDao
dinasTypeDao
;
@Override
public
KObject
load
(
UUID
id
)
{
return
(
KObject
)
template
.
load
(
ENTITY
,
id
);
}
@Override
public
Page
<
KObject
>
listProductionLineInfoPaging
(
Page
<
KObject
>
page
,
Integer
ProductionLineStatus
)
{
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
ProductionLineConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
// detachedCriteria.add(Restrictions.eq("department.id", departmentId));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
if
(
null
!=
ProductionLineStatus
){
detachedCriteria
.
add
(
Restrictions
.
eq
(
"ProductionLineStatus"
,
ProductionLineStatus
));
}
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
addOrder
(
Order
.
desc
(
"sortOrder"
));
int
offset
=
page
.
getPageSize
()
*
(
page
.
getPageNo
()
-
1
);
page
.
setTotal
(
template
.
findByCriteria
(
detachedCriteria
).
size
());
List
<
KObject
>
list
=
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
,
offset
,
page
.
getPageSize
());
page
.
setDatas
(
list
);
return
page
;
}
@Override
public
List
<
KObject
>
getByName
(
String
name
,
UUID
id
)
{
// UUID departmentId = AminoContextHolder.getContext().getStaff().get("department").getUuid("id");
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
ProductionLineConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"name"
,
name
));
if
(
id
!=
null
){
detachedCriteria
.
add
(
Restrictions
.
ne
(
"id"
,
id
));
}
return
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
);
}
@Override
public
void
modify
(
KObject
kobject
)
{
KObject
id
=
load
(
kobject
.
getUuid
(
"id"
));
kobject
.
set
(
"creator"
,
id
.
get
(
"creator"
));
kobject
.
set
(
"createTime"
,
id
.
getDate
(
"createTime"
));
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
kobject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
false
);
template
.
merge
(
kobject
);
}
@Override
public
UUID
create
(
KObject
kObject
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
// kObject.set("department", staff.get("department"));
if
(
null
==
kObject
.
getUuid
(
"id"
)){
kObject
.
set
(
"id"
,
UUID
.
randomUUID
());
}
kObject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kObject
.
set
(
"creator"
,
staff
);
kObject
.
set
(
"createTime"
,
new
Date
());
kObject
.
set
(
"del"
,
false
);
return
((
UUID
)
template
.
save
(
kObject
));
}
@Override
public
int
selectCountByName
(
String
ProductionLineName
)
{
String
departmentId
=
AminoContextHolder
.
getContext
().
getStaff
().
get
(
"department"
).
getUuid
(
"id"
).
toString
();
return
0
;
}
@Override
public
void
deleteById
(
UUID
id
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
KObject
kobject
=
(
KObject
)
template
.
load
(
ENTITY
,
id
);
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
true
);
template
.
update
(
kobject
);
}
/**
* 抽象方法,需要实现类提供HibernateTemplate
*
* @return HibernateTemplate
*/
@Override
protected
HibernateTemplate
getHibernateTemplate
()
{
return
template
;
}
/**
* 抽象方法,需要实现类提供当前ModelName
*
* @return String
*/
@Override
protected
String
getModelName
()
{
return
ProductionLineConstant
.
ENTITY
;
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/service/ProductionLineServiceImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
internal
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.biz.dao.ProductionLineDao
;
import
com.xyst.dinas.biz.service.ProductionLineService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.UUID
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
ProductionLineServiceImpl
implements
ProductionLineService
{
@Autowired
private
ProductionLineDao
productionLineDao
;
@Override
public
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
ProductionLineStatus
)
throws
Exception
{
if
(
page
.
getPageNo
()==
0
||
page
.
getPageSize
()==
0
)
{
throw
new
Exception
(
"pageSize or offset is null"
);
}
return
productionLineDao
.
listProductionLineInfoPaging
(
page
,
ProductionLineStatus
);
}
@Override
public
UUID
addProductionLine
(
KObject
kObject
)
{
return
productionLineDao
.
create
(
kObject
);
}
@Override
public
KObject
getById
(
UUID
id
)
{
return
productionLineDao
.
load
(
id
);
}
@Override
public
int
selectCountByName
(
String
ProductionLineName
)
{
return
productionLineDao
.
selectCountByName
(
ProductionLineName
);
}
@Override
public
KObject
getByName
(
String
name
,
UUID
id
)
{
List
<
KObject
>
kObjects
=
productionLineDao
.
getByName
(
name
,
id
);
if
(
CollectionUtils
.
isEmpty
(
kObjects
)){
return
null
;
}
return
kObjects
.
get
(
0
);
}
@Override
public
void
update
(
KObject
kobject
)
{
productionLineDao
.
modify
(
kobject
);
}
@Override
public
void
deleteById
(
UUID
id
)
{
productionLineDao
.
deleteById
(
id
);
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/service/ProductionLineService.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
java.util.UUID
;
public
interface
ProductionLineService
{
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
productionLineStatus
)
throws
Exception
;
UUID
addProductionLine
(
KObject
kObject
);
KObject
getById
(
UUID
id
);
int
selectCountByName
(
String
productionLineName
);
KObject
getByName
(
String
name
,
UUID
id
);
void
update
(
KObject
kobject
);
void
deleteById
(
UUID
id
);
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/DinasTypeController.java
View file @
7534d3d7
...
...
@@ -25,8 +25,8 @@ public class DinasTypeController {
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getDinasTypeList
(
@RequestParam
(
name
=
"pageNo"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
required
=
false
)
Integer
pageSize
)
throws
Exception
{
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
)
throws
Exception
{
Page
<
KObject
>
objectPage
=
new
Page
<>();
objectPage
.
setPageNo
(
pageNo
);
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/ProductionLineController.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
biz
.
web
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.xyst.dinas.biz.constant.ProductionLineConstant
;
import
com.xyst.dinas.biz.service.ProductionLineService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.UUID
;
/**
* @author scol
*/
@RestController
()
@RequestMapping
(
value
=
"/dinasBiz/ProductionLineInfo"
)
public
class
ProductionLineController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
ProductionLineController
.
class
);
@Autowired
private
ProductionLineService
productionLineService
;
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
name
=
"productionLineStatus"
,
required
=
false
)
Integer
productionLineStatus
)
throws
Exception
{
Page
<
KObject
>
objectPage
=
new
Page
<>();
objectPage
.
setPageNo
(
pageNo
);
objectPage
.
setPageSize
(
pageSize
);
return
ResponseObj
.
success
(
"查询成功"
,
productionLineService
.
queryByPaging
(
objectPage
,
productionLineStatus
));
}
/**
* 新建生产线
* @param body
* @return ResponseObj
*/
@PostMapping
public
ResponseObj
create
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
ProductionLineConstant
.
ENTITY
,
KClass
.
class
));
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
UUID
id
=
productionLineService
.
addProductionLine
(
kobject
);
return
ResponseObj
.
success
(
"保存成功"
,
id
);
}
/**
* 修改生产线
* @param body 生产线json
* @return
*/
@PutMapping
public
ResponseObj
update
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
ProductionLineConstant
.
ENTITY
,
KClass
.
class
));
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
productionLineService
.
update
(
kobject
);
return
ResponseObj
.
success
(
"修改成功"
);
}
/**
* 根据id获取生产线
* @param id
* @return
*/
@GetMapping
(
"/{id}"
)
public
ResponseObj
getById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
ProductionLine
=
productionLineService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
ProductionLine
);
}
/**
* 根据Id删除生产线
* @param id
* @return
*/
@DeleteMapping
(
"/{id}"
)
public
ResponseObj
deleteById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
productionLineService
.
deleteById
(
id
);
return
ResponseObj
.
success
(
"删除成功"
);
}
/**
* 查询是否有重名
* @param name
* @return
*/
@GetMapping
(
"/validateName"
)
public
ResponseObj
validateName
(
@RequestParam
(
"name"
)
String
name
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
UUID
id
){
if
(
StringUtils
.
isEmpty
(
name
)){
return
ResponseObj
.
error
(
400
,
"生产线名称不能为空"
);
}
KObject
kObject
=
productionLineService
.
getByName
(
name
,
id
);
if
(
kObject
!=
null
){
return
ResponseObj
.
error
(
"生产线名称已存在!"
);
}
return
ResponseObj
.
success
();
}
}
\ No newline at end of file
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/ShipInfoController.java
View file @
7534d3d7
...
...
@@ -25,8 +25,8 @@ public class ShipInfoController {
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getDinasTypeList
(
@RequestParam
(
name
=
"pageNo"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
required
=
false
)
Integer
pageSize
,
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
name
=
"shipName"
,
required
=
false
)
String
shipName
,
@RequestParam
(
name
=
"shipCodeNum"
,
required
=
false
)
String
shipCodeNum
)
throws
Exception
{
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/StationController.java
View file @
7534d3d7
...
...
@@ -31,8 +31,8 @@ public class StationController {
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
@RequestParam
(
name
=
"pageNo"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
required
=
false
)
Integer
pageSize
,
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
name
=
"stationStatus"
,
required
=
false
)
Integer
stationStatus
)
throws
Exception
{
...
...
backend/xyst.dinas.biz/src/main/resources/META-INF/spring.factories
View file @
7534d3d7
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.xyst.dinas.biz.config.StationConfiguration,\
com.xyst.dinas.biz.config.SandMiningAreaConfiguration,\
com.xyst.dinas.biz.config.DinasTypeConfiguration,\
com.xyst.dinas.biz.config.ProductionLineConfiguration,\
com.xyst.dinas.biz.config.ShipConfiguration,\
com.xyst.dinas.biz.config.SceneConfiguration,\
com.xyst.dinas.biz.config.DinasOrganizationConfig,\
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/ProductionLine$sequence.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<id>
3059d27e-7400-4e5d-a466-ab058b7f8dc4
</id>
<name>
com.xyst.dinas.biz.bill.ProductionLine$sequence
</name>
<title>
生产线$sequence
</title>
<description>
生产线
</description>
<define>
bcp.sequence
</define>
<define-version>
1.0
</define-version>
<content>
<m:sequence>
<m:start-with>
0
</m:start-with>
<m:increment>
1
</m:increment>
<m:max>
99999
</m:max>
<m:min>
0
</m:min>
<m:cycle>
true
</m:cycle>
<m:cache-size>
10
</m:cache-size>
</m:sequence>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/ProductionLine$serial.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<id>
3424e2bc-cf17-4ab5-ab4e-0e8360d142c4
</id>
<name>
com.xyst.dinas.biz.bill.ProductionLine$serial
</name>
<title>
生产线$serial
</title>
<description>
生产线
</description>
<define>
bcp.serial
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.datamodel.ProductionLine
</dependency>
<dependency>
com.xyst.dinas.biz.bill.ProductionLine$sequence
</dependency>
<content>
<m:serial>
<m:input>
com.xyst.dinas.biz.datamodel.ProductionLine
</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>
PL
</m:value>
</m:literal>
<m:sequence>
<m:length>
5
</m:length>
<m:pad-direction>
left
</m:pad-direction>
<m:pad-string>
0
</m:pad-string>
<m:key>
com.xyst.dinas.biz.bill.ProductionLine$serial
</m:key>
<m:sequenceName>
com.xyst.dinas.biz.bill.ProductionLine$sequence
</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/ProductionLine.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<id>
6b0568ea-8d06-4b77-842d-fea287f2eb5b
</id>
<name>
com.xyst.dinas.biz.bill.ProductionLine
</name>
<title>
生产线管理
</title>
<description>
生产线管理
</description>
<define>
bcp.biz.Biztype
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.bill.ProductionLine$serial
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.ProductionLine
</dependency>
<dependency>
com.beecode.bap.biztrait.BasicBillBiztrait
</dependency>
<content>
<m:biztype>
<m:type>
com.xyst.dinas.biz.datamodel.ProductionLine
</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>
com.beecode.bap.biztrait.BasicBillBiztrait
</m:biztrait>
<m:config
type=
"xml"
>
<m:content>
<
billBasictraitConfig
><
formulas/
><
parents
><
parent
><
billCodeConfig
><
serialName
>
com.xyst.dinas.biz.bill.ProductionLine$serial
<
/serialName
><
buildTime
>
add
<
/buildTime
><
/billCodeConfig
><
/parent
><
parent
><
workflowConfig
><
workflow
><
/workflow
><
/workflowConfig
><
/parent
><
parent
><
printConfig
><
templates/
><
/printConfig
><
/parent
><
/parents
><
functionLibrarys/
><
/billBasictraitConfig
>
</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/SandMiningArea$sequence.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<id>
4da57641-c5c9-4cc0-9663-be2ea146a510
</id>
<name>
com.xyst.dinas.biz.bill.SandMiningArea$sequence
</name>
<title>
采区管理$sequence
</title>
<description>
采区管理
</description>
<define>
bcp.sequence
</define>
<define-version>
1.0
</define-version>
<content>
<m:sequence>
<m:start-with>
0
</m:start-with>
<m:increment>
1
</m:increment>
<m:max>
99999
</m:max>
<m:min>
0
</m:min>
<m:cycle>
true
</m:cycle>
<m:cache-size>
10
</m:cache-size>
</m:sequence>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/SandMiningArea$serial.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<id>
fc3e8c68-4604-4e9a-8518-36c78d7fb596
</id>
<name>
com.xyst.dinas.biz.bill.SandMiningArea$serial
</name>
<title>
采区管理$serial
</title>
<description>
采区管理
</description>
<define>
bcp.serial
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<dependency>
com.xyst.dinas.biz.bill.SandMiningArea$sequence
</dependency>
<content>
<m:serial>
<m:input>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>
MA
</m:value>
</m:literal>
<m:sequence>
<m:length>
5
</m:length>
<m:pad-direction>
left
</m:pad-direction>
<m:pad-string>
0
</m:pad-string>
<m:key>
com.xyst.dinas.biz.bill.SandMiningArea$serial
</m:key>
<m:sequenceName>
com.xyst.dinas.biz.bill.SandMiningArea$sequence
</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/bill/SandMiningArea.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<id>
ae7e04be-3b09-4f31-9033-aa5ae35a4c6e
</id>
<name>
com.xyst.dinas.biz.bill.SandMiningArea
</name>
<title>
采区管理
</title>
<description>
采区管理
</description>
<define>
bcp.biz.Biztype
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.bill.SandMiningArea$serial
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<dependency>
com.beecode.bap.biztrait.BasicBillBiztrait
</dependency>
<content>
<m:biztype>
<m:type>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>
com.beecode.bap.biztrait.BasicBillBiztrait
</m:biztrait>
<m:config
type=
"xml"
>
<m:content>
<
billBasictraitConfig
><
formulas/
><
parents
><
parent
><
billCodeConfig
><
serialName
>
com.xyst.dinas.biz.bill.SandMiningArea$serial
<
/serialName
><
buildTime
>
add
<
/buildTime
><
/billCodeConfig
><
/parent
><
parent
><
workflowConfig
><
workflow
><
/workflow
><
/workflowConfig
><
/parent
><
parent
><
printConfig
><
templates/
><
/printConfig
><
/parent
><
/parents
><
functionLibrarys/
><
/billBasictraitConfig
>
</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/datamodel/ProductionLine.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-type"
>
<specification>
1.0
</specification>
<id>
c9f6bffb-98c1-4b0b-b6ef-959fbcaab776
</id>
<name>
com.xyst.dinas.biz.datamodel.ProductionLine
</name>
<title>
生产线管理
</title>
<description>
生产线管理
</description>
<define>
bcp.type.Class
</define>
<define-version>
1.0
</define-version>
<dependency>
bcp.type.constraint.StringLength
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement
</dependency>
<dependency>
com.beecode.inz.common.datamodel.BaseInfo
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<dependency>
bcp.type.json.JsonIgnore
</dependency>
<content>
<m:class>
<m:parents>
<m:parent>
com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement
</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>
37e148ea-47af-4a01-8a41-9f0622f06f2e
</m:id>
<m:name>
name
</m:name>
<m:title>
生产线名称
</m:title>
<m:type>
string
</m:type>
<m:description>
生产线名称
</m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.json.JsonIgnore
</m:type>
</m:annotation>
</m:annotations>
<m:id>
ababc07b-381a-4d5e-9ab6-84a376aa26b8
</m:id>
<m:name>
station
</m:name>
<m:title>
所属场站
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Station
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/datamodel/SandMiningArea.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-type"
>
<specification>
1.0
</specification>
<id>
2ef34ffe-6181-40de-a414-6adfc7e8e618
</id>
<name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</name>
<title>
采区管理
</title>
<description>
采区管理
</description>
<define>
bcp.type.Class
</define>
<define-version>
1.0
</define-version>
<dependency>
bcp.type.constraint.StringLength
</dependency>
<dependency>
bcp.type.constraint.NotNull
</dependency>
<dependency>
com.beecode.inz.common.datamodel.BaseInfo
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Organization
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</dependency>
<content>
<m:class>
<m:parents>
<m:parent>
com.beecode.inz.common.datamodel.BaseInfo
</m:parent>
<m:parent>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>
15457cfc-f82d-4e99-b143-b8cee92c9fff
</m:id>
<m:name>
regionalCompany
</m:name>
<m:title>
所属区域公司
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Organization
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
acf11cb7-bf53-4ac2-81ff-b4d14bd747b6
</m:id>
<m:name>
sandMiningAreaName
</m:name>
<m:title>
采区名称
</m:title>
<m:type>
string
</m:type>
<m:description>
采区名称
</m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
c7e790b4-efc8-4cc4-99f1-324ca09579e7
</m:id>
<m:name>
sandMiningAreaType
</m:name>
<m:title>
采区类型
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
</m:annotations>
<m:id>
03de3264-23d0-4fdf-bbe4-7a9ad227a7e4
</m:id>
<m:name>
sandMiningQuantity
</m:name>
<m:title>
可采量
</m:title>
<m:type>
fixnum
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
4957fc36-a43a-48d5-b0b2-4c551d677778
</m:id>
<m:name>
stationCoordinate
</m:name>
<m:title>
采区坐标
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
300
</m:value>
</m:annotation>
</m:annotations>
<m:id>
4b5839ed-ced7-4f1a-af32-88833253f8e3
</m:id>
<m:name>
reason
</m:name>
<m:title>
备注
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations></m:annotations>
<m:id>
4bb7343d-6733-417d-9cc9-4b97270d63f6
</m:id>
<m:name>
sortOrder
</m:name>
<m:title>
排序
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/datamodel/ShipInfo.jmx
View file @
7534d3d7
...
...
@@ -145,6 +145,15 @@
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations></m:annotations>
<m:id>
7be63807-31fd-4f4b-85c1-293e433195cc
</m:id>
<m:name>
type
</m:name>
<m:title>
船类型
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/datamodel/Station.jmx
View file @
7534d3d7
...
...
@@ -125,6 +125,19 @@
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
com.beecode.bap.biztrait.datamodel.SubTableAnnotation
</m:type>
</m:annotation>
</m:annotations>
<m:id>
ae84d9e7-5b69-4651-beaa-c0f2fef7b7a2
</m:id>
<m:name>
productionLines
</m:name>
<m:title>
生产线
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.ProductionLine[]
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/query/ProductionLine.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/inz-query"
>
<specification>
1.0
</specification>
<id>
236a3c6a-031c-473f-aed9-0a4d2a1f45e9
</id>
<name>
com.xyst.dinas.biz.query.ProductionLine
</name>
<title>
生产线管理
</title>
<description>
生产线管理
</description>
<define>
inz.query.Query
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.datamodel.ProductionLine
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<content>
<m:query>
<m:type>
com.xyst.dinas.biz.datamodel.ProductionLine
</m:type>
<m:dataProcessor/>
<m:authorityItem/>
<m:fields>
<m:field>
<m:name>
id
</m:name>
<m:title>
id
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
station.id
</m:name>
<m:title>
场站
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Station
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
name
</m:name>
<m:title>
名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/query/SandMiningArea.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/inz-query"
>
<specification>
1.0
</specification>
<id>
1dce51dc-63f3-48f1-bd18-908c4085942c
</id>
<name>
com.xyst.dinas.biz.query.SandMiningArea
</name>
<title>
采区管理
</title>
<description>
采区管理
</description>
<define>
inz.query.Query
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<content>
<m:query>
<m:type>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:type>
<m:dataProcessor/>
<m:authorityItem/>
<m:innerScenes>
<m:innerScene>
<m:id>
acf11cb7-bf53-4ac2-81ff-b4d14bd747b6
</m:id>
<m:title>
全部
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.CommonAllScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
0eea20cd-9577-4d96-8d06-219663f34af8
</m:id>
<m:title>
已废弃
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.DefaultDiscardScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
06c7eaf2-efec-488f-9d4e-92fca63b8107
</m:id>
<m:title>
权限过滤
</m:title>
<m:javaImplement>
com.xyst.dinas.biz.scene.XystDinasCommonAllScene
</m:javaImplement>
<m:defaultExecute>
true
</m:defaultExecute>
<m:hide>
true
</m:hide>
</m:innerScene>
</m:innerScenes>
<m:fields>
<m:field>
<m:name>
id
</m:name>
<m:title>
id
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.id
</m:name>
<m:title>
区域公司
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.name
</m:name>
<m:title>
区域公司名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
createTime
</m:name>
<m:title>
创建时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
creator.name
</m:name>
<m:title>
创建人
</m:title>
<m:type>
string
</m:type>
<m:ref/>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifyTime
</m:name>
<m:title>
修改时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifier
</m:name>
<m:title>
修改人
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
discard
</m:name>
<m:title>
废弃
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningAreaName
</m:name>
<m:title>
采区名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningAreaType
</m:name>
<m:title>
采区类型
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningQuantity
</m:name>
<m:title>
可采量
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
reason
</m:name>
<m:title>
描述
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
stationCoordinate
</m:name>
<m:title>
采区坐标
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
del
</m:name>
<m:title>
是否删除
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sortOrder
</m:name>
<m:title>
排序
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
</metadata>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/query/ShipInfo.jmx
View file @
7534d3d7
...
...
@@ -204,6 +204,16 @@
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
type
</m:name>
<m:title>
类型
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/config/SandMiningArea.hbm.xml
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping
xmlns=
"http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"
>
<class
entity-name=
"com.xyst.dinas.biz.datamodel.SandMiningArea"
table=
"xyst_dinas_biz_sand_mining_area"
optimistic-lock=
"version"
>
<tuplizer
entity-mode=
"dynamic-map"
class=
"com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"
/>
<id
name=
"id"
type=
"uuid-binary"
column=
"id"
length=
"16"
>
<generator
class=
"assigned"
/>
</id>
<version
name=
"version"
type=
"int"
column=
"version"
/>
<property
name=
"createTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"create_time"
></column>
</property>
<many-to-one
name=
"creator"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"creator_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"modifyTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"modify_time"
></column>
</property>
<many-to-one
name=
"modifier"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"modifier_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billState"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_state"
length=
"100"
></column>
</property>
<many-to-one
name=
"bizProcess"
entity-name=
"com.beecode.bap.workflow.datamodel.BizProcess"
fetch=
"select"
>
<column
name=
"biz_process_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billCode"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_code"
length=
"200"
></column>
</property>
<property
name=
"discard"
type=
"boolean"
not-null=
"false"
>
<column
name=
"discard"
></column>
</property>
<property
name=
"del"
type=
"boolean"
not-null=
"false"
>
<column
name=
"del"
></column>
</property>
<property
name=
"approveState"
type=
"integer"
not-null=
"false"
>
<column
name=
"approve_state"
></column>
</property>
<many-to-one
name=
"regionalCompany"
entity-name=
"com.xyst.dinas.biz.datamodel.Organization"
fetch=
"select"
>
<column
name=
"regional_company"
not-null=
"false"
>
<comment>
所属部门
</comment>
</column>
</many-to-one>
<property
name=
"sandMiningAreaName"
type=
"nstring"
not-null=
"true"
>
<column
name=
"sand_mining_area_name"
length=
"30"
>
<comment>
采区名称
</comment>
</column>
</property>
<property
name=
"sandMiningQuantity"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"sand_mining_quantity"
precision=
"12"
scale=
"2"
>
<comment>
可以开采量
</comment>
</column>
</property>
<property
name=
"sandMiningAreaType"
type=
"integer"
not-null=
"true"
>
<column
name=
"sand_mining_area_type"
>
<comment>
采区类型,0流域 1可采区 2禁采区 3保留区 4综合弃沙区
</comment>
</column>
</property>
<property
name=
"stationCoordinate"
type=
"nstring"
not-null=
"false"
>
<column
name=
"station_coordinate"
>
<comment>
采区坐标区域 按照逗号和分号分隔
</comment>
</column>
</property>
<property
name=
"reason"
type=
"nstring"
not-null=
"false"
>
<column
name=
"reason"
length=
"300"
>
<comment>
备注
</comment>
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"true"
unique=
"true"
index=
"sand_mining_area_sort_index"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
backend/xyst.dinas.biz/src/main/resources/config/ShipInfo.hbm.xml
View file @
7534d3d7
...
...
@@ -85,5 +85,10 @@
<comment
>
排序
</comment>
</column>
</property>
<property
name=
"type"
type=
"int"
not-null=
"true"
>
<column
name=
"type"
length=
"1"
>
<comment
>
船只类型 0采砂 1运砂
</comment>
</column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
backend/xyst.dinas.biz/src/main/resources/config/Station.hbm.xml
View file @
7534d3d7
...
...
@@ -10,34 +10,34 @@
</id>
<version
name=
"version"
type=
"int"
column=
"version"
/>
<property
name=
"createTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"create_time"
></column
>
<column
name=
"create_time"
/
>
</property>
<many-to-one
name=
"creator"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"creator_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"modifyTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"modify_time"
></column
>
<column
name=
"modify_time"
/
>
</property>
<many-to-one
name=
"modifier"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"modifier_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billState"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_state"
length=
"100"
></column
>
<column
name=
"bill_state"
length=
"100"
/
>
</property>
<many-to-one
name=
"bizProcess"
entity-name=
"com.beecode.bap.workflow.datamodel.BizProcess"
fetch=
"select"
>
<column
name=
"biz_process_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billCode"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_code"
length=
"200"
></column
>
<column
name=
"bill_code"
length=
"200"
/
>
</property>
<property
name=
"discard"
type=
"boolean"
not-null=
"false"
>
<column
name=
"discard"
></column
>
<column
name=
"discard"
/
>
</property>
<property
name=
"del"
type=
"boolean"
not-null=
"false"
>
<column
name=
"del"
></column
>
<column
name=
"del"
/
>
</property>
<property
name=
"approveState"
type=
"integer"
not-null=
"false"
>
<column
name=
"approve_state"
></column
>
<column
name=
"approve_state"
/
>
</property>
<many-to-one
name=
"regionalCompany"
entity-name=
"com.xyst.dinas.biz.datamodel.Organization"
fetch=
"select"
>
...
...
@@ -53,19 +53,20 @@
<property
name=
"stationAddress"
type=
"nstring"
length=
"80"
not-null=
"false"
>
<column
name=
"station_address"
>
<comment>
场站地址
</comment>
</column>
</property>
<property
name=
"stationStatus"
type=
"integer"
not-null=
"true"
>
<column
name=
"station_status"
>
<comment>
场站状态,0已停业1经营中
</comment>
</column>
</property>
<bag
name=
"productionLines"
lazy=
"true"
fetch=
"select"
inverse=
"true"
>
<key
column=
"station_id"
not-null=
"true"
/>
<one-to-many
entity-name=
"com.xyst.dinas.biz.datamodel.ProductionLine"
/>
</bag>
<property
name=
"stationCoordinate"
type=
"nstring"
not-null=
"false"
>
<column
name=
"station_coordinate"
>
<comment>
场站的坐标按照逗号分隔
</comment>
</column>
</property>
<property
name=
"linkMan"
type=
"nstring"
not-null=
"false"
>
...
...
@@ -94,4 +95,20 @@
</column>
</property>
</class>
<class
entity-name=
"com.xyst.dinas.biz.datamodel.ProductionLine"
table=
"xyst_dinas_biz_production_Line"
optimistic-lock=
"version"
>
<tuplizer
entity-mode=
"dynamic-map"
class=
"com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"
/>
<id
name=
"id"
type=
"uuid-binary"
column=
"id"
length=
"16"
>
<generator
class=
"assigned"
/>
</id>
<many-to-one
name=
"station"
entity-name=
"com.xyst.dinas.biz.datamodel.ProductionLine"
fetch=
"select"
>
<column
name=
"station_id"
not-null=
"false"
>
<comment>
所属场站
</comment>
</column>
</many-to-one>
<property
name=
"name"
type=
"nstring"
not-null=
"false"
>
<column
name=
"name"
>
<comment>
名称
</comment>
</column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/config/DischargingConfiguration.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
config
;
import
com.beecode.amino.metadata.runtime.MetadataMech
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.TypeConstants
;
import
com.xyst.dinas.production.constant.DischargingConstant
;
import
com.xyst.dinas.production.internal.dao.DischargingDaoImpl
;
import
com.xyst.dinas.production.internal.service.DischargingServiceImpl
;
import
com.xyst.dinas.production.service.DischargingService
;
import
com.xyst.dinas.production.web.DischargingController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.io.ClassPathResource
;
public
class
DischargingConfiguration
{
@Autowired
@Qualifier
(
TypeConstants
.
CLASS_MECH
)
private
MetadataMech
<
KClass
>
typeMech
;
@Bean
(
DischargingConstant
.
ENTITY
)
public
KClass
dischargingEntity
()
{
return
typeMech
.
createStaticBeanByResource
(
new
ClassPathResource
(
"/com/xyst/dinas/production/datamodel/Discharging.jmx"
,
KClass
.
class
));
}
//DischargingDaoImpl相关bean配置
@Bean
public
DischargingDaoImpl
dischargingDao
()
{
return
new
DischargingDaoImpl
();
}
@Bean
public
DischargingService
dischargingService
(){
return
new
DischargingServiceImpl
();
}
@Bean
public
DischargingController
dischargingController
(){
return
new
DischargingController
();
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/config/SandMiningConfiguration.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
config
;
import
com.beecode.amino.metadata.runtime.MetadataMech
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.TypeConstants
;
import
com.xyst.dinas.production.constant.SandMiningConstant
;
import
com.xyst.dinas.production.internal.dao.SandMiningDaoImpl
;
import
com.xyst.dinas.production.internal.service.SandMiningServiceImpl
;
import
com.xyst.dinas.production.service.SandMiningService
;
import
com.xyst.dinas.production.web.SandMiningController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.core.io.ClassPathResource
;
public
class
SandMiningConfiguration
{
@Autowired
@Qualifier
(
TypeConstants
.
CLASS_MECH
)
private
MetadataMech
<
KClass
>
typeMech
;
@Bean
(
SandMiningConstant
.
ENTITY
)
public
KClass
sandMiningEntity
()
{
return
typeMech
.
createStaticBeanByResource
(
new
ClassPathResource
(
"/com/xyst/dinas/production/datamodel/SandMining.jmx"
,
KClass
.
class
));
}
//SandMiningDaoImpl相关bean配置
@Bean
public
SandMiningDaoImpl
sandMiningDao
()
{
return
new
SandMiningDaoImpl
();
}
@Bean
public
SandMiningService
sandMiningService
(){
return
new
SandMiningServiceImpl
();
}
@Bean
public
SandMiningController
sandMiningController
(){
return
new
SandMiningController
();
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/constant/DischargingConstant.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
constant
;
public
interface
DischargingConstant
{
/**
* 实体名
*/
String
ENTITY
=
"com.xyst.dinas.production.datamodel.Discharging"
;
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/constant/SandMiningConstant.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
constant
;
public
interface
SandMiningConstant
{
/**
* 实体名
*/
String
ENTITY
=
"com.xyst.dinas.production.datamodel.SandMining"
;
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/dao/DischargingDao.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
dao
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.dao.BaseDao
;
import
java.util.List
;
import
java.util.UUID
;
public
interface
DischargingDao
extends
BaseDao
{
KObject
load
(
UUID
id
);
Page
<
KObject
>
listDischargingInfoPaging
(
Page
<
KObject
>
page
,
Integer
stationStatus
);
UUID
create
(
KObject
kObject
);
void
deleteById
(
UUID
id
);
List
<
KObject
>
getByCodeNum
(
String
name
,
UUID
id
);
void
modify
(
KObject
kobject
);
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/dao/SandMiningDao.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
dao
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.dao.BaseDao
;
import
java.util.List
;
import
java.util.UUID
;
public
interface
SandMiningDao
extends
BaseDao
{
KObject
load
(
UUID
id
);
Page
<
KObject
>
listSandMiningInfoPaging
(
Page
<
KObject
>
page
,
Integer
stationStatus
);
UUID
create
(
KObject
kObject
);
void
deleteById
(
UUID
id
);
List
<
KObject
>
getByCodeNum
(
String
name
,
UUID
id
);
void
modify
(
KObject
kobject
);
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/internal/dao/DischargingDaoImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
internal
.
dao
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.core.context.AminoContextHolder
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.internal.dao.AbstractBaseDao
;
import
com.xyst.dinas.biz.dao.DinasTypeDao
;
import
com.xyst.dinas.production.constant.DischargingConstant
;
import
com.xyst.dinas.production.dao.DischargingDao
;
import
org.hibernate.criterion.DetachedCriteria
;
import
org.hibernate.criterion.Order
;
import
org.hibernate.criterion.Restrictions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.orm.hibernate5.HibernateTemplate
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.UUID
;
/**
* @author scol
*/
public
class
DischargingDaoImpl
extends
AbstractBaseDao
implements
DischargingDao
,
DischargingConstant
{
@Autowired
private
HibernateTemplate
template
;
@Autowired
private
DinasTypeDao
dinasTypeDao
;
@Override
public
KObject
load
(
UUID
id
)
{
return
(
KObject
)
template
.
load
(
ENTITY
,
id
);
}
@Override
public
Page
<
KObject
>
listDischargingInfoPaging
(
Page
<
KObject
>
page
,
Integer
dischargingStatus
)
{
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
DischargingConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
if
(
null
!=
dischargingStatus
){
detachedCriteria
.
add
(
Restrictions
.
eq
(
"status"
,
dischargingStatus
));
}
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
addOrder
(
Order
.
desc
(
"sortOrder"
));
int
offset
=
page
.
getPageSize
()
*
(
page
.
getPageNo
()
-
1
);
page
.
setTotal
(
template
.
findByCriteria
(
detachedCriteria
).
size
());
List
<
KObject
>
list
=
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
,
offset
,
page
.
getPageSize
());
page
.
setDatas
(
list
);
return
page
;
}
@Override
public
List
<
KObject
>
getByCodeNum
(
String
permitCode
,
UUID
id
)
{
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
DischargingConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"permitCode"
,
permitCode
));
if
(
id
!=
null
){
detachedCriteria
.
add
(
Restrictions
.
ne
(
"id"
,
id
));
}
return
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
);
}
@Override
public
void
modify
(
KObject
kobject
)
{
KObject
id
=
load
(
kobject
.
getUuid
(
"id"
));
kobject
.
set
(
"creator"
,
id
.
get
(
"creator"
));
kobject
.
set
(
"createTime"
,
id
.
getDate
(
"createTime"
));
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
kobject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
false
);
template
.
merge
(
kobject
);
}
@Override
public
UUID
create
(
KObject
kObject
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
// kObject.set("department", staff.get("department"));
if
(
null
==
kObject
.
getUuid
(
"id"
)){
kObject
.
set
(
"id"
,
UUID
.
randomUUID
());
}
kObject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kObject
.
set
(
"creator"
,
staff
);
kObject
.
set
(
"createTime"
,
new
Date
());
kObject
.
set
(
"del"
,
false
);
return
((
UUID
)
template
.
save
(
kObject
));
}
@Override
public
void
deleteById
(
UUID
id
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
KObject
kobject
=
(
KObject
)
template
.
load
(
ENTITY
,
id
);
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
true
);
template
.
update
(
kobject
);
}
/**
* 抽象方法,需要实现类提供HibernateTemplate
*
* @return HibernateTemplate
*/
@Override
protected
HibernateTemplate
getHibernateTemplate
()
{
return
template
;
}
/**
* 抽象方法,需要实现类提供当前ModelName
*
* @return String
*/
@Override
protected
String
getModelName
()
{
return
DischargingConstant
.
ENTITY
;
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/internal/dao/SandMiningDaoImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
internal
.
dao
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.core.context.AminoContextHolder
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.internal.dao.AbstractBaseDao
;
import
com.xyst.dinas.biz.dao.DinasTypeDao
;
import
com.xyst.dinas.production.constant.SandMiningConstant
;
import
com.xyst.dinas.production.dao.SandMiningDao
;
import
org.hibernate.criterion.DetachedCriteria
;
import
org.hibernate.criterion.Order
;
import
org.hibernate.criterion.Restrictions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.orm.hibernate5.HibernateTemplate
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.UUID
;
/**
* @author scol
*/
public
class
SandMiningDaoImpl
extends
AbstractBaseDao
implements
SandMiningDao
,
SandMiningConstant
{
@Autowired
private
HibernateTemplate
template
;
@Autowired
private
DinasTypeDao
dinasTypeDao
;
@Override
public
KObject
load
(
UUID
id
)
{
return
(
KObject
)
template
.
load
(
ENTITY
,
id
);
}
@Override
public
Page
<
KObject
>
listSandMiningInfoPaging
(
Page
<
KObject
>
page
,
Integer
sandMiningStatus
)
{
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
SandMiningConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
if
(
null
!=
sandMiningStatus
){
detachedCriteria
.
add
(
Restrictions
.
eq
(
"status"
,
sandMiningStatus
));
}
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
addOrder
(
Order
.
desc
(
"sortOrder"
));
int
offset
=
page
.
getPageSize
()
*
(
page
.
getPageNo
()
-
1
);
page
.
setTotal
(
template
.
findByCriteria
(
detachedCriteria
).
size
());
List
<
KObject
>
list
=
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
,
offset
,
page
.
getPageSize
());
page
.
setDatas
(
list
);
return
page
;
}
@Override
public
List
<
KObject
>
getByCodeNum
(
String
permitCode
,
UUID
id
)
{
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
SandMiningConstant
.
ENTITY
,
KClass
.
class
);
DetachedCriteria
detachedCriteria
=
DetachedCriteria
.
forEntityName
(
bean
.
getName
());
KObject
currentLoginRegionalCompany
=
dinasTypeDao
.
getCurrentLoginRegionalCompany
();
detachedCriteria
.
add
(
Restrictions
.
eq
(
"regionalCompany.id"
,
currentLoginRegionalCompany
.
getUuid
(
"id"
)));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"del"
,
false
));
detachedCriteria
.
add
(
Restrictions
.
eq
(
"permitCode"
,
permitCode
));
if
(
id
!=
null
){
detachedCriteria
.
add
(
Restrictions
.
ne
(
"id"
,
id
));
}
return
(
List
<
KObject
>)
template
.
findByCriteria
(
detachedCriteria
);
}
@Override
public
void
modify
(
KObject
kobject
)
{
KObject
id
=
load
(
kobject
.
getUuid
(
"id"
));
kobject
.
set
(
"creator"
,
id
.
get
(
"creator"
));
kobject
.
set
(
"createTime"
,
id
.
getDate
(
"createTime"
));
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
kobject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
false
);
template
.
merge
(
kobject
);
}
@Override
public
UUID
create
(
KObject
kObject
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
// kObject.set("department", staff.get("department"));
if
(
null
==
kObject
.
getUuid
(
"id"
)){
kObject
.
set
(
"id"
,
UUID
.
randomUUID
());
}
kObject
.
set
(
"regionalCompany"
,
dinasTypeDao
.
getCurrentLoginRegionalCompany
());
kObject
.
set
(
"creator"
,
staff
);
kObject
.
set
(
"createTime"
,
new
Date
());
kObject
.
set
(
"del"
,
false
);
return
((
UUID
)
template
.
save
(
kObject
));
}
@Override
public
void
deleteById
(
UUID
id
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
KObject
kobject
=
(
KObject
)
template
.
load
(
ENTITY
,
id
);
kobject
.
set
(
"modifyTime"
,
new
Date
());
kobject
.
set
(
"modifier"
,
staff
);
kobject
.
set
(
"del"
,
true
);
template
.
update
(
kobject
);
}
/**
* 抽象方法,需要实现类提供HibernateTemplate
*
* @return HibernateTemplate
*/
@Override
protected
HibernateTemplate
getHibernateTemplate
()
{
return
template
;
}
/**
* 抽象方法,需要实现类提供当前ModelName
*
* @return String
*/
@Override
protected
String
getModelName
()
{
return
SandMiningConstant
.
ENTITY
;
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/internal/service/DischargingServiceImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
internal
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.production.dao.DischargingDao
;
import
com.xyst.dinas.production.service.DischargingService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.UUID
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
DischargingServiceImpl
implements
DischargingService
{
@Autowired
private
DischargingDao
dischargingDao
;
@Override
public
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
DischargingStatus
)
throws
Exception
{
if
(
page
.
getPageNo
()==
0
||
page
.
getPageSize
()==
0
)
{
throw
new
Exception
(
"pageSize or offset is null"
);
}
return
dischargingDao
.
listDischargingInfoPaging
(
page
,
DischargingStatus
);
}
@Override
public
UUID
addDischarging
(
KObject
kObject
)
{
return
dischargingDao
.
create
(
kObject
);
}
@Override
public
KObject
getById
(
UUID
id
)
{
return
dischargingDao
.
load
(
id
);
}
@Override
public
KObject
getByCodeNum
(
String
name
,
UUID
id
)
{
List
<
KObject
>
kObjects
=
dischargingDao
.
getByCodeNum
(
name
,
id
);
if
(
CollectionUtils
.
isEmpty
(
kObjects
)){
return
null
;
}
return
kObjects
.
get
(
0
);
}
@Override
public
void
update
(
KObject
kobject
)
{
dischargingDao
.
modify
(
kobject
);
}
@Override
public
void
deleteById
(
UUID
id
)
{
dischargingDao
.
deleteById
(
id
);
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/internal/service/SandMiningServiceImpl.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
internal
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.production.dao.SandMiningDao
;
import
com.xyst.dinas.production.service.SandMiningService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
import
java.util.UUID
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
SandMiningServiceImpl
implements
SandMiningService
{
@Autowired
private
SandMiningDao
sandMiningDao
;
@Override
public
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
sandMiningStatus
)
throws
Exception
{
if
(
page
.
getPageNo
()==
0
||
page
.
getPageSize
()==
0
)
{
throw
new
Exception
(
"pageSize or offset is null"
);
}
return
sandMiningDao
.
listSandMiningInfoPaging
(
page
,
sandMiningStatus
);
}
@Override
public
UUID
addSandMining
(
KObject
kObject
)
{
return
sandMiningDao
.
create
(
kObject
);
}
@Override
public
KObject
getById
(
UUID
id
)
{
return
sandMiningDao
.
load
(
id
);
}
@Override
public
KObject
getByCodeNum
(
String
name
,
UUID
id
)
{
List
<
KObject
>
kObjects
=
sandMiningDao
.
getByCodeNum
(
name
,
id
);
if
(
CollectionUtils
.
isEmpty
(
kObjects
)){
return
null
;
}
return
kObjects
.
get
(
0
);
}
@Override
public
void
update
(
KObject
kobject
)
{
sandMiningDao
.
modify
(
kobject
);
}
@Override
public
void
deleteById
(
UUID
id
)
{
sandMiningDao
.
deleteById
(
id
);
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/service/DischargingService.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
java.util.UUID
;
public
interface
DischargingService
{
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
dischargingStatus
)
throws
Exception
;
UUID
addDischarging
(
KObject
kObject
);
KObject
getById
(
UUID
id
);
KObject
getByCodeNum
(
String
name
,
UUID
id
);
void
update
(
KObject
kobject
);
void
deleteById
(
UUID
id
);
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/service/SandMiningService.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
service
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
java.util.UUID
;
public
interface
SandMiningService
{
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
sandMiningStatus
)
throws
Exception
;
UUID
addSandMining
(
KObject
kObject
);
KObject
getById
(
UUID
id
);
KObject
getByCodeNum
(
String
name
,
UUID
id
);
void
update
(
KObject
kobject
);
void
deleteById
(
UUID
id
);
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/task/SandMiningExpiredSchedule.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
task
;
import
com.beecode.amino.metadata.context.ApplicationMetadataContext
;
import
com.beecode.amino.metadata.runtime.ServiceInitializer
;
import
com.beecode.bap.scheduler.entity.ScheduleDetail
;
import
com.beecode.bap.scheduler.service.ScheduleService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.Optional
;
public
class
SandMiningExpiredSchedule
implements
ServiceInitializer
{
@Autowired
private
ScheduleService
scheduleService
;
private
String
SAND_MINING_EXPIRED_TASK
=
"SandMiningExpiredTask"
;
@Override
public
void
init
(
ApplicationMetadataContext
applicationMetadataContext
)
{
Optional
<
ScheduleDetail
>
byName
=
scheduleService
.
findByName
(
SAND_MINING_EXPIRED_TASK
);
if
(
byName
.
isPresent
()){
}
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/task/SandMiningExpiredTask.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
task
;
import
com.beecode.bap.scheduler.core.Task
;
import
com.beecode.bap.scheduler.core.TaskContext
;
import
org.springframework.beans.factory.annotation.Autowired
;
/**
* @author scol
*/
public
class
SandMiningExpiredTask
implements
Task
{
@Override
public
void
execute
(
TaskContext
taskContext
)
{
}
}
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/web/DischargingController.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
web
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.xyst.dinas.production.constant.DischargingConstant
;
import
com.xyst.dinas.production.service.DischargingService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.UUID
;
/**
* @author scol
*/
@RestController
()
@RequestMapping
(
value
=
"/production/discharging"
)
public
class
DischargingController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DischargingController
.
class
);
@Autowired
private
DischargingService
dischargingService
;
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
name
=
"dischargingStatus"
,
required
=
false
)
Integer
dischargingStatus
)
throws
Exception
{
Page
<
KObject
>
objectPage
=
new
Page
<>();
objectPage
.
setPageNo
(
pageNo
);
objectPage
.
setPageSize
(
pageSize
);
return
ResponseObj
.
success
(
"查询成功"
,
dischargingService
.
queryByPaging
(
objectPage
,
dischargingStatus
));
}
/**
* 新建采砂许可证
* @param body
* @return ResponseObj
*/
@PostMapping
public
ResponseObj
create
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
DischargingConstant
.
ENTITY
,
KClass
.
class
));
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
UUID
id
=
dischargingService
.
addDischarging
(
kobject
);
return
ResponseObj
.
success
(
"保存成功"
,
id
);
}
/**
* 修改采砂许可证
* @param body 采砂许可证json
* @return
*/
@PutMapping
public
ResponseObj
update
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
DischargingConstant
.
ENTITY
,
KClass
.
class
));
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"DischargingName"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证编号不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"DischargingAddress"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证地址不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"DischargingCoordinate"
))){
return
ResponseObj
.
error
(
400
,
"坐标点不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"linkMan"
))){
return
ResponseObj
.
error
(
400
,
"联系人不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"telephone"
))){
return
ResponseObj
.
error
(
400
,
"联系人电话不能为空"
);
}
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
dischargingService
.
update
(
kobject
);
return
ResponseObj
.
success
(
"修改成功"
);
}
/**
* 根据id获取采砂许可证
* @param id
* @return
*/
@GetMapping
(
"/{id}"
)
public
ResponseObj
getById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
discharging
=
dischargingService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
discharging
);
}
/**
* 根据Id删除采砂许可证
* @param id
* @return
*/
@DeleteMapping
(
"/{id}"
)
public
ResponseObj
deleteById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
dischargingService
.
deleteById
(
id
);
return
ResponseObj
.
success
(
"删除成功"
);
}
/**
* 查询是否有重名
* @param codeNum
* @return
*/
@GetMapping
(
"/validateCodeNum"
)
public
ResponseObj
validateName
(
@RequestParam
(
"codeNum"
)
String
codeNum
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
UUID
id
){
if
(
StringUtils
.
isEmpty
(
codeNum
)){
return
ResponseObj
.
error
(
400
,
"采砂许可证编号不能为空"
);
}
KObject
kObject
=
dischargingService
.
getByCodeNum
(
codeNum
,
id
);
if
(
kObject
!=
null
){
return
ResponseObj
.
error
(
"采砂许可证编号已存在!"
);
}
return
ResponseObj
.
success
();
}
}
\ No newline at end of file
backend/xyst.dinas.production/src/main/java/com/xyst/dinas/production/web/SandMiningController.java
0 → 100644
View file @
7534d3d7
package
com
.
xyst
.
dinas
.
production
.
web
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.xyst.dinas.production.constant.SandMiningConstant
;
import
com.xyst.dinas.production.service.SandMiningService
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.UUID
;
/**
* @author scol
*/
@RestController
()
@RequestMapping
(
value
=
"/production/sandMining"
)
public
class
SandMiningController
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
SandMiningController
.
class
);
@Autowired
private
SandMiningService
sandMiningService
;
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
@RequestParam
(
name
=
"pageNo"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
)
Integer
pageSize
,
@RequestParam
(
name
=
"sandMiningStatus"
,
required
=
false
)
Integer
SandMiningStatus
)
throws
Exception
{
Page
<
KObject
>
objectPage
=
new
Page
<>();
objectPage
.
setPageNo
(
pageNo
);
objectPage
.
setPageSize
(
pageSize
);
return
ResponseObj
.
success
(
"查询成功"
,
sandMiningService
.
queryByPaging
(
objectPage
,
SandMiningStatus
));
}
/**
* 新建采砂许可证
* @param body
* @return ResponseObj
*/
@PostMapping
public
ResponseObj
create
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
SandMiningConstant
.
ENTITY
,
KClass
.
class
));
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningName"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证编号不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningAddress"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证地址不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningCoordinate"
))){
return
ResponseObj
.
error
(
400
,
"坐标点不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"linkMan"
))){
return
ResponseObj
.
error
(
400
,
"联系人不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"telephone"
))){
return
ResponseObj
.
error
(
400
,
"联系人电话不能为空"
);
}
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
UUID
id
=
sandMiningService
.
addSandMining
(
kobject
);
return
ResponseObj
.
success
(
"保存成功"
,
id
);
}
/**
* 修改采砂许可证
* @param body 采砂许可证json
* @return
*/
@PutMapping
public
ResponseObj
update
(
@RequestBody
String
body
){
KObject
kobject
=
JSONObjectUtils
.
toObject
(
body
,
Amino
.
getApplicationMetadataContext
().
getBean
(
SandMiningConstant
.
ENTITY
,
KClass
.
class
));
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningName"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证编号不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningAddress"
))){
return
ResponseObj
.
error
(
400
,
"采砂许可证地址不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"SandMiningCoordinate"
))){
return
ResponseObj
.
error
(
400
,
"坐标点不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"linkMan"
))){
return
ResponseObj
.
error
(
400
,
"联系人不能为空"
);
}
if
(
StringUtils
.
isEmpty
(
kobject
.
getString
(
"telephone"
))){
return
ResponseObj
.
error
(
400
,
"联系人电话不能为空"
);
}
if
(
kobject
.
getUuid
(
"id"
)
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
sandMiningService
.
update
(
kobject
);
return
ResponseObj
.
success
(
"修改成功"
);
}
/**
* 根据id获取采砂许可证
* @param id
* @return
*/
@GetMapping
(
"/{id}"
)
public
ResponseObj
getById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
SandMining
=
sandMiningService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
SandMining
);
}
/**
* 根据Id删除采砂许可证
* @param id
* @return
*/
@DeleteMapping
(
"/{id}"
)
public
ResponseObj
deleteById
(
@PathVariable
(
"id"
)
UUID
id
){
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
sandMiningService
.
deleteById
(
id
);
return
ResponseObj
.
success
(
"删除成功"
);
}
/**
* 查询是否有重名
* @param codeNum
* @return
*/
@GetMapping
(
"/validateCodeNum"
)
public
ResponseObj
validateName
(
@RequestParam
(
"codeNum"
)
String
codeNum
,
@RequestParam
(
value
=
"id"
,
required
=
false
)
UUID
id
){
if
(
StringUtils
.
isEmpty
(
codeNum
)){
return
ResponseObj
.
error
(
400
,
"采砂许可证编号不能为空"
);
}
KObject
kObject
=
sandMiningService
.
getByCodeNum
(
codeNum
,
id
);
if
(
kObject
!=
null
){
return
ResponseObj
.
error
(
"采砂许可证编号已存在!"
);
}
return
ResponseObj
.
success
();
}
}
\ No newline at end of file
backend/xyst.dinas.production/src/main/resources/META-INF/spring.factories
View file @
7534d3d7
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=
\ No newline at end of file
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.xyst.dinas.production.config.SandMiningConfiguration,\
com.xyst.dinas.production.config.DischargingConfiguration
\ No newline at end of file
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/Discharging$sequence.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<id>
793a8da2-d9f6-406c-8568-8463c1b5d2ea
</id>
<name>
com.xyst.dinas.production.bill.Discharging$sequence
</name>
<title>
接驳管理$sequence
</title>
<description>
接驳管理
</description>
<define>
bcp.sequence
</define>
<define-version>
1.0
</define-version>
<content>
<m:sequence>
<m:start-with>
0
</m:start-with>
<m:increment>
1
</m:increment>
<m:max>
99999
</m:max>
<m:min>
0
</m:min>
<m:cycle>
true
</m:cycle>
<m:cache-size>
10
</m:cache-size>
</m:sequence>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/Discharging$serial.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<id>
ad676c88-4172-498d-b4fc-fc9ca806b2b1
</id>
<name>
com.xyst.dinas.production.bill.Discharging$serial
</name>
<title>
采砂许可$serial
</title>
<description>
采砂许可
</description>
<define>
bcp.serial
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.datamodel.Discharging
</dependency>
<dependency>
com.xyst.dinas.production.bill.Discharging$sequence
</dependency>
<content>
<m:serial>
<m:input>
com.xyst.dinas.production.datamodel.Discharging
</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>
DC
</m:value>
</m:literal>
<m:sequence>
<m:length>
5
</m:length>
<m:pad-direction>
left
</m:pad-direction>
<m:pad-string>
0
</m:pad-string>
<m:key>
com.xyst.dinas.production.bill.Discharging$serial
</m:key>
<m:sequenceName>
com.xyst.dinas.production.bill.Discharging$sequence
</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/Discharging.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<id>
0b47b2c0-b35e-4edb-9e3a-1881fb693fcb
</id>
<name>
com.xyst.dinas.production.bill.Discharging
</name>
<title>
接驳管理
</title>
<description>
接驳管理
</description>
<define>
bcp.biz.Biztype
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.bill.Discharging$serial
</dependency>
<dependency>
com.xyst.dinas.production.datamodel.Discharging
</dependency>
<dependency>
com.beecode.bap.biztrait.BasicBillBiztrait
</dependency>
<content>
<m:biztype>
<m:type>
com.xyst.dinas.production.datamodel.Discharging
</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>
com.beecode.bap.biztrait.BasicBillBiztrait
</m:biztrait>
<m:config
type=
"xml"
>
<m:content>
<
billBasictraitConfig
><
formulas/
><
parents
><
parent
><
billCodeConfig
><
serialName
>
com.xyst.dinas.production.bill.Discharging$serial
<
/serialName
><
buildTime
>
add
<
/buildTime
><
/billCodeConfig
><
/parent
><
parent
><
workflowConfig
><
workflow
><
/workflow
><
/workflowConfig
><
/parent
><
parent
><
printConfig
><
templates/
><
/printConfig
><
/parent
><
/parents
><
functionLibrarys/
><
/billBasictraitConfig
>
</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/SandMining$sequence.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-sequence"
>
<specification>
1.0
</specification>
<id>
8933e1ff-397e-4e72-b883-058fd6d7c91f
</id>
<name>
com.xyst.dinas.production.bill.SandMining$sequence
</name>
<title>
采砂许可$sequence
</title>
<description>
采砂许可
</description>
<define>
bcp.sequence
</define>
<define-version>
1.0
</define-version>
<content>
<m:sequence>
<m:start-with>
0
</m:start-with>
<m:increment>
1
</m:increment>
<m:max>
99999
</m:max>
<m:min>
0
</m:min>
<m:cycle>
true
</m:cycle>
<m:cache-size>
10
</m:cache-size>
</m:sequence>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/SandMining$serial.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-serial"
>
<specification>
1.0
</specification>
<id>
db0a707e-70e1-4e8f-a1b3-2d6580829f66
</id>
<name>
com.xyst.dinas.production.bill.SandMining$serial
</name>
<title>
采砂许可$serial
</title>
<description>
采砂许可
</description>
<define>
bcp.serial
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.datamodel.SandMining
</dependency>
<dependency>
com.xyst.dinas.production.bill.SandMining$sequence
</dependency>
<content>
<m:serial>
<m:input>
com.xyst.dinas.production.datamodel.SandMining
</m:input>
<m:functionLibrarys/>
<m:segments>
<m:literal>
<m:value>
SP
</m:value>
</m:literal>
<m:sequence>
<m:length>
5
</m:length>
<m:pad-direction>
left
</m:pad-direction>
<m:pad-string>
0
</m:pad-string>
<m:key>
com.xyst.dinas.production.bill.SandMining$serial
</m:key>
<m:sequenceName>
com.xyst.dinas.production.bill.SandMining$sequence
</m:sequenceName>
</m:sequence>
</m:segments>
</m:serial>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/bill/SandMining.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-biztype"
>
<specification>
1.0
</specification>
<id>
77191a22-ff48-4dab-89dd-780c95c287e1
</id>
<name>
com.xyst.dinas.production.bill.SandMining
</name>
<title>
采砂许可
</title>
<description>
采砂许可
</description>
<define>
bcp.biz.Biztype
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.bill.SandMining$serial
</dependency>
<dependency>
com.xyst.dinas.production.datamodel.SandMining
</dependency>
<dependency>
com.beecode.bap.biztrait.BasicBillBiztrait
</dependency>
<content>
<m:biztype>
<m:type>
com.xyst.dinas.production.datamodel.SandMining
</m:type>
<m:inheritances>
<m:inheritance>
<m:biztrait>
com.beecode.bap.biztrait.BasicBillBiztrait
</m:biztrait>
<m:config
type=
"xml"
>
<m:content>
<
billBasictraitConfig
><
formulas/
><
parents
><
parent
><
billCodeConfig
><
serialName
>
com.xyst.dinas.production.bill.SandMining$serial
<
/serialName
><
buildTime
>
add
<
/buildTime
><
/billCodeConfig
><
/parent
><
parent
><
workflowConfig
><
workflow
><
/workflow
><
/workflowConfig
><
/parent
><
parent
><
printConfig
><
templates/
><
/printConfig
><
/parent
><
/parents
><
functionLibrarys/
><
/billBasictraitConfig
>
</m:content>
</m:config>
</m:inheritance>
</m:inheritances>
<m:methodAuthorityItems/>
</m:biztype>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/datamodel/Discharging.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-type"
>
<specification>
1.0
</specification>
<id>
9b828350-feb2-41f4-a695-545512f9a7f0
</id>
<name>
com.xyst.dinas.production.datamodel.Discharging
</name>
<title>
接驳管理
</title>
<description>
接驳管理
</description>
<define>
bcp.type.Class
</define>
<define-version>
1.0
</define-version>
<dependency>
bcp.type.constraint.StringLength
</dependency>
<dependency>
com.beecode.inz.common.datamodel.BaseInfo
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.SubTableAnnotation
</dependency>
<dependency>
com.beecode.bap.staff.datamodel.Staff
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Organization
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.ShipInfo
</dependency>
<content>
<m:class>
<m:parents>
<m:parent>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</m:parent>
<m:parent>
com.beecode.inz.common.datamodel.BaseInfo
</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>
f333bd4c-6a73-4266-94e9-728f18d3b338
</m:id>
<m:name>
regionalCompany
</m:name>
<m:title>
区域公司
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Organization
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
a0e1a94e-02e9-447d-b5c6-11b268d0071a
</m:id>
<m:name>
sandMiningArea
</m:name>
<m:title>
采砂区域
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
0bbee8c2-553c-4888-bc51-acdd3d5bb4e5
</m:id>
<m:name>
station
</m:name>
<m:title>
场站
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Station
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
63a45090-98b2-44e4-bdb7-88b67559dc16
</m:id>
<m:name>
sandMiningShip
</m:name>
<m:title>
采砂船
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
63a45090-98b2-44e4-bdb7-88b67559dc16
</m:id>
<m:name>
transportShip
</m:name>
<m:title>
运砂船
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
21ed23ef-6354-4cbe-bb47-dc9d98e84aa6
</m:id>
<m:name>
dischargingTime
</m:name>
<m:title>
上岸时间
</m:title>
<m:type>
datetime
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
d57b6892-5d68-4974-a011-eae7480c9bb1
</m:id>
<m:name>
dischargingWeight
</m:name>
<m:title>
上岸砂石量
</m:title>
<m:type>
fixnum
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
</m:annotations>
<m:id>
54d48556-0f90-45b5-a11e-78a5128d8b94
</m:id>
<m:name>
dischargingRegistrant
</m:name>
<m:title>
接驳人员
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
</m:annotations>
<m:id>
f622f9a4-f366-4a18-859d-7becc5c71bc3
</m:id>
<m:name>
type
</m:name>
<m:title>
类型
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/datamodel/SandMining$SandMiningStationDetail.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-type"
>
<specification>
1.0
</specification>
<id>
5eb36512-4772-4397-a40e-1d257f005278
</id>
<name>
com.xyst.dinas.production.datamodel.SandMining$SandMiningStationDetail
</name>
<title>
采砂许可证场站表
</title>
<define>
bcp.type.Class
</define>
<define-version>
1.0
</define-version>
<dependency>
com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<dependency>
com.xyst.dinas.production.datamodel.SandMining
</dependency>
<dependency>
bcp.type.json.JsonIgnore
</dependency>
<content>
<m:class>
<m:parents>
<m:parent>
com.beecode.bap.biztrait.datamodel.StoreSubTableRequirement
</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>
e43b0c7a-d128-4b74-87c5-b6aade260ef9
</m:id>
<m:name>
station
</m:name>
<m:title>
场站
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Station
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.json.JsonIgnore
</m:type>
</m:annotation>
</m:annotations>
<m:id>
23fc82e2-e7b6-49fc-96cc-bb947ba2cc99
</m:id>
<m:name>
sandMining
</m:name>
<m:title>
采砂许可证
</m:title>
<m:type>
com.xyst.dinas.production.datamodel.SandMining
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/datamodel/SandMining.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-type"
>
<specification>
1.0
</specification>
<id>
ff86d07c-4e0f-4184-a1da-40bd3a286d7e
</id>
<name>
com.xyst.dinas.production.datamodel.SandMining
</name>
<title>
采砂许可证
</title>
<description>
采砂许可证
</description>
<define>
bcp.type.Class
</define>
<define-version>
1.0
</define-version>
<dependency>
bcp.type.constraint.StringLength
</dependency>
<dependency>
com.beecode.inz.common.datamodel.BaseInfo
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.SubTableAnnotation
</dependency>
<dependency>
com.beecode.bap.staff.datamodel.Staff
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Organization
</dependency>
<dependency>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<content>
<m:class>
<m:parents>
<m:parent>
com.beecode.bap.biztrait.datamodel.BasicBillRequirement
</m:parent>
<m:parent>
com.beecode.inz.common.datamodel.BaseInfo
</m:parent>
</m:parents>
<m:attributes>
<m:attribute>
<m:annotations/>
<m:id>
9efa7699-1864-4331-81ab-87dfa0f8e29b
</m:id>
<m:name>
regionalCompany
</m:name>
<m:title>
区域公司
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Organization
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
63a45090-98b2-44e4-bdb7-88b67559dc16
</m:id>
<m:name>
sandMiningArea
</m:name>
<m:title>
采砂区域
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
30
</m:value>
</m:annotation>
</m:annotations>
<m:id>
068ea147-bec9-4467-b55e-3e0a0a5400f6
</m:id>
<m:name>
permitCode
</m:name>
<m:title>
许可证编号
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
84990ac9-d6a0-4849-85f4-a8380e06819f
</m:id>
<m:name>
miningNature
</m:name>
<m:title>
开采性质
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
104be55f-2033-488f-94e7-3e433b410b86
</m:id>
<m:name>
sandMiningStart
</m:name>
<m:title>
可采期开始时间
</m:title>
<m:type>
datetime
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
39f49ff1-80a8-42a1-a059-57f822163168
</m:id>
<m:name>
sandMiningEnd
</m:name>
<m:title>
可采期结束时间
</m:title>
<m:type>
datetime
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
5f3feb71-3a11-4289-a66e-f0caedd0e895
</m:id>
<m:name>
workStartTime
</m:name>
<m:title>
作业开始时间
</m:title>
<m:type>
datetime
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
f84a6820-9abb-49cf-ac3f-5843f5c81140
</m:id>
<m:name>
workEndTime
</m:name>
<m:title>
作业结束时间
</m:title>
<m:type>
datetime
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
</m:annotations>
<m:id>
8412f643-4587-4957-a661-4dd6547f2cbc
</m:id>
<m:name>
miningVolume
</m:name>
<m:title>
开采量
</m:title>
<m:type>
fixnum
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
f36e7b70-d8ef-4473-8dcf-f295b3380267
</m:id>
<m:name>
miningDepth
</m:name>
<m:title>
开采深度
</m:title>
<m:type>
fixnum
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
com.beecode.bap.biztrait.datamodel.SubTableAnnotation
</m:type>
</m:annotation>
</m:annotations>
<m:id>
923fc243-b92b-45d5-8876-a8cad89b5ac5
</m:id>
<m:name>
stationDetails
</m:name>
<m:title>
包含场站
</m:title>
<m:type>
com.xyst.dinas.biz.datamodel.Station[]
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
5c6a5607-729d-4769-82f0-e3e9b3003fda
</m:id>
<m:name>
sandMiningRange
</m:name>
<m:title>
采砂范围
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
50
</m:value>
</m:annotation>
</m:annotations>
<m:id>
c70c0247-a436-4dba-9bf0-b2bfa8898f78
</m:id>
<m:name>
shipName
</m:name>
<m:title>
船名、船号
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
30
</m:value>
</m:annotation>
</m:annotations>
<m:id>
c70c0247-a436-4dba-9bf0-b2bfa8898f78
</m:id>
<m:name>
sandMiningPower
</m:name>
<m:title>
采砂功率
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
9896b104-ec98-4daa-be03-857db0e075a5
</m:id>
<m:name>
workMethod
</m:name>
<m:title>
作业方式
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations/>
<m:id>
de2a224e-0927-4107-a0c7-032d46dbe1ad
</m:id>
<m:name>
status
</m:name>
<m:title>
许可证状态
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
500
</m:value>
</m:annotation>
</m:annotations>
<m:id>
60b847f0-6774-4438-960a-63af8ddcde37
</m:id>
<m:name>
shipOwner
</m:name>
<m:title>
船只所有人
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
<m:annotation>
<m:type>
bcp.type.constraint.NotNull
</m:type>
</m:annotation>
<m:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
500
</m:value>
</m:annotation>
</m:annotations>
<m:id>
e8982fe0-a122-4bfa-8078-7f9125e8cb75
</m:id>
<m:name>
workUser
</m:name>
<m:title>
作业人员
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
</m:annotations>
<m:id>
84f7fdc9-32b2-4035-87a5-4dea6dbcd437
</m:id>
<m:name>
reason
</m:name>
<m:title>
描述
</m:title>
<m:type>
string
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
<m:attribute>
<m:annotations>
</m:annotations>
<m:id>
e4ef9412-c841-44d5-ade5-180af98d4f00
</m:id>
<m:name>
sortOrder
</m:name>
<m:title>
排序
</m:title>
<m:type>
int
</m:type>
<m:description></m:description>
<m:default></m:default>
</m:attribute>
</m:attributes>
</m:class>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/query/Discharging.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/inz-query"
>
<specification>
1.0
</specification>
<id>
f0fe9539-3dcc-4d3b-96eb-3e91f0598b19
</id>
<name>
com.xyst.dinas.production.query.Discharging
</name>
<title>
接驳管理
</title>
<description>
接驳管理
</description>
<define>
inz.query.Query
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.datamodel.Discharging
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.Station
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.SandMiningArea
</dependency>
<dependency>
com.xyst.dinas.biz.datamodel.ShipInfo
</dependency>
<content>
<m:query>
<m:type>
com.xyst.dinas.production.datamodel.Discharging
</m:type>
<m:dataProcessor/>
<m:authorityItem/>
<m:innerScenes>
<m:innerScene>
<m:id>
2093fbb7-e3b6-458d-b6f3-37bbaa61a896
</m:id>
<m:title>
全部
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.CommonAllScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
0eea20cd-9577-4d96-8d06-219663f34af8
</m:id>
<m:title>
已废弃
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.DefaultDiscardScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
dd0461b4-80bb-445a-a4ce-a4675022fa35
</m:id>
<m:title>
权限过滤
</m:title>
<m:javaImplement>
com.xyst.dinas.biz.scene.XystDinasCommonAllScene
</m:javaImplement>
<m:defaultExecute>
true
</m:defaultExecute>
<m:hide>
true
</m:hide>
</m:innerScene>
</m:innerScenes>
<m:fields>
<m:field>
<m:name>
id
</m:name>
<m:title>
id
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.id
</m:name>
<m:title>
区域公司
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.name
</m:name>
<m:title>
区域公司名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
createTime
</m:name>
<m:title>
创建时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
creator.name
</m:name>
<m:title>
创建人
</m:title>
<m:type>
string
</m:type>
<m:ref/>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifyTime
</m:name>
<m:title>
修改时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifier
</m:name>
<m:title>
修改人
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
discard
</m:name>
<m:title>
废弃
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.id
</m:name>
<m:title>
采砂区域
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
dischargingTime
</m:name>
<m:title>
上岸时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.sandMiningAreaName
</m:name>
<m:title>
采砂区域名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.sandMiningAreaType
</m:name>
<m:title>
采砂区域类型
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
station.id
</m:name>
<m:title>
场站
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Station
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
station.stationName
</m:name>
<m:title>
场站名称
</m:title>
<m:type>
name
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Station
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningShip.id
</m:name>
<m:title>
采砂船
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningShip.shipCodeNum
</m:name>
<m:title>
采砂船编号
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
transportShip.id
</m:name>
<m:title>
运砂船
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
transportShip.shipCodeNum
</m:name>
<m:title>
运砂船编号
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.ShipInfo
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
dischargingWeight
</m:name>
<m:title>
上岸砂石量
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
dischargingRegistrant
</m:name>
<m:title>
接驳人员
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
type
</m:name>
<m:title>
数据类型
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
del
</m:name>
<m:title>
是否删除
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/query/SandMining.jmx
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/inz-query"
>
<specification>
1.0
</specification>
<id>
99c0ec44-c31b-44f8-822a-961d40fbb617
</id>
<name>
com.xyst.dinas.production.query.SandMining
</name>
<title>
采砂许可证管理
</title>
<description>
采砂许可证管理
</description>
<define>
inz.query.Query
</define>
<define-version>
1.0
</define-version>
<dependency>
com.xyst.dinas.production.datamodel.SandMining
</dependency>
<content>
<m:query>
<m:type>
com.xyst.dinas.production.datamodel.SandMining
</m:type>
<m:dataProcessor/>
<m:authorityItem/>
<m:innerScenes>
<m:innerScene>
<m:id>
2093fbb7-e3b6-458d-b6f3-37bbaa61a896
</m:id>
<m:title>
全部
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.CommonAllScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
0eea20cd-9577-4d96-8d06-219663f34af8
</m:id>
<m:title>
已废弃
</m:title>
<m:javaImplement>
com.beecode.inz.common.scene.DefaultDiscardScene
</m:javaImplement>
<m:defaultExecute></m:defaultExecute>
<m:hide></m:hide>
</m:innerScene>
<m:innerScene>
<m:id>
dd0461b4-80bb-445a-a4ce-a4675022fa35
</m:id>
<m:title>
权限过滤
</m:title>
<m:javaImplement>
com.xyst.dinas.biz.scene.XystDinasCommonAllScene
</m:javaImplement>
<m:defaultExecute>
true
</m:defaultExecute>
<m:hide>
true
</m:hide>
</m:innerScene>
</m:innerScenes>
<m:fields>
<m:field>
<m:name>
id
</m:name>
<m:title>
id
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.id
</m:name>
<m:title>
区域公司
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
regionalCompany.name
</m:name>
<m:title>
区域公司名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.Organization
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
createTime
</m:name>
<m:title>
创建时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
creator.name
</m:name>
<m:title>
创建人
</m:title>
<m:type>
string
</m:type>
<m:ref/>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifyTime
</m:name>
<m:title>
修改时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
modifier
</m:name>
<m:title>
修改人
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
discard
</m:name>
<m:title>
废弃
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.id
</m:name>
<m:title>
采砂区域
</m:title>
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.sandMiningAreaName
</m:name>
<m:title>
采砂区域名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningArea.sandMiningAreaType
</m:name>
<m:title>
采砂区域类型
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.biz.datamodel.SandMiningArea
</m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
permitCode
</m:name>
<m:title>
许可证编号
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
miningNature
</m:name>
<m:title>
开采性质
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningStart
</m:name>
<m:title>
可采期开始时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningEnd
</m:name>
<m:title>
可采期结束时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
workStartTime
</m:name>
<m:title>
作业开始时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
workEndTime
</m:name>
<m:title>
作业结束时间
</m:title>
<m:type>
datetime
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
miningVolume
</m:name>
<m:title>
开采量
</m:title>
<m:type>
fixnum
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
miningDepth
</m:name>
<m:title>
开采深度
</m:title>
<m:type>
fixnum
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningRange
</m:name>
<m:title>
采砂范围
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
shipName
</m:name>
<m:title>
船名、船号
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sandMiningPower
</m:name>
<m:title>
采砂功率
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
workMethod
</m:name>
<m:title>
作业方式
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
status
</m:name>
<m:title>
许可证状态
</m:title>
<m:type>
int
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
shipOwner
</m:name>
<m:title>
船只所有人
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
workUser
</m:name>
<m:title>
作业人员
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
reason
</m:name>
<m:title>
描述
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
del
</m:name>
<m:title>
是否删除
</m:title>
<m:type>
boolean
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
sortOrder
</m:name>
<m:title>
排序
</m:title>
<m:type>
string
</m:type>
<m:ref>
<m:name></m:name>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
</m:fields>
</m:query>
</content>
</metadata>
backend/xyst.dinas.production/src/main/resources/config/Discharging.hbm.xml
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping
xmlns=
"http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"
>
<class
entity-name=
"com.xyst.dinas.production.datamodel.Discharging"
table=
"xyst_dinas_production_discharging"
optimistic-lock=
"version"
>
<tuplizer
entity-mode=
"dynamic-map"
class=
"com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"
/>
<id
name=
"id"
type=
"uuid-binary"
column=
"id"
length=
"16"
>
<generator
class=
"assigned"
/>
</id>
<version
name=
"version"
type=
"int"
column=
"version"
/>
<property
name=
"createTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"create_time"
/>
</property>
<many-to-one
name=
"creator"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"creator_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"modifyTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"modify_time"
/>
</property>
<many-to-one
name=
"modifier"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"modifier_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billState"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_state"
length=
"100"
/>
</property>
<many-to-one
name=
"bizProcess"
entity-name=
"com.beecode.bap.workflow.datamodel.BizProcess"
fetch=
"select"
>
<column
name=
"biz_process_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billCode"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_code"
length=
"200"
/>
</property>
<property
name=
"discard"
type=
"boolean"
not-null=
"false"
>
<column
name=
"discard"
/>
</property>
<property
name=
"del"
type=
"boolean"
not-null=
"false"
>
<column
name=
"del"
/>
</property>
<property
name=
"approveState"
type=
"integer"
not-null=
"false"
>
<column
name=
"approve_state"
/>
</property>
<many-to-one
name=
"regionalCompany"
entity-name=
"com.xyst.dinas.biz.datamodel.Organization"
fetch=
"select"
>
<column
name=
"regional_company"
not-null=
"false"
>
<comment>
所属组织机构
</comment>
</column>
</many-to-one>
<many-to-one
name=
"sandMiningArea"
entity-name=
"com.xyst.dinas.biz.datamodel.SandMiningArea"
fetch=
"select"
>
<column
name=
"sand_mining_area_id"
not-null=
"false"
>
<comment>
所属采区
</comment>
</column>
</many-to-one>
<many-to-one
name=
"station"
entity-name=
"com.xyst.dinas.biz.datamodel.Station"
fetch=
"select"
>
<column
name=
"station_id"
not-null=
"false"
>
<comment>
所属场站
</comment>
</column>
</many-to-one>
<many-to-one
name=
"sandMiningShip"
entity-name=
"com.xyst.dinas.biz.datamodel.ShipInfo"
fetch=
"select"
>
<column
name=
"sand_mining_ship_id"
not-null=
"false"
>
<comment>
采砂船
</comment>
</column>
</many-to-one>
<many-to-one
name=
"transportShip"
entity-name=
"com.xyst.dinas.biz.datamodel.ShipInfo"
fetch=
"select"
>
<column
name=
"transport_ship_id"
not-null=
"false"
>
<comment>
运砂船
</comment>
</column>
</many-to-one>
<property
name=
"dischargingWeight"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"discharging_weight"
precision=
"12"
scale=
"2"
>
<comment>
上岸砂石量
</comment>
</column>
</property>
<property
name=
"dischargingTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"discharging_time"
>
<comment>
上岸时间
</comment>
</column>
</property>
<property
name=
"dischargingRegistrant"
type=
"nstring"
not-null=
"false"
>
<column
name=
"discharging_registrant"
length=
"50"
>
<comment>
接驳人员
</comment>
</column>
</property>
<property
name=
"type"
type=
"int"
>
<column
name=
"type"
not-null=
"false"
>
<comment>
数据类型,0每日新增 1数据修正新增
</comment>
</column>
</property>
</class>
</hibernate-mapping>
\ No newline at end of file
backend/xyst.dinas.production/src/main/resources/config/SandMining.hbm.xml
0 → 100644
View file @
7534d3d7
<?xml version="1.0" encoding="UTF-8"?>
<hibernate-mapping
xmlns=
"http://www.hibernate.org/xsd/hibernate-mapping"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.hibernate.org/xsd/hibernate-mapping
http://www.hibernate.org/xsd/hibernate-mapping/hibernate-mapping-4.0.xsd"
>
<class
entity-name=
"com.xyst.dinas.production.datamodel.SandMining"
table=
"xyst_dinas_production_sand_mining"
optimistic-lock=
"version"
>
<tuplizer
entity-mode=
"dynamic-map"
class=
"com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"
/>
<id
name=
"id"
type=
"uuid-binary"
column=
"id"
length=
"16"
>
<generator
class=
"assigned"
/>
</id>
<version
name=
"version"
type=
"int"
column=
"version"
/>
<property
name=
"createTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"create_time"
/>
</property>
<many-to-one
name=
"creator"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"creator_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"modifyTime"
type=
"timestamp"
not-null=
"false"
>
<column
name=
"modify_time"
/>
</property>
<many-to-one
name=
"modifier"
entity-name=
"com.beecode.bap.staff.datamodel.Staff"
fetch=
"select"
>
<column
name=
"modifier_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billState"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_state"
length=
"100"
/>
</property>
<many-to-one
name=
"bizProcess"
entity-name=
"com.beecode.bap.workflow.datamodel.BizProcess"
fetch=
"select"
>
<column
name=
"biz_process_id"
not-null=
"false"
/>
</many-to-one>
<property
name=
"billCode"
type=
"nstring"
not-null=
"false"
>
<column
name=
"bill_code"
length=
"200"
/>
</property>
<property
name=
"discard"
type=
"boolean"
not-null=
"false"
>
<column
name=
"discard"
/>
</property>
<property
name=
"del"
type=
"boolean"
not-null=
"false"
>
<column
name=
"del"
/>
</property>
<property
name=
"approveState"
type=
"integer"
not-null=
"false"
>
<column
name=
"approve_state"
/>
</property>
<many-to-one
name=
"regionalCompany"
entity-name=
"com.xyst.dinas.biz.datamodel.Organization"
fetch=
"select"
>
<column
name=
"regional_company"
not-null=
"false"
>
<comment>
所属组织机构
</comment>
</column>
</many-to-one>
<many-to-one
name=
"sandMiningArea"
entity-name=
"com.xyst.dinas.biz.datamodel.SandMiningArea"
fetch=
"select"
>
<column
name=
"sand_mining_area_id"
not-null=
"false"
>
<comment>
所属采区
</comment>
</column>
</many-to-one>
<property
name=
"permitCode"
type=
"nstring"
not-null=
"true"
>
<column
name=
"permit_code"
length=
"30"
>
<comment>
许可证编号
</comment>
</column>
</property>
<property
name=
"miningNature"
type=
"int"
>
<column
name=
"mining_nature"
not-null=
"false"
>
<comment>
开采性质 0公益性 1经营性
</comment>
</column>
</property>
<property
name=
"status"
type=
"int"
>
<column
name=
"status"
not-null=
"false"
>
<comment>
许可证状态 0未开始 1生效中 2已结束
</comment>
</column>
</property>
<property
name=
"workMethod"
type=
"int"
>
<column
name=
"work_method"
not-null=
"false"
>
<comment>
作业方式 0链条挖斗式 1抽沙泵式
</comment>
</column>
</property>
<property
name=
"sandMiningStart"
type=
"timestamp"
not-null=
"true"
>
<column
name=
"sand_mining_start"
>
<comment>
可采期开始时间
</comment>
</column>
</property>
<property
name=
"sandMiningEnd"
type=
"timestamp"
not-null=
"true"
>
<column
name=
"sand_mining_end"
>
<comment>
可采期结束时间
</comment>
</column>
</property>
<property
name=
"workStartTime"
type=
"timestamp"
not-null=
"true"
>
<column
name=
"work_start_time"
>
<comment>
作业开始时间
</comment>
</column>
</property>
<property
name=
"workEndTime"
type=
"timestamp"
not-null=
"true"
>
<column
name=
"work_end_time"
>
<comment>
作业结束时间
</comment>
</column>
</property>
<property
name=
"miningVolume"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"mining_volume"
precision=
"12"
scale=
"2"
>
<comment>
开采量
</comment>
</column>
</property>
<property
name=
"miningDepth"
type=
"big_decimal"
not-null=
"false"
>
<column
name=
"mining_depth"
precision=
"12"
scale=
"2"
>
<comment>
开采深度
</comment>
</column>
</property>
<bag
name=
"stationDetails"
lazy=
"true"
fetch=
"select"
inverse=
"true"
>
<key
column=
"sand_mining_id"
not-null=
"true"
/>
<one-to-many
entity-name=
"com.xyst.dinas.project.datamodel.SandMining$SandMiningStationDetail"
/>
</bag>
<property
name=
"sandMiningRange"
type=
"nstring"
not-null=
"false"
>
<column
name=
"sand_mining_range"
length=
"3000"
>
<comment>
采砂范围
</comment>
</column>
</property>
<property
name=
"shipName"
type=
"nstring"
not-null=
"false"
>
<column
name=
"ship_name"
length=
"50"
>
<comment>
船名、船号
</comment>
</column>
</property>
<property
name=
"shipOwner"
type=
"nstring"
not-null=
"false"
>
<column
name=
"ship_owner"
length=
"500"
>
<comment>
船只所有人 逗号分隔
</comment>
</column>
</property>
<property
name=
"workUser"
type=
"nstring"
not-null=
"false"
>
<column
name=
"work_user"
length=
"500"
>
<comment>
作业人员 逗号分隔
</comment>
</column>
</property>
<property
name=
"sandMiningPower"
type=
"nstring"
not-null=
"false"
>
<column
name=
"sand_mining_power"
length=
"50"
>
<comment>
采砂功率
</comment>
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"true"
unique=
"true"
update=
"false"
insert=
"false"
index=
"sand_mining_index"
>
<column
name=
"sort_order"
length=
"5"
>
<comment
>
排序
</comment>
</column>
</property>
</class>
<class
entity-name=
"com.xyst.dinas.project.datamodel.SandMining$SandMiningStationDetail"
table=
"xyst_dinas_production_sand_mining_station_detail"
>
<tuplizer
entity-mode=
"dynamic-map"
class=
"com.beecode.bcp.store.hibernate.KObjectEntityTuplizer"
/>
<id
name=
"id"
type=
"uuid-binary"
column=
"id"
length=
"16"
>
<generator
class=
"assigned"
/>
</id>
<many-to-one
name=
"sandMining"
entity-name=
"com.xyst.dinas.production.datamodel.SandMining"
fetch=
"select"
>
<column
name=
"sand_mining_id"
not-null=
"true"
/>
</many-to-one>
<many-to-one
name=
"station"
entity-name=
"com.xyst.dinas.biz.datamodel.Station"
fetch=
"select"
>
<column
name=
"station_id"
not-null=
"true"
/>
</many-to-one>
</class>
</hibernate-mapping>
\ No newline at end of file
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