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
c4baa8d1
Commit
c4baa8d1
authored
Jun 25, 2021
by
焦凯
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of gitlab.beecode.cn:kunlun/xyst_dinas/xyst_dinas_backend into develop
parents
77fb4816
e9e38cf8
Show whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
349 additions
and
78 deletions
+349
-78
TenantInitListener.java
...src/main/java/com/beecode/inz/war/TenantInitListener.java
+1
-0
AuthMgrConstants.java
...java/com/beecode/inz/authmgr/common/AuthMgrConstants.java
+1
-0
AuthManagerServiceImpl.java
.../inz/authmgr/internal/service/AuthManagerServiceImpl.java
+3
-0
DefaultFunctionTree.jmx
...m/beecode/inz/portal/functiontree/DefaultFunctionTree.jmx
+1
-1
LicenseKeys.java
...mon/src/main/java/com/beecode/inz/common/LicenseKeys.java
+4
-0
QueryParam.java
...ain/java/com/beecode/inz/message/internal/QueryParam.java
+13
-0
MessageInfo.java
...in/java/com/beecode/inz/message/web/info/MessageInfo.java
+0
-2
RetailInfoServiceImpl.java
...yst/dinas/biz/internal/service/RetailInfoServiceImpl.java
+17
-8
WarningServiceImpl.java
...main/java/com/xyst/dinas/biz/warn/WarningServiceImpl.java
+30
-4
WarningService.java
.../java/com/xyst/dinas/biz/warn/service/WarningService.java
+3
-1
DinasCommonController.java
...in/java/com/xyst/dinas/biz/web/DinasCommonController.java
+134
-0
RetailInfoController.java
...ain/java/com/xyst/dinas/biz/web/RetailInfoController.java
+6
-1
StationController.java
...c/main/java/com/xyst/dinas/biz/web/StationController.java
+11
-0
WarnSettingController.java
...in/java/com/xyst/dinas/biz/web/WarnSettingController.java
+17
-0
DinasType.hbm.xml
...yst.dinas.biz/src/main/resources/config/DinasType.hbm.xml
+1
-1
SandMiningArea.hbm.xml
...inas.biz/src/main/resources/config/SandMiningArea.hbm.xml
+1
-1
ShipInfo.hbm.xml
...xyst.dinas.biz/src/main/resources/config/ShipInfo.hbm.xml
+1
-1
Station.hbm.xml
.../xyst.dinas.biz/src/main/resources/config/Station.hbm.xml
+1
-1
CameraInfo.hbm.xml
...dinas.camera/src/main/resources/config/CameraInfo.hbm.xml
+1
-1
ArtificialRechargeServiceImpl.java
...nance/internal/service/ArtificialRechargeServiceImpl.java
+1
-1
FinanceRefund.mk
...n/model/com/xyst/dinas/finance/datamodel/FinanceRefund.mk
+3
-0
FinanceRefund.mk
.../main/model/com/xyst/dinas/finance/query/FinanceRefund.mk
+9
-1
ArtificialRechargeCard.mk
...del/com/xyxt/dinas/finance/auth/ArtificialRechargeCard.mk
+2
-1
ExpenseAdjustCard.mk
...in/model/com/xyxt/dinas/finance/auth/ExpenseAdjustCard.mk
+2
-1
FinanceRefundCard.mk
...in/model/com/xyxt/dinas/finance/auth/FinanceRefundCard.mk
+2
-1
ArtificialRechargeCard.jmx
...es/com/xyst/dinas/finance/auth/ArtificialRechargeCard.jmx
+1
-1
ExpenseAdjustCard.jmx
...sources/com/xyst/dinas/finance/auth/ExpenseAdjustCard.jmx
+1
-1
FinanceRefundCard.jmx
...sources/com/xyst/dinas/finance/auth/FinanceRefundCard.jmx
+1
-1
FinanceRefund.jmx
...ources/com/xyst/dinas/finance/datamodel/FinanceRefund.jmx
+23
-0
FinanceRefund.jmx
.../resources/com/xyst/dinas/finance/query/FinanceRefund.jmx
+10
-0
FinanceRefundNoAuthFilter.jmx
...om/xyst/dinas/finance/query/FinanceRefundNoAuthFilter.jmx
+10
-0
FinanceRefund.hbm.xml
...s.finance/src/main/resources/config/FinanceRefund.hbm.xml
+3
-0
PriceAdjustmentCard.mk
...in/model/com/xyst/dinas/price/auth/PriceAdjustmentCard.mk
+1
-1
PriceAdjustmentList.mk
...in/model/com/xyst/dinas/price/auth/PriceAdjustmentList.mk
+1
-1
PriceAdjustmentCard.jmx
...sources/com/xyst/dinas/price/auth/PriceAdjustmentCard.jmx
+1
-1
PriceAdjustmentList.jmx
...sources/com/xyst/dinas/price/auth/PriceAdjustmentList.jmx
+1
-1
SandWarningExeProcessor.java
...st/dinas/production/internal/SandWarningExeProcessor.java
+2
-2
SandWarningExe.jmx
...ources/com/xyst/dinas/production/query/SandWarningExe.jmx
+11
-0
ProductionLineViolation.mk
...odel/com/xyst/dinas/safe/query/ProductionLineViolation.mk
+1
-1
ShipViolation.mk
...src/main/model/com/xyst/dinas/safe/query/ShipViolation.mk
+2
-2
StaffViolation.mk
...rc/main/model/com/xyst/dinas/safe/query/StaffViolation.mk
+1
-1
ProductionLineViolation.jmx
...ces/com/xyst/dinas/safe/query/ProductionLineViolation.jmx
+1
-1
ShipViolation.jmx
...ain/resources/com/xyst/dinas/safe/query/ShipViolation.jmx
+2
-2
StaffViolation.jmx
...in/resources/com/xyst/dinas/safe/query/StaffViolation.jmx
+1
-1
ProjectAdvQuery.jmx
...urces/com/xyst/dinas/sales/advanquery/ProjectAdvQuery.jmx
+0
-1
ProjectQueryView.jmx
...rces/com/xyst/dinas/sales/advanquery/ProjectQueryView.jmx
+0
-11
ProjectQueryViewRegionalCompany.jmx
...inas/sales/advanquery/ProjectQueryViewRegionalCompany.jmx
+0
-11
AdvancePaymentBalanceSumDaoImpl.java
...tistics/internal/dao/AdvancePaymentBalanceSumDaoImpl.java
+3
-1
ProjectDinasTypeByTypeStatisticsAdvQuery.jmx
...s/advanquery/ProjectDinasTypeByTypeStatisticsAdvQuery.jmx
+4
-7
VehicleDispatchServiceImpl.java
...ransport/internal/service/VehicleDispatchServiceImpl.java
+1
-1
TransportAnalysisList.mk
...el/com/xyst/dinas/transport/auth/TransportAnalysisList.mk
+1
-1
VehicleViolationList.mk
...del/com/xyst/dinas/transport/auth/VehicleViolationList.mk
+1
-1
No files found.
backend/build.war/src/main/java/com/beecode/inz/war/TenantInitListener.java
View file @
c4baa8d1
...
...
@@ -100,6 +100,7 @@ public class TenantInitListener implements ApplicationListener<ApplicationReady
this
.
addLicence
(
"md_sys"
);
this
.
addLicence
(
"md_bill"
);
this
.
addLicence
(
"md_bi"
);
this
.
addLicence
(
"md_fileshared"
);
}
private
void
addLicence
(
String
key
){
...
...
backend/inz.authmgr/src/main/java/com/beecode/inz/authmgr/common/AuthMgrConstants.java
View file @
c4baa8d1
...
...
@@ -21,6 +21,7 @@ public final class AuthMgrConstants {
public
final
static
String
STATISTICS
=
"统计"
;
public
final
static
String
BILL
=
"报表"
;
public
final
static
String
BI
=
"综合BI"
;
public
final
static
String
FILESHARED
=
"文件共享"
;
}
public
static
final
class
SystemRoleGroup
{
...
...
backend/inz.authmgr/src/main/java/com/beecode/inz/authmgr/internal/service/AuthManagerServiceImpl.java
View file @
c4baa8d1
...
...
@@ -411,6 +411,9 @@ public class AuthManagerServiceImpl implements AuthManagerService,ApplicationEve
if
(
RoleRootGroup
.
BI
.
equals
(
privilegeGroup
))
{
return
LicenseKeys
.
BI_PERMIT
;
}
if
(
RoleRootGroup
.
FILESHARED
.
equals
(
privilegeGroup
))
{
return
LicenseKeys
.
FILESHARED_PERMIT
;
}
return
null
;
}
...
...
backend/inz.basis/src/main/resources/com/beecode/inz/portal/functiontree/DefaultFunctionTree.jmx
View file @
c4baa8d1
...
...
@@ -1716,7 +1716,7 @@
<m:name>
fileshared_list
</m:name>
<m:title>
文件共享
</m:title>
<m:index>
1000
</m:index>
<m:license></m:license>
<m:license>
md_fileshared
</m:license>
<m:privilege>
com.xyst.dinas.fileshared.auth.FilesharedList
</m:privilege>
<m:role></m:role>
<m:function-definition>
...
...
backend/inz.common/src/main/java/com/beecode/inz/common/LicenseKeys.java
View file @
c4baa8d1
...
...
@@ -69,4 +69,8 @@ public interface LicenseKeys {
* 许可访问综合BI模块
*/
public
final
String
BI_PERMIT
=
"md_bi"
;
/**
* 许可访问文件共享模块
*/
public
final
String
FILESHARED_PERMIT
=
"md_fileshared"
;
}
backend/inz.message/src/main/java/com/beecode/inz/message/internal/QueryParam.java
View file @
c4baa8d1
...
...
@@ -27,6 +27,11 @@ public class QueryParam {
*/
private
String
type
;
/**
* 用户Id
*/
private
String
userId
;
public
String
getType
()
{
...
...
@@ -69,4 +74,12 @@ public class QueryParam {
this
.
orderField
=
orderField
;
}
public
String
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
}
}
backend/inz.message/src/main/java/com/beecode/inz/message/web/info/MessageInfo.java
View file @
c4baa8d1
...
...
@@ -8,7 +8,6 @@ import org.slf4j.LoggerFactory;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.inz.message.MessageInfoConstants
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
public
class
MessageInfo
{
...
...
@@ -22,7 +21,6 @@ public class MessageInfo {
private
ReferenceInfo
sender
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
createTime
;
private
String
type
;
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/internal/service/RetailInfoServiceImpl.java
View file @
c4baa8d1
...
...
@@ -3,6 +3,7 @@ package com.xyst.dinas.biz.internal.service;
import
com.beecode.bap.attachment.common.Page
;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.service.WarehouseUserService
;
import
com.beecode.inz.common.BaseConstants
;
import
com.xyst.dinas.biz.constant.RetailInfoConstant
;
import
com.xyst.dinas.biz.dao.DinasTypeDao
;
...
...
@@ -10,12 +11,11 @@ import com.xyst.dinas.biz.dao.RetailInfoDao;
import
com.xyst.dinas.biz.processor.RetailInfoBuyAmountWarningCalculate
;
import
com.xyst.dinas.biz.processor.RetailInfoBuyCountWarningCalculate
;
import
com.xyst.dinas.biz.service.RetailInfoService
;
import
com.xyst.dinas.biz.warn.BaseBusinessWarn
;
import
com.xyst.dinas.biz.warn.WarnSetting
;
import
com.xyst.dinas.biz.warn.WarnSettingEntity
;
import
com.xyst.dinas.biz.warn.WarnTargetTypeEnum
;
import
com.xyst.dinas.biz.warn.*
;
import
com.xyst.dinas.biz.warn.service.WarningService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -23,6 +23,7 @@ import java.math.BigDecimal;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.UUID
;
import
java.util.stream.Collectors
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
RetailInfoServiceImpl
implements
RetailInfoService
{
...
...
@@ -34,6 +35,9 @@ public class RetailInfoServiceImpl implements RetailInfoService {
private
DinasTypeDao
dinasTypeDao
;
@Autowired
private
WarningService
warningService
;
@Autowired
private
WarehouseUserService
warehouseUserService
;
@Override
public
Page
<
KObject
>
queryByPaging
(
Page
<
KObject
>
page
,
Integer
retailInfoStatus
)
throws
Exception
{
...
...
@@ -74,10 +78,11 @@ public class RetailInfoServiceImpl implements RetailInfoService {
if
(
warnSetting
!=
null
)
{
BaseBusinessWarn
warn
=
warningService
.
createWarn
(
warnSetting
.
getSettingId
());
warn
.
setWarningCalculate
(
new
RetailInfoBuyCountWarningCalculate
(
retailInfoName
,
idCard
,
station
,
selectBuyCountByIdCard
(
idCard
,
station
)));
warn
.
warn
(
fals
e
);
warn
.
warn
(
tru
e
);
}
else
{
setWarningSettingEntity
(
newKobject
,
uuid
,
RetailInfoConstant
.
RETAIL_INFO_WARN_BUY_COUNT
,
RetailInfoConstant
.
RETAIL_INFO_BUY_COUNT_WARNING_CALCULATOR
,
templateCount
.
getMax
(),
false
,
true
);
}
//购买重量预警
//查询场站是否有对应的预警模板
templateCount
=
warningService
.
queryOneWarnSettingsByMemoAndType
(
RetailInfoConstant
.
RETAIL_INFO_WARN_BUY_AMOUNT
,
station
.
toString
(),
"template"
);
...
...
@@ -95,6 +100,7 @@ public class RetailInfoServiceImpl implements RetailInfoService {
}
private
WarnSettingEntity
setWarningSettingEntity
(
KObject
kObject
,
UUID
uuid
,
String
target
,
String
warnCalculator
,
String
max
,
boolean
isTemplate
,
boolean
isOpen
)
{
String
stationId
=
kObject
.
get
(
"station"
).
getString
(
BaseConstants
.
ID
);
WarnSettingEntity
warnSettingEntity
=
new
WarnSettingEntity
();
warnSettingEntity
.
setBillType
(
RetailInfoConstant
.
RETAIL_INFO_WARN_BILL_TYPE
);
warnSettingEntity
.
setBillId
(
uuid
);
...
...
@@ -103,7 +109,7 @@ public class RetailInfoServiceImpl implements RetailInfoService {
warnSettingEntity
.
setTargetType
(
WarnTargetTypeEnum
.
INT_TYPE
.
name
());
warnSettingEntity
.
setOpen
(
isOpen
);
HashMap
<
String
,
String
>
stringStringHashMap
=
new
HashMap
<>();
stringStringHashMap
.
put
(
"stationId"
,
kObject
.
get
(
"station"
).
getString
(
BaseConstants
.
ID
)
);
stringStringHashMap
.
put
(
"stationId"
,
stationId
);
if
(
isTemplate
){
stringStringHashMap
.
put
(
"template"
,
"template"
);
}
else
{
...
...
@@ -111,8 +117,10 @@ public class RetailInfoServiceImpl implements RetailInfoService {
stringStringHashMap
.
put
(
"retailInfoName"
,
kObject
.
getString
(
"retailInfoName"
));
}
warnSettingEntity
.
setMemo
(
JSONObjectUtils
.
toJson
(
stringStringHashMap
).
toString
());
List
<
KObject
>
allByStationId
=
warehouseUserService
.
getAllByStationId
(
UUID
.
fromString
(
stationId
));
warnSettingEntity
.
setPersonnel
(
allByStationId
.
stream
().
map
(
a
->
a
.
getString
(
"id"
)).
toArray
(
String
[]::
new
));
warnSettingEntity
.
setWarnCalculator
(
warnCalculator
);
warningService
.
insertWarnSettingToIsNotice
(
warnSettingEntity
,
fals
e
);
warningService
.
insertWarnSettingToIsNotice
(
warnSettingEntity
,
tru
e
);
return
warnSettingEntity
;
}
...
...
@@ -127,6 +135,8 @@ public class RetailInfoServiceImpl implements RetailInfoService {
}
}
@Override
public
KObject
getById
(
UUID
id
)
{
return
retailInfoDao
.
load
(
id
);
...
...
@@ -177,7 +187,6 @@ public class RetailInfoServiceImpl implements RetailInfoService {
@Override
public
Long
selectBuyCountByIdCard
(
String
idCard
,
UUID
uuid
)
{
return
retailInfoDao
.
selectBuyCountByIdCard
(
idCard
,
uuid
);
}
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/warn/WarningServiceImpl.java
View file @
c4baa8d1
...
...
@@ -2,8 +2,11 @@ package com.xyst.dinas.biz.warn;
import
java.time.LocalDateTime
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
com.beecode.inz.basis.service.WarehouseUserService
;
import
com.xyst.dinas.biz.constant.RetailInfoConstant
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.lang.Nullable
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -25,6 +28,8 @@ public class WarningServiceImpl implements WarningService {
@Autowired
private
WarnSettingDao
warnSettingDao
;
@Autowired
private
WarehouseUserService
warehouseUserService
;
/**
* 新增预警设置<br/>
...
...
@@ -281,7 +286,8 @@ public class WarningServiceImpl implements WarningService {
}
@Override
public
void
updateRetailInfoWarnSettingAllByTypeAndMemo
(
String
target
,
String
toString
,
Double
max
)
{
public
void
updateRetailInfoWarnSettingAllByTypeAndMemo
(
String
target
,
String
toString
,
Double
max
,
List
<
KObject
>
allWarehouseUserByStationId
)
{
String
stationUserIds
=
allWarehouseUserByStationId
.
stream
().
map
(
a
->
a
.
getString
(
"id"
)).
collect
(
Collectors
.
joining
(
","
));
List
<?>
objects
=
warnSettingDao
.
queryWarnSettingsListByMemoAndType
(
target
,
toString
);
if
(
objects
.
size
()
<
1
)
{
String
warnCalculator
;
...
...
@@ -298,11 +304,31 @@ public class WarningServiceImpl implements WarningService {
Assert
.
notNull
(
uuid
,
"The warSettingId must not be null"
);
KObject
warSettingIdObj
=
warnSettingDao
.
queryWarnSettingById
(
uuid
);
warSettingIdObj
.
set
(
WarnSettingConstant
.
max
,
max
);
warSettingIdObj
.
set
(
WarnSettingConstant
.
personnel
,
stationUserIds
);
warnSettingDao
.
update
(
warSettingIdObj
);
//修改后触发预警
BaseBusinessWarn
baseBusinessWarn
=
new
BaseBusinessWarn
(
uuid
);
baseBusinessWarn
.
warn
(
false
);
baseBusinessWarn
.
warn
(
true
);
}
}
@Override
public
void
updateRetailInfoWarnSettingPersonnelByStationId
(
UUID
stationId
){
List
<
KObject
>
allWarehouseUserByStationId
=
warehouseUserService
.
getAllByStationId
(
stationId
);
String
[]
stationUserIds
=
allWarehouseUserByStationId
.
stream
().
map
(
a
->
a
.
getString
(
"id"
)).
toArray
(
String
[]::
new
);
List
<
KObject
>
objects
=
(
List
<
KObject
>)
warnSettingDao
.
queryWarnSettingsListByMemoAndType
(
RetailInfoConstant
.
RETAIL_INFO_WARN_BUY_AMOUNT
,
stationId
.
toString
());
if
(!
CollectionUtils
.
isEmpty
(
objects
)){
List
<
KObject
>
objects1
=
(
List
<
KObject
>)
warnSettingDao
.
queryWarnSettingsListByMemoAndType
(
RetailInfoConstant
.
RETAIL_INFO_WARN_BUY_COUNT
,
stationId
.
toString
());
objects
.
addAll
(
objects1
);
}
for
(
KObject
o
:
objects
)
{
o
.
set
(
WarnSettingConstant
.
personnel
,
stationUserIds
);
warnSettingDao
.
update
(
o
);
}
}
...
...
@@ -316,14 +342,14 @@ public class WarningServiceImpl implements WarningService {
}
else
if
(
target
.
equals
(
RetailInfoConstant
.
RETAIL_INFO_WARN_BUY_COUNT
)){
warnSettingEntity
.
setTargetType
(
WarnTargetTypeEnum
.
INT_TYPE
.
name
());
}
warnSettingEntity
.
setOpen
(
fals
e
);
warnSettingEntity
.
setOpen
(
tru
e
);
HashMap
<
String
,
String
>
stringStringHashMap
=
new
HashMap
<>();
stringStringHashMap
.
put
(
"stationId"
,
stationId
);
stringStringHashMap
.
put
(
"template"
,
"template"
);
warnSettingEntity
.
setMax
(
max
+
""
);
warnSettingEntity
.
setMemo
(
JSONObjectUtils
.
toJson
(
stringStringHashMap
).
toString
());
warnSettingEntity
.
setWarnCalculator
(
warnCalculator
);
insertWarnSettingToIsNotice
(
warnSettingEntity
,
fals
e
);
insertWarnSettingToIsNotice
(
warnSettingEntity
,
tru
e
);
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/warn/service/WarningService.java
View file @
c4baa8d1
...
...
@@ -103,5 +103,7 @@ public interface WarningService {
WarnSetting
queryOneWarnSettingsByMemoAndType
(
String
target
,
String
...
memo
);
void
updateRetailInfoWarnSettingAllByTypeAndMemo
(
String
target
,
String
toString
,
Double
max
);
void
updateRetailInfoWarnSettingPersonnelByStationId
(
UUID
stationId
);
void
updateRetailInfoWarnSettingAllByTypeAndMemo
(
String
target
,
String
toString
,
Double
max
,
List
<
KObject
>
stationUsers
);
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/DinasCommonController.java
View file @
c4baa8d1
...
...
@@ -16,6 +16,8 @@ import java.util.zip.CheckedOutputStream;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipOutputStream
;
import
javax.servlet.http.HttpServletRequest
;
import
org.json.JSONObject
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -26,6 +28,7 @@ import org.springframework.format.annotation.DateTimeFormat;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.util.Assert
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -48,7 +51,13 @@ import com.beecode.bcp.authz.service.PrivilegeService;
import
com.beecode.bcp.type.KObject
;
import
com.beecode.bcp.type.json.JSONObjectUtils
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.inz.message.internal.QueryParam
;
import
com.beecode.inz.message.service.MessageInfoService
;
import
com.beecode.inz.message.util.MessageUtils
;
import
com.beecode.inz.message.web.info.MessageInfo
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.google.gson.Gson
;
import
com.google.gson.JsonSyntaxException
;
import
com.xyst.dinas.biz.enumeration.PlanningCycleEnum
;
import
com.xyst.dinas.biz.service.DinasCommonService
;
import
com.xyst.dinas.biz.service.DinasOrganizationService
;
...
...
@@ -74,8 +83,13 @@ public class DinasCommonController {
PrivilegeService
privilegeService
;
@Autowired
private
MessageInfoService
messageInfoService
;
@Autowired
private
HttpServletRequest
request
;
@Autowired
public
AttachmentService
attachmentService
;
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
private
final
static
String
READ
=
"read"
;
/**
* @Description: 根据部门id查询全公司及其该部门的子部门(包括该部门自身)
...
...
@@ -352,5 +366,125 @@ public class DinasCommonController {
}
return
false
;
}
/**
* 获取指定消息类型指定页的消息-已读未读都包含,未读在前面(场站用户)
* @throws Exception
*/
@RequestMapping
(
value
=
"/warehouse/api/common/messages/query"
,
method
=
RequestMethod
.
POST
)
public
Object
queryByPagingWarehouse
(
@RequestBody
String
body
)
throws
Exception
{
Gson
gson
=
new
Gson
();
QueryParam
param
=
null
;
try
{
param
=
gson
.
fromJson
(
body
,
QueryParam
.
class
);
}
catch
(
JsonSyntaxException
e
){
logger
.
error
(
"Paging param is no correct"
);
throw
new
JsonSyntaxException
(
"Paging param is no correct"
,
e
);
}
if
(
param
==
null
){
logger
.
error
(
"Paging param is no correct"
);
throw
new
Exception
(
"Paging param is no correct"
);
}
String
userId
=
param
.
getUserId
();
List
<
KObject
>
lists
=
messageInfoService
.
queryByPaging
(
userId
,
param
);
List
<
MessageInfo
>
messageInfos
=
new
ArrayList
<
MessageInfo
>();
for
(
KObject
kobject
:
lists
){
messageInfos
.
add
(
new
MessageInfo
(
kobject
));
}
return
messageInfos
;
}
/**
* 获取指定消息类型指定页的消息-已读未读都包含,未读在前面(购砂单位用户)
* @throws Exception
*/
@RequestMapping
(
value
=
"/sand/user/common/messages/query"
,
method
=
RequestMethod
.
POST
)
public
Object
queryByPagingSand
(
@RequestBody
String
body
)
throws
Exception
{
Gson
gson
=
new
Gson
();
QueryParam
param
=
null
;
try
{
param
=
gson
.
fromJson
(
body
,
QueryParam
.
class
);
}
catch
(
JsonSyntaxException
e
){
logger
.
error
(
"Paging param is no correct"
);
throw
new
JsonSyntaxException
(
"Paging param is no correct"
,
e
);
}
if
(
param
==
null
){
logger
.
error
(
"Paging param is no correct"
);
throw
new
Exception
(
"Paging param is no correct"
);
}
String
userId
=
param
.
getUserId
();
List
<
KObject
>
lists
=
messageInfoService
.
queryByPaging
(
userId
,
param
);
List
<
MessageInfo
>
messageInfos
=
new
ArrayList
<
MessageInfo
>();
for
(
KObject
kobject
:
lists
){
messageInfos
.
add
(
new
MessageInfo
(
kobject
));
}
return
messageInfos
;
}
/**
* 根据消息的id更改消息的状态为已读(场站用户)
* @param partId
* @return
*/
@RequestMapping
(
value
=
"/warehouse/api/common/message/{msgid}"
,
method
=
RequestMethod
.
PUT
)
public
void
updateReadStatusByMsgIdWarehouse
(
@PathVariable
(
"msgid"
)
String
msgid
)
{
Assert
.
notNull
(
msgid
,
"msgid must not be null"
);
String
operation
=
request
.
getHeader
(
"operation"
);
switch
(
operation
){
case
READ:
messageInfoService
.
updateReadStatusByMsgId
(
msgid
);
break
;
default
:
throw
new
UnsupportedOperationException
(
"operation: "
+
operation
);
}
}
/**
* 根据消息的id更改消息的状态为已读(购砂单位用户)
* @param partId
* @return
*/
@RequestMapping
(
value
=
"/sand/user/common/message/{msgid}"
,
method
=
RequestMethod
.
PUT
)
public
void
updateReadStatusByMsgIdSand
(
@PathVariable
(
"msgid"
)
String
msgid
)
{
Assert
.
notNull
(
msgid
,
"msgid must not be null"
);
String
operation
=
request
.
getHeader
(
"operation"
);
switch
(
operation
){
case
READ:
messageInfoService
.
updateReadStatusByMsgId
(
msgid
);
break
;
default
:
throw
new
UnsupportedOperationException
(
"operation: "
+
operation
);
}
}
/**
* 根据当前用户的id和消息类型获取未读消息数量(场站用户)
* @param partId
* @return
* @throws Exception
*/
@RequestMapping
(
value
=
"/warehouse/api/common/message/noread/count"
,
method
=
RequestMethod
.
GET
)
public
Object
countNoReadByUserIdAndType
(
@RequestParam
String
type
,
@RequestParam
UUID
userId
)
throws
Exception
{
String
count
=
messageInfoService
.
countNoReadByUserIdAndType
(
userId
.
toString
(),
type
);
return
count
;
}
/**
* 根据当前用户的id和消息类型获取未读消息数量(购砂单位用户)
* @param partId
* @return
* @throws Exception
*/
@RequestMapping
(
value
=
"/sand/user/common/message/noread/count"
,
method
=
RequestMethod
.
GET
)
public
Object
countNoReadByUserIdAndTypeSand
(
@RequestParam
String
type
,
@RequestParam
UUID
userId
)
throws
Exception
{
//String userId = MessageUtils.gerCurrentUserId(isCustomer);
String
count
=
messageInfoService
.
countNoReadByUserIdAndType
(
userId
.
toString
(),
type
);
return
count
;
}
}
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/RetailInfoController.java
View file @
c4baa8d1
...
...
@@ -5,6 +5,7 @@ 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.service.WarehouseUserService
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.xyst.dinas.biz.constant.RetailInfoConstant
;
...
...
@@ -16,6 +17,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
import
java.util.UUID
;
/**
...
...
@@ -32,6 +34,8 @@ public class RetailInfoController {
private
RetailInfoService
retailInfoService
;
@Autowired
private
WarningService
warningService
;
@Autowired
private
WarehouseUserService
warehouseUserService
;
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
...
...
@@ -137,7 +141,8 @@ public class RetailInfoController {
if
(
StringUtils
.
isEmpty
(
target
)){
return
ResponseObj
.
error
(
400
,
"指标错误"
);
}
warningService
.
updateRetailInfoWarnSettingAllByTypeAndMemo
(
target
,
stationId
.
toString
(),
Double
.
parseDouble
(
max
));
List
<
KObject
>
allWarehouseUserByStationId
=
warehouseUserService
.
getAllByStationId
(
stationId
);
warningService
.
updateRetailInfoWarnSettingAllByTypeAndMemo
(
target
,
stationId
.
toString
(),
Double
.
parseDouble
(
max
),
allWarehouseUserByStationId
);
return
ResponseObj
.
success
();
}
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/StationController.java
View file @
c4baa8d1
...
...
@@ -5,10 +5,12 @@ 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.service.WarehouseUserService
;
import
com.beecode.inz.basis.team.pojo.ResponseObj
;
import
com.beecode.nlib.utils.StringUtils
;
import
com.xyst.dinas.biz.constant.StationConstant
;
import
com.xyst.dinas.biz.service.StationService
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -29,6 +31,9 @@ public class StationController {
@Autowired
private
StationService
stationService
;
@Autowired
private
WarehouseUserService
warehouseUserService
;
@RequestMapping
(
value
=
"list/page"
,
method
=
RequestMethod
.
GET
)
public
ResponseObj
getListPage
(
...
...
@@ -131,6 +136,12 @@ public class StationController {
if
(
id
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
//查询是否有未删除的场站人员
List
<
KObject
>
allByStationId
=
warehouseUserService
.
getAllByStationId
(
id
);
if
(
CollectionUtils
.
isNotEmpty
(
allByStationId
)){
return
ResponseObj
.
error
(
500
,
"有关联的场站人员,不许删除"
);
}
//查询是否有根据合同关联的场站
stationService
.
deleteById
(
id
);
return
ResponseObj
.
success
(
"删除成功"
);
}
...
...
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/web/WarnSettingController.java
View file @
c4baa8d1
...
...
@@ -92,4 +92,21 @@ public class WarnSettingController {
return
ResponseObj
.
success
(
"查询成功"
,
personnel
);
}
/**
* 修改散户预警设置的人员
* @param stationId 场站id
* @return
*/
@PostMapping
(
"/warnsetting/updateRetailInfoWarnSettingPersonnelByStationId/{stationId}"
)
public
ResponseObj
updateWaringSettingPersonnel
(
@PathVariable
(
"stationId"
)
UUID
stationId
){
if
(
stationId
==
null
){
return
ResponseObj
.
error
(
400
,
"'id' must be not null!"
);
}
warningService
.
updateRetailInfoWarnSettingPersonnelByStationId
(
stationId
);
return
ResponseObj
.
success
(
"修改成功"
);
}
}
backend/xyst.dinas.biz/src/main/resources/config/DinasType.hbm.xml
View file @
c4baa8d1
...
...
@@ -67,7 +67,7 @@
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
true"
unique=
"true"
update=
"false"
insert=
"false"
index=
"dinas_sort_index"
>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
false"
unique=
"false"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
...
...
backend/xyst.dinas.biz/src/main/resources/config/SandMiningArea.hbm.xml
View file @
c4baa8d1
...
...
@@ -87,7 +87,7 @@
<comment>
不通过原因
</comment>
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
true"
unique=
"true"
index=
"sand_mining_area_sort_index"
>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
false"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
...
...
backend/xyst.dinas.biz/src/main/resources/config/ShipInfo.hbm.xml
View file @
c4baa8d1
...
...
@@ -80,7 +80,7 @@
<comment>
备注
</comment>
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
true"
unique=
"true"
index=
"station_sort_index"
>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
false"
unique=
"false"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
...
...
backend/xyst.dinas.biz/src/main/resources/config/Station.hbm.xml
View file @
c4baa8d1
...
...
@@ -85,7 +85,7 @@
<comment>
备注
</comment>
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
true"
unique=
"true"
index=
"station_sort_index
"
>
<property
name=
"sortOrder"
type=
"int"
not-null=
"
false
"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
...
...
backend/xyst.dinas.camera/src/main/resources/config/CameraInfo.hbm.xml
View file @
c4baa8d1
...
...
@@ -154,7 +154,7 @@
</column>
</property>
<property
name=
"sortOrder"
type=
"int"
not-null=
"true"
unique=
"true"
update=
"false"
insert=
"false"
index=
"camera_sort_index"
>
<property
name=
"sortOrder"
type=
"int"
not-null=
"true"
unique=
"true"
>
<column
name=
"sort_order"
length=
"10"
>
<comment
>
排序
</comment>
</column>
...
...
backend/xyst.dinas.finance/src/main/java/com/xyst/dinas/finance/internal/service/ArtificialRechargeServiceImpl.java
View file @
c4baa8d1
...
...
@@ -37,7 +37,7 @@ public class ArtificialRechargeServiceImpl implements ArtificialRechargeService
contract
.
set
(
"depositBalance"
,
contract
.
getBigDecimal
(
"depositBalance"
)
==
null
?
new
BigDecimal
(
"0"
).
add
(
jsonObject
.
getBigDecimal
(
"rechargeAmount"
))
:
contract
.
getBigDecimal
(
"depositBalance"
).
add
(
jsonObject
.
getBigDecimal
(
"rechargeAmount"
)));
}
contractDao
.
update
(
contract
);
BaseBusinessWarn
warn
=
warningService
.
createWarn
(
"合同"
,
contract
Id
,
"预付款余额"
);
BaseBusinessWarn
warn
=
warningService
.
createWarn
(
"合同"
,
contract
.
getUuid
(
"contractId"
)
,
"预付款余额"
);
warn
.
setWarningCalculate
(
new
StockAmountWarnCalculate
(
contract
.
getDouble
(
"advanceBalance"
)));
warn
.
warn
();
return
ResponseObj
.
success
();
...
...
backend/xyst.dinas.finance/src/main/model/com/xyst/dinas/finance/datamodel/FinanceRefund.mk
View file @
c4baa8d1
...
...
@@ -47,6 +47,9 @@
<attribute id='2e29930f-7250-4714-b41c-5bd3ffee2c4e' name='account' columnName='account' title='账号' type='string' default='' precision='' isArray='false'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='100'></annotation>
</attribute>
<attribute id='2e29930f-7250-4714-b41c-5bd3ffee2c4e' name='applicantId' columnName='applicant_id' title='申请人id' type='string' default='' precision='' isArray='false'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='100'></annotation>
</attribute>
<attribute id='2e29930f-7250-4714-b41c-5bd3ffee2c4e' name='applicant' columnName='applicant' title='申请人' type='string' default='' precision='' isArray='false'>
<annotation id='14f073bb-ea3a-4ab3-971c-223040cbe678' attributeId='59d25e8c-9537-4c27-8846-8c58eedc098f' name='length' value='100'></annotation>
</attribute>
...
...
backend/xyst.dinas.finance/src/main/model/com/xyst/dinas/finance/query/FinanceRefund.mk
View file @
c4baa8d1
...
...
@@ -75,7 +75,15 @@
</ref>
<description></description>
</field>
<field title='申请人id'>
<name>applicantId</name>
<type>string</type>
<ref>
<type></type>
<name></name>
</ref>
<description></description>
</field>
<field title='申请人'>
<name>applicant</name>
<type>string</type>
...
...
backend/xyst.dinas.finance/src/main/model/com/xyxt/dinas/finance/auth/ArtificialRechargeCard.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='0ba03c35-0f62-40ac-bc96-94e80dffe2d3' category='资金/人工账户充值
(区域公司)
' seq='2'></privilege>
<privilege type='TOKEN' target-type='' id='0ba03c35-0f62-40ac-bc96-94e80dffe2d3' category='资金/人工账户充值' seq='2'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.finance/src/main/model/com/xyxt/dinas/finance/auth/ExpenseAdjustCard.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='c7901c69-fe3b-4f4f-9f8f-edee831af56f' category='资金/费用调整
(区域公司)
' seq='2'></privilege>
<privilege type='TOKEN' target-type='' id='c7901c69-fe3b-4f4f-9f8f-edee831af56f' category='资金/费用调整' seq='2'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.finance/src/main/model/com/xyxt/dinas/finance/auth/FinanceRefundCard.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='71e8e3ed-b0d0-47f4-b451-752416a5fa7d' category='资金/退费管理
(区域公司)
' seq='1'></privilege>
<privilege type='TOKEN' target-type='' id='71e8e3ed-b0d0-47f4-b451-752416a5fa7d' category='资金/退费管理' seq='1'></privilege>
</content>
</model>
\ No newline at end of file
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/auth/ArtificialRechargeCard.jmx
View file @
c4baa8d1
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
资金/人工账户充值
(区域公司)
</m:category>
<m:category>
资金/人工账户充值
</m:category>
<m:seq>
2
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/auth/ExpenseAdjustCard.jmx
View file @
c4baa8d1
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
资金/费用调整
(区域公司)
</m:category>
<m:category>
资金/费用调整
</m:category>
<m:seq>
2
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/auth/FinanceRefundCard.jmx
View file @
c4baa8d1
...
...
@@ -9,7 +9,7 @@
<content>
<m:privilege>
<m:type>
TOKEN
</m:type>
<m:category>
资金/退费管理
(区域公司)
</m:category>
<m:category>
资金/退费管理
</m:category>
<m:seq>
1
</m:seq>
</m:privilege>
</content>
...
...
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/datamodel/FinanceRefund.jmx
View file @
c4baa8d1
...
...
@@ -300,6 +300,29 @@
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
applicant_id
</m:value>
</m:property>
</m:properties>
</m:annotation>
</m:annotations>
<m:id>
2e29930f-7250-4714-b41c-5bd3ffee2c4e
</m:id>
<m:name>
applicantId
</m:name>
<m:title>
申请人id
</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>
100
</m:value>
</m:annotation>
<m:annotation>
<m:type>
javax.persistence.Column
</m:type>
<m:properties>
<m:property>
<m:key>
name
</m:key>
<m:value>
applicant
</m:value>
</m:property>
</m:properties>
...
...
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/query/FinanceRefund.jmx
View file @
c4baa8d1
...
...
@@ -87,6 +87,16 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
applicantId
</m:name>
<m:title>
申请人id
</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>
applicant
</m:name>
<m:title>
申请人
</m:title>
<m:type>
string
</m:type>
...
...
backend/xyst.dinas.finance/src/main/resources/com/xyst/dinas/finance/query/FinanceRefundNoAuthFilter.jmx
View file @
c4baa8d1
...
...
@@ -70,6 +70,16 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
applicantId
</m:name>
<m:title>
申请人id
</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>
applicant
</m:name>
<m:title>
申请人
</m:title>
<m:type>
string
</m:type>
...
...
backend/xyst.dinas.finance/src/main/resources/config/FinanceRefund.hbm.xml
View file @
c4baa8d1
...
...
@@ -76,6 +76,9 @@
<property
name=
"refundReason"
type=
"nstring"
not-null=
"false"
>
<column
name=
"refund_reason"
length=
"300"
></column>
</property>
<property
name=
"applicantId"
type=
"nstring"
not-null=
"false"
>
<column
name=
"applicant_id"
length=
"100"
></column>
</property>
<property
name=
"applicant"
type=
"nstring"
not-null=
"false"
>
<column
name=
"applicant"
length=
"100"
></column>
</property>
...
...
backend/xyst.dinas.price/src/main/model/com/xyst/dinas/price/auth/PriceAdjustmentCard.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='88345a57-267b-4644-9de6-ba195d0af9f5' category='价格/调价申请' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='88345a57-267b-4644-9de6-ba195d0af9f5' category='价格/调价申请
(区域公司)
' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.price/src/main/model/com/xyst/dinas/price/auth/PriceAdjustmentList.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='00fd2bfd-585d-4805-9a74-5e88b27119f1' category='价格/调价申请' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='00fd2bfd-585d-4805-9a74-5e88b27119f1' category='价格/调价申请
(区域公司)
' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.price/src/main/resources/com/xyst/dinas/price/auth/PriceAdjustmentCard.jmx
View file @
c4baa8d1
...
...
@@ -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.price/src/main/resources/com/xyst/dinas/price/auth/PriceAdjustmentList.jmx
View file @
c4baa8d1
...
...
@@ -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.production/src/main/java/com/xyst/dinas/production/internal/SandWarningExeProcessor.java
View file @
c4baa8d1
...
...
@@ -49,7 +49,7 @@ public class SandWarningExeProcessor implements DataProcessor {
sandAreaName
=
byId
.
getString
(
"sandMiningAreaName"
);
shipName
=
"-"
;
regionalCompanyName
=
byId
.
get
(
"regionalCompany"
).
getString
(
"name"
);
row
.
put
(
"detail"
,
warnSetting
.
getMax
(
));
row
.
put
(
"detail"
,
row
.
get
(
"actualValue"
));
}
else
if
(
SandMiningAreaConstant
.
SAND_SHIP_WARN_BILL_TYPE
.
equals
(
billType
)){
KObject
sandMining
=
sandMiningService
.
getById
(
billId
);
...
...
@@ -57,7 +57,7 @@ public class SandWarningExeProcessor implements DataProcessor {
shipName
=
sandMining
.
get
(
"ship"
).
getString
(
"shipName"
);
regionalCompanyName
=
sandMining
.
get
(
"regionalCompany"
).
getString
(
"name"
);
row
.
put
(
"detail"
,
row
.
get
(
"
target
"
).
toString
());
row
.
put
(
"detail"
,
row
.
get
(
"
-
"
).
toString
());
}
row
.
put
(
"sandAreaName"
,
sandAreaName
);
row
.
put
(
"shipName"
,
shipName
);
...
...
backend/xyst.dinas.production/src/main/resources/com/xyst/dinas/production/query/SandWarningExe.jmx
View file @
c4baa8d1
...
...
@@ -111,6 +111,17 @@
</m:field>
<m:field>
<m:name>
min
</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>
actualValue
</m:name>
<m:title>
实际值
</m:title>
<m:type>
string
</m:type>
<m:ref>
...
...
backend/xyst.dinas.safe/src/main/model/com/xyst/dinas/safe/query/ProductionLineViolation.mk
View file @
c4baa8d1
...
...
@@ -61,7 +61,7 @@
<description></description>
</field>
<field title='违规类型名称'>
<name>violationType.
typeN
ame</name>
<name>violationType.
n
ame</name>
<type>string</type>
<ref>
<type></type>
...
...
backend/xyst.dinas.safe/src/main/model/com/xyst/dinas/safe/query/ShipViolation.mk
View file @
c4baa8d1
...
...
@@ -48,13 +48,13 @@
<name>violationType.id</name>
<type>uuid</type>
<ref>
<type>
一般引用
</type>
<type></type>
<name>com.xyst.dinas.safe.datamodel.ViolationType</name>
</ref>
<description></description>
</field>
<field title='违规类型名称'>
<name>violationType.
typeN
ame</name>
<name>violationType.
n
ame</name>
<type>string</type>
<ref>
<type></type>
...
...
backend/xyst.dinas.safe/src/main/model/com/xyst/dinas/safe/query/StaffViolation.mk
View file @
c4baa8d1
...
...
@@ -42,7 +42,7 @@
<description></description>
</field>
<field title='违规类型名称'>
<name>violationType.
typeN
ame</name>
<name>violationType.
n
ame</name>
<type>string</type>
<ref>
<type></type>
...
...
backend/xyst.dinas.safe/src/main/resources/com/xyst/dinas/safe/query/ProductionLineViolation.jmx
View file @
c4baa8d1
...
...
@@ -71,7 +71,7 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
violationType.
typeN
ame
</m:name>
<m:name>
violationType.
n
ame
</m:name>
<m:title>
违规类型名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
...
...
backend/xyst.dinas.safe/src/main/resources/com/xyst/dinas/safe/query/ShipViolation.jmx
View file @
c4baa8d1
...
...
@@ -56,12 +56,12 @@
<m:type>
uuid
</m:type>
<m:ref>
<m:name>
com.xyst.dinas.safe.datamodel.ViolationType
</m:name>
<m:type>
一般引用
</m:type>
<m:type></m:type>
</m:ref>
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
violationType.
typeN
ame
</m:name>
<m:name>
violationType.
n
ame
</m:name>
<m:title>
违规类型名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
...
...
backend/xyst.dinas.safe/src/main/resources/com/xyst/dinas/safe/query/StaffViolation.jmx
View file @
c4baa8d1
...
...
@@ -51,7 +51,7 @@
<m:desc></m:desc>
</m:field>
<m:field>
<m:name>
violationType.
typeN
ame
</m:name>
<m:name>
violationType.
n
ame
</m:name>
<m:title>
违规类型名称
</m:title>
<m:type>
string
</m:type>
<m:ref>
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/advanquery/ProjectAdvQuery.jmx
View file @
c4baa8d1
...
...
@@ -15,7 +15,6 @@
organization.id AS id,
contract.id AS contractId,
contract.contractName AS contractName,
organization.name AS orgName,
company.name AS companyName,
project.projectName AS projectName,
project_type.title AS projectTypeTitle,
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/advanquery/ProjectQueryView.jmx
View file @
c4baa8d1
...
...
@@ -91,17 +91,6 @@
},
{
"type": "VALUE",
"title": "区域公司",
"key": "orgName",
"columnType": {
"name": "select",
"data": {
"selected": true
}
}
},
{
"type": "VALUE",
"title": "购砂单位",
"key": "companyName",
"columnType": {
...
...
backend/xyst.dinas.sales/src/main/resources/com/xyst/dinas/sales/advanquery/ProjectQueryViewRegionalCompany.jmx
View file @
c4baa8d1
...
...
@@ -91,17 +91,6 @@
},
{
"type": "VALUE",
"title": "区域公司",
"key": "orgName",
"columnType": {
"name": "select",
"data": {
"selected": false
}
}
},
{
"type": "VALUE",
"title": "购砂单位",
"key": "companyName",
"columnType": {
...
...
backend/xyst.dinas.statistics/src/main/java/com/xyst/dinas/statistics/internal/dao/AdvancePaymentBalanceSumDaoImpl.java
View file @
c4baa8d1
...
...
@@ -287,7 +287,9 @@ public class AdvancePaymentBalanceSumDaoImpl implements AdvancePaymentBalanceSum
+
" where 1=1 "
);
if
(
dealYear
!=
null
&&
!(
dealYear
.
isEmpty
()))
hql
.
append
(
" and advancePayment1.deal_year = :dealYear "
);
hql
.
append
(
" GROUP BY advancePayment1.purchase_sand_unit_id, advancePayment1.project_id ) \r\n"
hql
.
append
(
" GROUP BY advancePayment1.purchase_sand_unit_id, advancePayment1.project_id )"
+
" GROUP BY advancePayment.project_id \r\n"
+
" ,advancePayment.purchase_sand_unit_id \r\n"
+
" ) AS advancePaymentAdvance ON advancePaymentAdvance.purchase_sand_unit_id = advancePaymentAndBalanceSummary.purchase_sand_unit_id \r\n"
+
" AND advancePaymentAdvance.project_id = advancePaymentAndBalanceSummary.project_id "
...
...
backend/xyst.dinas.statistics/src/main/resources/com/xyst/dinas/statistics/advanquery/ProjectDinasTypeByTypeStatisticsAdvQuery.jmx
View file @
c4baa8d1
...
...
@@ -12,19 +12,16 @@
<sql-type>
SQL
</sql-type>
<sql>
SELECT
sum(
contractDetail.purchaseAmoun
t ) AS weight,
sum(
projectFiledAssociatedProjectFiledDinasDetail.weigh
t ) AS weight,
CASE
WHEN dinasType.type = 0 THEN
'砂' ELSE '石'
END AS dinasTypeName
FROM
ProjectFiled AS projectFiled
LEFT JOIN Contract AS contract ON contract.project = projectFiled.id
AND contract.approveState = 2
AND contract.discard
<>
1
AND contract.contractState
<>
'MODIFIED'
LEFT JOIN ContractAssociatedcontractDetail AS contractDetail ON contractDetail.master = contract.id
LEFT JOIN DinasType AS dinasType ON contractDetail.dinasType = dinasType.id
LEFT JOIN ProjectFiledAssociatedProjectFiledDinasDetail AS projectFiledAssociatedProjectFiledDinasDetail
ON projectFiledAssociatedProjectFiledDinasDetail.master = projectFiled.id
LEFT JOIN DinasType AS dinasType ON projectFiledAssociatedProjectFiledDinasDetail.dinasType = dinasType.id
WHERE 1=1 AND dinasType.type IS NOT NULL
AND projectFiled.regionalCompany = :?regionalCompany
AND projectFiled.discard
<>
1
...
...
backend/xyst.dinas.transport/src/main/java/com/xyst/dinas/transport/internal/service/VehicleDispatchServiceImpl.java
View file @
c4baa8d1
...
...
@@ -86,7 +86,7 @@ public class VehicleDispatchServiceImpl implements VehicleDispatchService {
kobject
.
set
(
VehicleDispatchConstant
.
CONTRACT
,
load
.
get
(
BaseConstants
.
MASTER
).
get
(
VehicleDispatchConstant
.
CONTRACT
));
kobject
.
set
(
VehicleDispatchConstant
.
DINAS_TYPE
,
load
.
get
(
VehicleDispatchConstant
.
DINAS_TYPE
));
kobject
.
set
(
VehicleDispatchConstant
.
STATION
,
load
.
get
(
BaseConstants
.
MASTER
).
get
(
VehicleDispatchConstant
.
STATION
));
kobject
.
set
(
VehicleDispatchConstant
.
PLAN_AMOUNT
,
load
.
getBigDecimal
(
"
actualSale
Amount"
));
kobject
.
set
(
VehicleDispatchConstant
.
PLAN_AMOUNT
,
load
.
getBigDecimal
(
"
salesPlan
Amount"
));
}
kobject
.
set
(
"dispatchStatus"
,
PriceAdjustmentAdjustmentStatusEnum
.
NOT_STARTED
.
getValue
());
if
(
planningCycle
.
getDate
(
VehicleDispatchConstant
.
PLANNING_CYCLE_START_TIME
).
before
(
new
Date
())){
...
...
backend/xyst.dinas.transport/src/main/model/com/xyst/dinas/transport/auth/TransportAnalysisList.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='5a029370-971b-4c90-a4db-14caa4514eca' category='运输/运输分析
(区域公司)
' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='5a029370-971b-4c90-a4db-14caa4514eca' category='运输/运输分析' seq='0'></privilege>
</content>
</model>
backend/xyst.dinas.transport/src/main/model/com/xyst/dinas/transport/auth/VehicleViolationList.mk
View file @
c4baa8d1
...
...
@@ -8,6 +8,6 @@
<description></description>
</header>
<content>
<privilege type='TOKEN' target-type='' id='d3e187b7-a156-4982-aa4c-e4e709165a50' category='运输/车辆违规
(区域公司)
' seq='0'></privilege>
<privilege type='TOKEN' target-type='' id='d3e187b7-a156-4982-aa4c-e4e709165a50' category='运输/车辆违规' seq='0'></privilege>
</content>
</model>
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