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
01609f55
Commit
01609f55
authored
Apr 24, 2022
by
yanHeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/exception_data' into feature/sandMing_Area_update
parents
2595246c
692f3051
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
57 changed files
with
917 additions
and
52 deletions
+917
-52
DefaultFunctionTree.jmx
...m/beecode/inz/portal/functiontree/DefaultFunctionTree.jmx
+32
-1
RetailInfoServiceImpl.java
...yst/dinas/biz/internal/service/RetailInfoServiceImpl.java
+13
-0
RetailInfoService.java
...in/java/com/xyst/dinas/biz/service/RetailInfoService.java
+2
-0
ShipInfoCard.mk
...iz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoCard.mk
+1
-1
ShipInfoCreate.mk
.../src/main/model/com/xyst/dinas/biz/auth/ShipInfoCreate.mk
+1
-1
ShipInfoDelete.mk
.../src/main/model/com/xyst/dinas/biz/auth/ShipInfoDelete.mk
+1
-1
ShipInfoEdit.mk
...iz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoEdit.mk
+1
-1
ShipInfoList.mk
...iz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoList.mk
+1
-1
ShipInfoCard.jmx
...c/main/resources/com/xyst/dinas/biz/auth/ShipInfoCard.jmx
+1
-1
ShipInfoCreate.jmx
...main/resources/com/xyst/dinas/biz/auth/ShipInfoCreate.jmx
+1
-1
ShipInfoDelete.jmx
...main/resources/com/xyst/dinas/biz/auth/ShipInfoDelete.jmx
+1
-1
ShipInfoEdit.jmx
...c/main/resources/com/xyst/dinas/biz/auth/ShipInfoEdit.jmx
+1
-1
ShipInfoList.jmx
...c/main/resources/com/xyst/dinas/biz/auth/ShipInfoList.jmx
+1
-1
SalesRecordConstant.java
...va/com/xyst/dinas/sales/constant/SalesRecordConstant.java
+36
-0
SalesRecordDao.java
...rc/main/java/com/xyst/dinas/sales/dao/SalesRecordDao.java
+9
-3
SalesRecordDaoImpl.java
...com/xyst/dinas/sales/internal/dao/SalesRecordDaoImpl.java
+62
-9
SalesRecordServiceImpl.java
.../dinas/sales/internal/service/SalesRecordServiceImpl.java
+0
-0
SalesRecordService.java
...java/com/xyst/dinas/sales/service/SalesRecordService.java
+31
-2
SalesRecordController.java
.../java/com/xyst/dinas/sales/web/SalesRecordController.java
+117
-8
SalesRecordInfo.java
...n/java/com/xyst/dinas/sales/web/info/SalesRecordInfo.java
+99
-1
ExceptionApprovalCheck.mk
...model/com/xyst/dinas/sales/auth/ExceptionApprovalCheck.mk
+14
-0
ExceptionApprovalList.mk
.../model/com/xyst/dinas/sales/auth/ExceptionApprovalList.mk
+14
-0
ExceptionCard.mk
...src/main/model/com/xyst/dinas/sales/auth/ExceptionCard.mk
+14
-0
ExceptionCreate.mk
...c/main/model/com/xyst/dinas/sales/auth/ExceptionCreate.mk
+14
-0
ExceptionDelete.mk
...c/main/model/com/xyst/dinas/sales/auth/ExceptionDelete.mk
+14
-0
ExceptionEdit.mk
...src/main/model/com/xyst/dinas/sales/auth/ExceptionEdit.mk
+14
-0
ExceptionList.mk
...src/main/model/com/xyst/dinas/sales/auth/ExceptionList.mk
+14
-0
SalesRecord.mk
.../main/model/com/xyst/dinas/sales/datamodel/SalesRecord.mk
+23
-0
SalesRecord.mk
.../src/main/model/com/xyst/dinas/sales/query/SalesRecord.mk
+47
-0
ExceptionApprovalCheck.jmx
...rces/com/xyst/dinas/sales/auth/ExceptionApprovalCheck.jmx
+16
-0
ExceptionApprovalList.jmx
...urces/com/xyst/dinas/sales/auth/ExceptionApprovalList.jmx
+16
-0
ExceptionCard.jmx
...ain/resources/com/xyst/dinas/sales/auth/ExceptionCard.jmx
+16
-0
ExceptionCreate.jmx
...n/resources/com/xyst/dinas/sales/auth/ExceptionCreate.jmx
+16
-0
ExceptionDelete.jmx
...n/resources/com/xyst/dinas/sales/auth/ExceptionDelete.jmx
+16
-0
ExceptionEdit.jmx
...ain/resources/com/xyst/dinas/sales/auth/ExceptionEdit.jmx
+16
-0
ExceptionList.jmx
...ain/resources/com/xyst/dinas/sales/auth/ExceptionList.jmx
+16
-0
CoefficientOrPrice$sequence.jmx
...com/xyst/dinas/sales/bill/CoefficientOrPrice$sequence.jmx
+1
-1
CoefficientOrPrice$serial.jmx
...s/com/xyst/dinas/sales/bill/CoefficientOrPrice$serial.jmx
+1
-1
CoefficientOrPrice.jmx
...esources/com/xyst/dinas/sales/bill/CoefficientOrPrice.jmx
+1
-1
NeedPlan$sequence.jmx
...resources/com/xyst/dinas/sales/bill/NeedPlan$sequence.jmx
+1
-1
NeedPlan$serial.jmx
...n/resources/com/xyst/dinas/sales/bill/NeedPlan$serial.jmx
+1
-1
NeedPlan.jmx
...src/main/resources/com/xyst/dinas/sales/bill/NeedPlan.jmx
+1
-1
SalesPlan$sequence.jmx
...esources/com/xyst/dinas/sales/bill/SalesPlan$sequence.jmx
+1
-1
SalesPlan$serial.jmx
.../resources/com/xyst/dinas/sales/bill/SalesPlan$serial.jmx
+1
-1
SalesPlan.jmx
...rc/main/resources/com/xyst/dinas/sales/bill/SalesPlan.jmx
+1
-1
SalesPlanTemp$sequence.jmx
...rces/com/xyst/dinas/sales/bill/SalesPlanTemp$sequence.jmx
+1
-1
SalesPlanTemp$serial.jmx
...ources/com/xyst/dinas/sales/bill/SalesPlanTemp$serial.jmx
+1
-1
SalesPlanTemp.jmx
...ain/resources/com/xyst/dinas/sales/bill/SalesPlanTemp.jmx
+1
-1
ShipQuantity$sequence.jmx
...urces/com/xyst/dinas/sales/bill/ShipQuantity$sequence.jmx
+1
-1
ShipQuantity$serial.jmx
...sources/com/xyst/dinas/sales/bill/ShipQuantity$serial.jmx
+1
-1
ShipQuantity.jmx
...main/resources/com/xyst/dinas/sales/bill/ShipQuantity.jmx
+1
-1
VehicleAmountParty$sequence.jmx
...com/xyst/dinas/sales/bill/VehicleAmountParty$sequence.jmx
+1
-1
VehicleAmountParty$serial.jmx
...s/com/xyst/dinas/sales/bill/VehicleAmountParty$serial.jmx
+1
-1
VehicleAmountParty.jmx
...esources/com/xyst/dinas/sales/bill/VehicleAmountParty.jmx
+1
-1
SalesRecord.jmx
.../resources/com/xyst/dinas/sales/datamodel/SalesRecord.jmx
+107
-0
SalesRecord.jmx
...main/resources/com/xyst/dinas/sales/query/SalesRecord.jmx
+70
-0
SalesRecord.hbm.xml
...dinas.sales/src/main/resources/config/SalesRecord.hbm.xml
+31
-0
No files found.
backend/inz.basis/src/main/resources/com/beecode/inz/portal/functiontree/DefaultFunctionTree.jmx
View file @
01609f55
...
...
@@ -565,6 +565,37 @@
</m:function-definition>
<m:icon>
iconfont iconcheliangliangfang1x
</m:icon>
</m:function-node>
<m:function-node>
<m:id>
dd4ab671-52ba-4040-bd65-7ba13786106a
</m:id>
<m:name>
exception_data
</m:name>
<m:title>
异常数据
</m:title>
<m:index>
1600
</m:index>
<m:license></m:license>
<m:privilege></m:privilege>
<m:role></m:role>
<m:function-definition>
<m:view>
function-exception-data
</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>
iconfont iconhetongzhihangfenxi1x
</m:icon>
</m:function-node>
<m:function-node>
<m:id>
db78d057-269e-4689-b3ea-f90642334060
</m:id>
<m:name>
exception_data_approval
</m:name>
<m:title>
异常数据审核
</m:title>
<m:index>
1700
</m:index>
<m:license></m:license>
<m:privilege></m:privilege>
<m:role></m:role>
<m:function-definition>
<m:view>
function-exception-data-approval
</m:view>
<m:view-config></m:view-config>
</m:function-definition>
<m:icon>
iconfont iconhetongzhihangfenxi1x
</m:icon>
</m:function-node>
<m:function-node>
<m:id>
e536e311-8d22-4730-b3d7-444fd718c883
</m:id>
<m:name>
self_pickup_car
</m:name>
...
...
@@ -1515,7 +1546,7 @@
<m:function-node>
<m:id>
18ecb4c7-1d00-42f7-af60-1b55bb895199
</m:id>
<m:name>
ship_list
</m:name>
<m:title>
船
只备案
</m:title>
<m:title>
船
舶台账
</m:title>
<m:index>
9000
</m:index>
<m:license></m:license>
<m:privilege>
com.xyst.dinas.biz.auth.ShipInfoList
</m:privilege>
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/service/RetailInfoServiceImpl.java
View file @
01609f55
...
...
@@ -213,5 +213,18 @@ public class RetailInfoServiceImpl implements RetailInfoService {
return
orGet
;
}
@Override
public
KObject
createRetailInfo
(
KObject
station
,
KObject
dinasType
,
String
carNum
,
String
retailName
,
Double
dealAmount
,
Double
amount
)
{
KObject
orGet
=
retailInfoDao
.
createOrGet
(
retailName
,
carNum
,
station
);
KClass
bean
=
Amino
.
getStaticMetadataContext
().
getBean
(
RetailInfoConstant
.
DETAIL_ENTITY
,
KClass
.
class
);
KObject
object
=
bean
.
newInstance
();
object
.
set
(
"purchaseAmount"
,
dealAmount
);
object
.
set
(
"master"
,
retailInfoDao
.
load
(
orGet
.
getUuid
(
"id"
)));
object
.
set
(
"dinasType"
,
dinasType
);
object
.
set
(
BaseConstants
.
ID
,
UUID
.
randomUUID
());
retailInfoDao
.
saveOrUpdate
(
object
);
return
orGet
;
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/service/RetailInfoService.java
View file @
01609f55
...
...
@@ -30,4 +30,6 @@ public interface RetailInfoService {
BigDecimal
selectBuyAmountByIdCard
(
String
idCard
,
UUID
fromString
);
KObject
create
(
KObject
station
,
KObject
dinasType
,
String
retailIdNum
,
String
retailName
,
String
carInfo
,
Double
dealAmount
,
Double
amount
);
KObject
createRetailInfo
(
KObject
station
,
KObject
dinasType
,
String
carNum
,
String
retailName
,
Double
dealAmount
,
Double
amount
);
}
backend/xyst.dinas.biz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoCard.mk
View file @
01609f55
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='78b3f83f-2b84-4db6-88b6-c99869a91037' category='业务管理/船
只备案
(区域公司)' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='78b3f83f-2b84-4db6-88b6-c99869a91037' category='业务管理/船
舶台账
(区域公司)' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.biz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoCreate.mk
View file @
01609f55
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='604b514f-52b2-43b0-8c16-cba1f511c7ab' category='业务管理/船
只备案
(区域公司)' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='604b514f-52b2-43b0-8c16-cba1f511c7ab' category='业务管理/船
舶台账
(区域公司)' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.biz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoDelete.mk
View file @
01609f55
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='f250186a-ffd6-4b3e-94f7-00fadbf2e7c0' category='业务管理/船
只备案
(区域公司)' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='f250186a-ffd6-4b3e-94f7-00fadbf2e7c0' category='业务管理/船
舶台账
(区域公司)' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.biz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoEdit.mk
View file @
01609f55
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='0a5129cd-ee16-491f-9f99-8817c7d75925' category='业务管理/船
只备案
(区域公司)' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='0a5129cd-ee16-491f-9f99-8817c7d75925' category='业务管理/船
舶台账
(区域公司)' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.biz/src/main/model/com/xyst/dinas/biz/auth/ShipInfoList.mk
View file @
01609f55
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='dfa9012c-dccc-463e-a3ee-4e181f702dbb' category='业务管理/船
只备案
(区域公司)' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='dfa9012c-dccc-463e-a3ee-4e181f702dbb' category='业务管理/船
舶台账
(区域公司)' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/ShipInfoCard.jmx
View file @
01609f55
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
业务管理/船
只备案
(区域公司)
</m:category>
<m:category>
业务管理/船
舶台账
(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/ShipInfoCreate.jmx
View file @
01609f55
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
业务管理/船
只备案
(区域公司)
</m:category>
<m:category>
业务管理/船
舶台账
(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/ShipInfoDelete.jmx
View file @
01609f55
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
业务管理/船
只备案
(区域公司)
</m:category>
<m:category>
业务管理/船
舶台账
(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/ShipInfoEdit.jmx
View file @
01609f55
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
业务管理/船
只备案
(区域公司)
</m:category>
<m:category>
业务管理/船
舶台账
(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.biz/src/main/resources/com/xyst/dinas/biz/auth/ShipInfoList.jmx
View file @
01609f55
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
业务管理/船
只备案
(区域公司)
</m:category>
<m:category>
业务管理/船
舶台账
(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/constant/SalesRecordConstant.java
View file @
01609f55
...
...
@@ -152,4 +152,40 @@ public interface SalesRecordConstant {
*/
String
PIC
=
"pic"
;
//数据来源
String
DATA_SOURCE
=
"dataSource"
;
//原因
String
REASON
=
"reason"
;
//删除原因
String
DEL_REASON
=
"delReason"
;
//方法类型
String
METHOD_TYPE
=
"methodType"
;
//数据来源字段值
String
DATA_SOURCE_REN_GONG
=
"人工补录"
;
String
DATA_SOURCE_DI_BANG
=
"地磅"
;
//方法类型 新增
Integer
ADD_METHOD
=
0
;
//---- 删除
Integer
DEL_METHOD
=
1
;
//未提交状态
Integer
TO_NOT_SUBMITTED
=
0
;
//待审核状态
Integer
TO_AUDIT
=
1
;
//审核通过状态
Integer
APPROVED
=
2
;
//审核驳回
Integer
APPROVE_BACK
=
3
;
/**
* 删除审批状态 点击删除时,同步当前条数据状态
*/
String
APPROVE_STATE_DEL
=
"approveStateDel"
;
}
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/dao/SalesRecordDao.java
View file @
01609f55
package
com
.
xyst
.
dinas
.
sales
.
dao
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.sales.web.info.SalesRecordInfo
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.UUID
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.sales.web.info.SalesRecordInfo
;
public
interface
SalesRecordDao
{
KObject
load
(
UUID
id
);
...
...
@@ -21,4 +21,10 @@ public interface SalesRecordDao {
void
insertList
(
List
<
KObject
>
salesRecordInfos
);
void
updateActualTransportationById
(
SalesRecordInfo
salesRecordInfo
);
void
deleteById
(
UUID
id
,
String
delReason
);
void
approval
(
KObject
kobject
);
void
update
(
KObject
salesRecord
);
}
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/internal/dao/SalesRecordDaoImpl.java
View file @
01609f55
package
com
.
xyst
.
dinas
.
sales
.
internal
.
dao
;
import
java.math.BigDecimal
;
import
java.util.*
;
import
javax.persistence.Tuple
;
import
com.beecode.amino.common.Convert
;
import
com.beecode.amino.core.Amino
;
import
com.beecode.bcp.core.context.AminoContextHolder
;
import
com.beecode.bcp.serial.Serial
;
import
com.beecode.bcp.type.KClass
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.common.BaseConstants
;
import
com.beecode.util.DateUtil
;
import
com.xyst.dinas.sales.constant.SalesRecordConstant
;
import
com.xyst.dinas.sales.dao.SalesRecordDao
;
import
com.xyst.dinas.sales.web.info.SalesRecordInfo
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
...
@@ -22,10 +22,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.orm.hibernate5.HibernateCallback
;
import
org.springframework.orm.hibernate5.HibernateOperations
;
import
com.beecode.amino.common.Convert
;
import
com.beecode.bcp.type.KObject
;
import
com.xyst.dinas.sales.constant.SalesRecordConstant
;
import
com.xyst.dinas.sales.dao.SalesRecordDao
;
import
javax.persistence.Tuple
;
import
java.math.BigDecimal
;
import
java.util.*
;
public
class
SalesRecordDaoImpl
implements
SalesRecordDao
,
SalesRecordConstant
{
@Autowired
...
...
@@ -129,4 +128,57 @@ public class SalesRecordDaoImpl implements SalesRecordDao, SalesRecordConstant {
}
}
@Override
public
void
deleteById
(
UUID
id
,
String
delReason
)
{
KObject
staff
=
AminoContextHolder
.
getContext
().
getStaff
();
KObject
kobject
=
(
KObject
)
template
.
load
(
ENTITY
,
id
);
//审核状态
Integer
approvalState
=
Integer
.
valueOf
(
kobject
.
getString
(
SalesRecordConstant
.
APPROVE_STATE
));
kobject
.
set
(
BaseConstants
.
MODIFY_TIME
,
new
Date
());
kobject
.
set
(
SalesRecordConstant
.
DEL_REASON
,
delReason
);
kobject
.
set
(
BaseConstants
.
DEL
,
true
);
kobject
.
set
(
SalesRecordConstant
.
METHOD_TYPE
,
SalesRecordConstant
.
DEL_METHOD
);
//赋值删除状态 为后续删除审核做判断
kobject
.
set
(
SalesRecordConstant
.
APPROVE_STATE_DEL
,
approvalState
);
//赋予状态为数据当时审核状态
if
(
SalesRecordConstant
.
TO_NOT_SUBMITTED
.
equals
(
approvalState
)){
kobject
.
set
(
SalesRecordConstant
.
APPROVE_STATE
,
SalesRecordConstant
.
TO_NOT_SUBMITTED
);
}
else
{
kobject
.
set
(
SalesRecordConstant
.
APPROVE_STATE
,
SalesRecordConstant
.
TO_AUDIT
);
//删除赋予状态为未审核
}
if
(
SalesRecordConstant
.
DATA_SOURCE_DI_BANG
.
equals
(
kobject
.
getString
(
SalesRecordConstant
.
DATA_SOURCE
))){
kobject
.
set
(
SalesRecordConstant
.
APPROVE_STATE_DEL
,
SalesRecordConstant
.
APPROVED
);
//如果是地磅数据 赋值为通过,地磅数据不需要审核
}
template
.
update
(
kobject
);
}
@Override
public
void
approval
(
KObject
approObject
)
{
KObject
kobject
=
(
KObject
)
template
.
load
(
ENTITY
,
approObject
.
getUuid
(
BaseConstants
.
ID
));
kobject
.
set
(
BaseConstants
.
MODIFY_TIME
,
new
Date
());
Integer
approvalState
=
Integer
.
valueOf
(
approObject
.
getString
(
SalesRecordConstant
.
APPROVE_STATE
));
kobject
.
set
(
SalesRecordConstant
.
APPROVE_STATE
,
approvalState
);
//当前数据方法类型
Integer
methodType
=
Integer
.
valueOf
(
approObject
.
getString
(
SalesRecordConstant
.
METHOD_TYPE
));
if
(
SalesRecordConstant
.
DEL_METHOD
.
equals
(
methodType
)){
if
(
SalesRecordConstant
.
APPROVE_BACK
.
equals
(
approvalState
)){
//逻辑删除
kobject
.
set
(
BaseConstants
.
DEL
,
false
);
}
}
template
.
update
(
kobject
);
}
@Override
public
void
update
(
KObject
kobject
)
{
KObject
id
=
load
(
kobject
.
getUuid
(
"id"
));
kobject
.
set
(
BaseConstants
.
CREATE_TIME
,
id
.
getDate
(
BaseConstants
.
CREATE_TIME
));
kobject
.
set
(
BaseConstants
.
MODIFY_TIME
,
new
Date
());
kobject
.
set
(
BaseConstants
.
DEL
,
false
);
template
.
merge
(
kobject
);
}
}
\ No newline at end of file
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/internal/service/SalesRecordServiceImpl.java
View file @
01609f55
This diff is collapsed.
Click to expand it.
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/service/SalesRecordService.java
View file @
01609f55
package
com
.
xyst
.
dinas
.
sales
.
service
;
import
java.util.HashMap
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.xyst.dinas.sales.web.info.SalesRecordInfo
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.HashMap
;
import
java.util.UUID
;
public
interface
SalesRecordService
{
/**
...
...
@@ -18,4 +21,30 @@ public interface SalesRecordService {
HashMap
<
String
,
Object
>
saveSalesRecordService
(
SalesRecordInfo
salesRecordList
,
KObject
station
);
HashMap
<
String
,
Object
>
qualityReportExcelImport
(
MultipartFile
file
);
/**
* @Author yanHeng
* @Date 2022/4/18 9:59
* @Param [kobject, station]
* @return java.util.HashMap<java.lang.String,java.lang.Object>
**/
HashMap
<
String
,
Object
>
saveSalesRecordInfo
(
SalesRecordInfo
salesRecord
,
KObject
station
);
/**
* @Author yanHeng
* @Date 2022/4/18 15:00
* @Param [jsonNode]
* @return com.beecode.inz.basis.team.pojo.ResponseObj
**/
ResponseObj
deleteById
(
JsonNode
jsonNode
);
/**
* @Author yanHeng
* @Date 2022/4/18 17:38
* @Param [jsonNode]
* @return void
**/
ResponseObj
approvalBatch
(
JsonNode
jsonNode
);
KObject
getById
(
UUID
id
);
}
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/web/SalesRecordController.java
View file @
01609f55
package
com
.
xyst
.
dinas
.
sales
.
web
;
import
java.util.HashMap
;
import
java.util.List
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.fasterxml.jackson.databind.JsonNode
;
import
com.xyst.dinas.biz.service.StationService
;
import
com.xyst.dinas.sales.service.SalesRecordService
;
import
com.xyst.dinas.sales.web.info.SalesRecordInfo
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.multipart.MultipartFile
;
import
java.util.HashMap
;
import
java.util.UUID
;
@RestController
public
class
SalesRecordController
{
@Autowired
SalesRecordService
salesRecordService
;
@Autowired
StationService
stationService
;
/**
* create by: 导入销售记录,没有的数据全部新建
...
...
@@ -38,4 +42,109 @@ public class SalesRecordController {
}
return
ResponseObj
.
success
(
"success"
);
}
/**
* @Author yanHeng
* @Date 2022/4/18 9:56
* @Param [SalesRecordInfo]
* @return java.lang.Object
* 异常数据添加/编辑
**/
@PostMapping
(
value
=
"/salesRecord/saveSalesRecordInfo"
)
public
Object
saveSalesRecordInfo
(
@RequestBody
SalesRecordInfo
salesRecord
)
{
//判空校验
if
(
null
==
salesRecord
.
getStationId
())
{
return
ResponseObj
.
error
(
400
,
"请选择具体的场站"
);
}
if
(
null
==
salesRecord
.
getCarNum
())
{
return
ResponseObj
.
error
(
400
,
"车牌号不能为空"
);
}
if
(
null
==
salesRecord
.
getTareWeightTimeInfo
())
{
return
ResponseObj
.
error
(
400
,
"皮重时间不能为空"
);
}
if
(
null
==
salesRecord
.
getGrossWeightTimeInfo
())
{
return
ResponseObj
.
error
(
400
,
"毛重时间不能为空"
);
}
if
(
null
==
salesRecord
.
getCarNum
())
{
return
ResponseObj
.
error
(
400
,
"车牌号不能为空"
);
}
if
(
null
==
salesRecord
.
getDealBillCode
())
{
return
ResponseObj
.
error
(
400
,
"销售单号不能为空"
);
}
if
(
null
==
salesRecord
.
getDinasTypeId
())
{
return
ResponseObj
.
error
(
400
,
"请选择具体的砂石"
);
}
if
(
null
==
salesRecord
.
getGrossWeight
())
{
return
ResponseObj
.
error
(
400
,
"毛重不能为空"
);
}
if
(
null
==
salesRecord
.
getTareWeight
())
{
return
ResponseObj
.
error
(
400
,
"皮重不能为空"
);
}
if
(
null
==
salesRecord
.
getPrice
())
{
return
ResponseObj
.
error
(
400
,
"单价不能为空"
);
}
if
(
null
==
salesRecord
.
getAmount
())
{
return
ResponseObj
.
error
(
400
,
"总价不能为空"
);
}
if
(
null
==
salesRecord
.
getPaymentSource
())
{
return
ResponseObj
.
error
(
400
,
"收款类型不能为空"
);
}
if
(
null
==
salesRecord
.
getReason
())
{
return
ResponseObj
.
error
(
400
,
"原因不能为空"
);
}
KObject
station
=
stationService
.
getById
(
UUID
.
fromString
(
salesRecord
.
getStationId
()));
HashMap
<
String
,
Object
>
stringObjectHashMap
=
salesRecordService
.
saveSalesRecordInfo
(
salesRecord
,
station
);
return
ResponseObj
.
error
((
Integer
)
stringObjectHashMap
.
get
(
"code"
),
stringObjectHashMap
.
get
(
"message"
).
toString
(),
stringObjectHashMap
.
get
(
"id"
));
}
/**
* 根据id获取异常数据信息
*
* @param id
* @return
*/
@GetMapping
(
"/salesRecord/{id}"
)
public
ResponseObj
getById
(
@PathVariable
(
"id"
)
UUID
id
)
{
if
(
id
==
null
)
{
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
KObject
discharging
=
salesRecordService
.
getById
(
id
);
return
ResponseObj
.
success
(
"获取成功"
,
discharging
);
}
/**
* 根据Id删除销售明细数据
* 只做数据修改,退款需审核
* @param body
* @return
*/
@PostMapping
(
"/salesRecord/deleteSalesRecordBatch"
)
public
ResponseObj
deleteById
(
@RequestBody
String
body
)
{
JsonNode
jsonNode
=
JSONObjectUtils
.
toJson
(
body
);
return
salesRecordService
.
deleteById
(
jsonNode
);
}
/**
* 批量审核异常数据,进行扣款或者退款
* @param body
* @return
*/
@PostMapping
(
"/salesRecord/approvalBatch"
)
public
ResponseObj
approvalBatch
(
@RequestBody
String
body
)
{
JsonNode
jsonNode
=
JSONObjectUtils
.
toJson
(
body
);
return
salesRecordService
.
approvalBatch
(
jsonNode
);
}
}
backend/xyst.dinas.sales/src/main/java/com/xyst/dinas/sales/web/info/SalesRecordInfo.java
View file @
01609f55
package
com
.
xyst
.
dinas
.
sales
.
web
.
info
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigDecimal
;
import
java.util.Date
;
...
...
@@ -10,6 +13,8 @@ import java.util.Date;
public
class
SalesRecordInfo
{
//主键id
private
String
id
;
/**
* 项目
*/
...
...
@@ -66,6 +71,20 @@ public class SalesRecordInfo {
*/
private
Date
tareWeightTime
;
/**
* 毛重时间
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
grossWeightTimeInfo
;
/**
* 皮重时间
*/
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
tareWeightTimeInfo
;
/**
* 皮重
*/
...
...
@@ -150,7 +169,70 @@ public class SalesRecordInfo {
*/
private
Integer
saleType
;
public
String
getProductionLineId
()
{
//数据来源
private
String
dataSource
;
//原因
private
String
reason
;
//删除原因
private
String
delReason
;
//方法类型
private
Integer
methodType
;
//版本号
private
Integer
version
;
public
Date
getGrossWeightTimeInfo
()
{
return
grossWeightTimeInfo
;
}
public
void
setGrossWeightTimeInfo
(
Date
grossWeightTimeInfo
)
{
this
.
grossWeightTimeInfo
=
grossWeightTimeInfo
;
}
public
Date
getTareWeightTimeInfo
()
{
return
tareWeightTimeInfo
;
}
public
void
setTareWeightTimeInfo
(
Date
tareWeightTimeInfo
)
{
this
.
tareWeightTimeInfo
=
tareWeightTimeInfo
;
}
public
Integer
getVersion
()
{
return
version
;
}
public
void
setVersion
(
Integer
version
)
{
this
.
version
=
version
;
}
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
Integer
getMethodType
()
{
return
methodType
;
}
public
void
setMethodType
(
Integer
methodType
)
{
this
.
methodType
=
methodType
;
}
public
String
getDelReason
()
{
return
delReason
;
}
public
void
setDelReason
(
String
delReason
)
{
this
.
delReason
=
delReason
;
}
public
String
getProductionLineId
()
{
return
productionLineId
;
}
...
...
@@ -397,4 +479,20 @@ public class SalesRecordInfo {
public
void
setSaleType
(
Integer
saleType
)
{
this
.
saleType
=
saleType
;
}
public
String
getDataSource
()
{
return
dataSource
;
}
public
void
setDataSource
(
String
dataSource
)
{
this
.
dataSource
=
dataSource
;
}
public
String
getReason
()
{
return
reason
;
}
public
void
setReason
(
String
reason
)
{
this
.
reason
=
reason
;
}
}
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionApprovalCheck.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionApprovalCheck</name>
<title>审核</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='843c71cc-2c88-4dd7-9ce4-c9fd33470389' category='销售/异常数据审核(区域公司)' seq='1'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionApprovalList.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionApprovalList</name>
<title>列表</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='367fd08f-ad86-4931-957e-b9f98cf8c66d' category='销售/异常数据审核(区域公司)' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionCard.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionCard</name>
<title>卡片查看</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='abf4d4f0-f3c4-404f-997c-396f005a9802' category='销售/异常数据(区域公司)' seq='3'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionCreate.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionCreate</name>
<title>新建</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='313913f0-ff31-4ecf-989c-78353a754d68' category='销售/异常数据(区域公司)' seq='1'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionDelete.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionDelete</name>
<title>删除</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='de6beff4-ccb1-46e1-9df6-e95c3d3ef79d' category='销售/异常数据(区域公司)' seq='4'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionEdit.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionEdit</name>
<title>编辑</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='2d92b31f-31d1-447c-b00d-1de1e63a6ff9' category='销售/异常数据(区域公司)' seq='2'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/auth/ExceptionList.mk
0 → 100644
View file @
01609f55
<model>
<header>
<type>bcp.authz.Privilege</type>
<package>com.xyst.dinas.sales.auth</package>
<name>ExceptionList</name>
<title>列表</title>
<tags></tags>
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='3e9ed943-d381-4291-828b-7f963715cdbf' category='销售/异常数据(区域公司)' seq='0'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/datamodel/SalesRecord.mk
View file @
01609f55
...
...
@@ -112,6 +112,29 @@
<attribute id='7b72bf25-26fd-4e24-b3f9-67d4f4733ff2' name='dealBillCode' columnName='deal_bill_code' title='销售单号' type='string' default='' precision='' isArray='false'>
<annotation id='82dec9ef-61f8-4e17-ba12-4df0472b1e73' attributeId='511c5c00-ccf7-48cb-a7bb-1743a2b92e57' name='length' value='50'></annotation>
</attribute>
<attribute id='80dd565a-8a2e-4661-b89b-5384ebafd73c' name='dataSource' columnName='data_source' title='数据来源' type='string' default='' precision='' isArray='false'>
<annotation id='f05b84c7-476d-4397-9d5e-2c37488d9c92' attributeId='f9a9d6f4-a208-45e5-9318-22af73e404ab' name='length' value='50'></annotation>
</attribute>
<attribute id='988d3d4c-1062-41e0-94b9-bd339718330d' name='reason' columnName='reason' title='原因' type='string' default='' precision='' isArray='false'>
<annotation id='d4ae7313-828a-48ff-84cf-d2b1db59a6c9' attributeId='107e0691-586b-49e8-bb75-372e56b01f43' name='length' value='50'></annotation>
</attribute>
<attribute id='e7ca1203-2dfe-4ef0-b6a6-c204aa9a04da' name='delReason' columnName='del_reason' title='删除原因' type='string' default='' precision='' isArray='false'>
<annotation id='23d02bbd-eabd-47b0-a1ea-674af1ee5695' attributeId='8378869d-f001-44fe-9837-a0ccada7d11c' name='length' value='50'></annotation>
</attribute>
<attribute id='76cb3a45-d1ef-4ac7-ade5-3c3c34c21811' name='methodType' columnName='method_type' title='数据方法类型 0:新增 1:删除' type='int' default='' precision='' isArray='false'>
<annotation id='363be135-5265-4354-acd3-09448a570214' attributeId='e5872b18-5a17-431f-a927-b41966b7b982' name='length' value='undefined'>
</annotation>
</attribute>
<attribute id='4cbbfe49-27b0-4439-b357-e6087c3c740b' name='approveStateDel' columnName='approve_state_del' title='删除审核状态 1:待审核 2:审核通过 3 驳回' type='int' default='' precision='' isArray='false'>
<annotation id='999a9b8c-80f4-4b9e-8cf6-2b6d841cb03f' attributeId='bd8184ee-3da7-4f72-a2c1-f44ab3094328' name='length' value='undefined'>
</annotation>
</attribute>
<hibernate>/xyst.dinas.sales/src/main/resources/config/SalesRecord.hbm.xml</hibernate>
</dataModel>
</content>
...
...
backend/xyst.dinas.sales/src/main/model/com/xyst/dinas/sales/query/SalesRecord.mk
View file @
01609f55
...
...
@@ -294,6 +294,52 @@
</ref>
<description></description>
</field>
<field title='数据来源'>
<name>dataSource</name>
<type>string</type>
<description></description>
</field>
<field title='原因'>
<name>reason</name>
<type>string</type>
<description></description>
</field>
<field title='删除原因'>
<name>delReason</name>
<type>string</type>
<description></description>
</field>
<field title='审批状态'>
<name>approveState</name>
<type>int</type>
<description></description>
</field>
<field title='方法类型'>
<name>methodType</name>
<type>int</type>
<description></description>
</field>
<field title='删除审核状态'>
<name>approveStateDel</name>
<type>int</type>
<description></description>
</field>
<field title='删除'>
<name>del</name>
<type>boolean</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
</customQuery>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionApprovalCheck.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
843c71cc-2c88-4dd7-9ce4-c9fd33470389
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionApprovalCheck
</name>
<title>
审核
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据审核(区域公司)
</m:category>
<m:seq>
1
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionApprovalList.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
367fd08f-ad86-4931-957e-b9f98cf8c66d
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionApprovalList
</name>
<title>
列表
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据审核(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionCard.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
abf4d4f0-f3c4-404f-997c-396f005a9802
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionCard
</name>
<title>
卡片查看
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据(区域公司)
</m:category>
<m:seq>
3
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionCreate.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
313913f0-ff31-4ecf-989c-78353a754d68
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionCreate
</name>
<title>
新建
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据(区域公司)
</m:category>
<m:seq>
1
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionDelete.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
de6beff4-ccb1-46e1-9df6-e95c3d3ef79d
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionDelete
</name>
<title>
删除
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据(区域公司)
</m:category>
<m:seq>
4
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionEdit.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
2d92b31f-31d1-447c-b00d-1de1e63a6ff9
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionEdit
</name>
<title>
编辑
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据(区域公司)
</m:category>
<m:seq>
2
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/auth/ExceptionList.jmx
0 → 100644
View file @
01609f55
<?xml version="1.0" encoding="UTF-8"?>
<metadata
xmlns=
"http://www.beecode.cn/schema/amino-metadata"
xmlns:m=
"http://www.beecode.cn/schema/bcp-privilege"
>
<specification>
1.0
</specification>
<id>
3e9ed943-d381-4291-828b-7f963715cdbf
</id>
<name>
com.xyst.dinas.sales.auth.ExceptionList
</name>
<title>
列表
</title>
<define>
bcp.authz.privilege
</define>
<define-version>
1.0.0
</define-version>
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
销售/异常数据(区域公司)
</m:category>
<m:seq>
0
</m:seq>
</m:privilege>
</content>
</metadata>
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/CoefficientOrPrice$sequence.jmx
View file @
01609f55
<?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>
51def093-e3b9-4121-8cc2-2aa74442d430
</id>
<id>
ff252764-684e-4a1c-8dc4-e8ae9be96221
</id>
<name>
com.xyst.dinas.sales.bill.CoefficientOrPrice$sequence
</name>
<title>
折方系数$sequence
</title>
<description>
折方系数
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/CoefficientOrPrice$serial.jmx
View file @
01609f55
<?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>
0e4cf72c-5f9a-4a8f-ac1c-bdc409f3c67d
</id>
<id>
dc3641eb-3c2e-4b2a-809e-75918d8de485
</id>
<name>
com.xyst.dinas.sales.bill.CoefficientOrPrice$serial
</name>
<title>
折方系数$serial
</title>
<description>
折方系数
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/CoefficientOrPrice.jmx
View file @
01609f55
<?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>
8bb674be-6520-4e53-8aec-ceb5324e3d08
</id>
<id>
042bb8a6-0510-4743-99a2-ee67849c0083
</id>
<name>
com.xyst.dinas.sales.bill.CoefficientOrPrice
</name>
<title>
折方系数
</title>
<description>
折方系数
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/NeedPlan$sequence.jmx
View file @
01609f55
<?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>
9e32379c-6520-42b5-b5f1-d0be0612ef1f
</id>
<id>
301746c5-745d-444e-a137-06e6e89343d9
</id>
<name>
com.xyst.dinas.sales.bill.NeedPlan$sequence
</name>
<title>
需用计划$sequence
</title>
<description>
需用计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/NeedPlan$serial.jmx
View file @
01609f55
<?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>
bb4d9dbc-7e5a-4af9-a927-157ac67bae6a
</id>
<id>
f54aea81-d428-45bb-83eb-ad3fd31aeb70
</id>
<name>
com.xyst.dinas.sales.bill.NeedPlan$serial
</name>
<title>
需用计划$serial
</title>
<description>
需用计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/NeedPlan.jmx
View file @
01609f55
<?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>
4af6ee4f-1efe-496d-9873-bebee54f7b60
</id>
<id>
004d95cc-bf1f-4058-940f-2d6b36e1044b
</id>
<name>
com.xyst.dinas.sales.bill.NeedPlan
</name>
<title>
需用计划
</title>
<description>
需用计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlan$sequence.jmx
View file @
01609f55
<?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>
1232ebe3-2332-4a4e-b2fc-0c7ce520826
4
</id>
<id>
a00450b4-1667-495b-93c4-d9bba2eb01d
4
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlan$sequence
</name>
<title>
销售计划$sequence
</title>
<description>
销售计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlan$serial.jmx
View file @
01609f55
<?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>
bb8d5d82-a778-4637-8853-42386e48b295
</id>
<id>
2986ba9a-f4b4-45df-ac73-facc6f39a161
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlan$serial
</name>
<title>
销售计划$serial
</title>
<description>
销售计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlan.jmx
View file @
01609f55
<?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>
ae71c114-c0f3-423a-bd4e-54993231a96c
</id>
<id>
cffd3a4e-f920-4c4c-94e0-2834863b2764
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlan
</name>
<title>
销售计划
</title>
<description>
销售计划
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlanTemp$sequence.jmx
View file @
01609f55
<?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>
bbfd31d3-f010-4304-a7a8-25d00948360e
</id>
<id>
9ffc7bf0-cdfc-4bc7-bfd7-e348bd9fd045
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlanTemp$sequence
</name>
<title>
临时销售计划$sequence
</title>
<define>
bcp.sequence
</define>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlanTemp$serial.jmx
View file @
01609f55
<?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>
c2304b4b-ec3a-4bd4-adc3-7221a84d9515
</id>
<id>
23a13afe-7da5-43f1-a134-96ea5a457508
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlanTemp$serial
</name>
<title>
临时销售计划$serial
</title>
<define>
bcp.serial
</define>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/SalesPlanTemp.jmx
View file @
01609f55
<?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>
274e1c1a-e5e2-4f41-8e46-b6d91eeda43a
</id>
<id>
581cc94c-1082-480e-8d0c-bda7a5256aa5
</id>
<name>
com.xyst.dinas.sales.bill.SalesPlanTemp
</name>
<title>
临时销售计划
</title>
<define>
bcp.biz.Biztype
</define>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/ShipQuantity$sequence.jmx
View file @
01609f55
<?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>
b77e29a3-4adb-44b0-abd0-aff3fce97110
</id>
<id>
246c9383-3efa-40db-839a-fd19e0131d87
</id>
<name>
com.xyst.dinas.sales.bill.ShipQuantity$sequence
</name>
<title>
运船量方$sequence
</title>
<description>
运船量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/ShipQuantity$serial.jmx
View file @
01609f55
<?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>
a
15e721b-043b-49f8-83b5-8591003b195d
</id>
<id>
a
84a60f3-55d2-4995-b295-1e44cf0ad0f5
</id>
<name>
com.xyst.dinas.sales.bill.ShipQuantity$serial
</name>
<title>
运船量方$serial
</title>
<description>
运船量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/ShipQuantity.jmx
View file @
01609f55
<?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>
e97b46ec-daf5-4d26-b5b0-e9ef80af4975
</id>
<id>
7817b4fc-6cdc-4229-9a5e-00f2b26d2b22
</id>
<name>
com.xyst.dinas.sales.bill.ShipQuantity
</name>
<title>
运船量方
</title>
<description>
运船量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/VehicleAmountParty$sequence.jmx
View file @
01609f55
<?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>
c3553f15-3381-40b3-a961-1ff6db94d0ef
</id>
<id>
6a4de93b-77da-4e8a-82e2-cb59e61f5d30
</id>
<name>
com.xyst.dinas.sales.bill.VehicleAmountParty$sequence
</name>
<title>
车辆量方$sequence
</title>
<description>
车辆量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/VehicleAmountParty$serial.jmx
View file @
01609f55
<?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>
6e8a3733-bf3b-4010-9424-b014a38323a1
</id>
<id>
7cd00f77-5428-4cec-8074-3ef756cb3c44
</id>
<name>
com.xyst.dinas.sales.bill.VehicleAmountParty$serial
</name>
<title>
车辆量方$serial
</title>
<description>
车辆量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/bill/VehicleAmountParty.jmx
View file @
01609f55
<?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>
69fb3580-a72e-4a5d-8758-f28d80ae7289
</id>
<id>
239717be-513e-4020-9f96-267d132880fa
</id>
<name>
com.xyst.dinas.sales.bill.VehicleAmountParty
</name>
<title>
车辆量方
</title>
<description>
车辆量方
</description>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/datamodel/SalesRecord.jmx
View file @
01609f55
...
...
@@ -704,6 +704,113 @@
<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>
50
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
data_source
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
80dd565a-8a2e-4661-b89b-5384ebafd73c
</m:id>
<m:name>
dataSource
</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>
50
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
reason
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
988d3d4c-1062-41e0-94b9-bd339718330d
</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:annotation>
<m:type>
bcp.type.constraint.StringLength
</m:type>
<m:value>
50
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
del_reason
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
e7ca1203-2dfe-4ef0-b6a6-c204aa9a04da
</m:id>
<m:name>
delReason
</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>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
method_type
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
76cb3a45-d1ef-4ac7-ade5-3c3c34c21811
</m:id>
<m:name>
methodType
</m:name>
<m:title>
数据方法类型 0:新增 1:删除
</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>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
approve_state_del
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
4cbbfe49-27b0-4439-b357-e6087c3c740b
</m:id>
<m:name>
approveStateDel
</m:name>
<m:title>
删除审核状态 1:待审核 2:审核通过 3 驳回
</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.sales/src/main/resources/com/xyst/dinas/sales/query/SalesRecord.jmx
View file @
01609f55
...
...
@@ -389,6 +389,76 @@
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
dataSource
</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>
delReason
</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>
approveState
</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>
methodType
</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>
approveStateDel
</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>
...
...
backend/xyst.dinas.sales/src/main/resources/config/SalesRecord.hbm.xml
View file @
01609f55
...
...
@@ -111,5 +111,35 @@
<property
name=
"dealBillCode"
type=
"nstring"
not-null=
"false"
>
<column
name=
"deal_bill_code"
length=
"50"
></column>
</property>
<property
name=
"dataSource"
type=
"nstring"
not-null=
"false"
>
<column
name=
"data_source"
length=
"50"
>
<comment>
数据来源
</comment>
</column>
</property>
<property
name=
"reason"
type=
"nstring"
not-null=
"false"
>
<column
name=
"reason"
length=
"50"
>
<comment>
原因
</comment>
</column>
</property>
<property
name=
"delReason"
type=
"nstring"
not-null=
"false"
>
<column
name=
"del_reason"
length=
"50"
>
<comment>
删除原因
</comment>
</column>
</property>
<property
name=
"methodType"
type=
"integer"
not-null=
"false"
>
<column
name=
"method_type"
>
<comment>
数据方法类型 0:新增 1:删除
</comment>
</column>
</property>
<property
name=
"approveStateDel"
type=
"integer"
not-null=
"false"
>
<column
name=
"approve_state_del"
>
<comment>
删除审核状态 1:待审核 2:审核通过 3 驳回
</comment>
</column>
</property>
</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