Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
HYH.APSJ
Project
Project
Details
Activity
Releases
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
佟礼
HYH.APSJ
Commits
ccc8685f
Commit
ccc8685f
authored
Apr 30, 2026
by
DESKTOP-VKRD9QF\Administration
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
排产规则
parent
9284edf3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
788 additions
and
0 deletions
+788
-0
JacksonConfig.java
src/main/java/com/aps/config/JacksonConfig.java
+24
-0
UserStrategyRuleController.java
...n/java/com/aps/controller/UserStrategyRuleController.java
+264
-0
UserStrategyRule.java
src/main/java/com/aps/entity/UserStrategyRule.java
+36
-0
UserStrategyRuleMapper.java
src/main/java/com/aps/mapper/UserStrategyRuleMapper.java
+7
-0
UserStrategyRuleService.java
src/main/java/com/aps/service/UserStrategyRuleService.java
+22
-0
UserStrategyRuleServiceImpl.java
...ava/com/aps/service/impl/UserStrategyRuleServiceImpl.java
+405
-0
UserStrategyRuleMapper.xml
src/main/resources/mapper/UserStrategyRuleMapper.xml
+30
-0
No files found.
src/main/java/com/aps/config/JacksonConfig.java
0 → 100644
View file @
ccc8685f
package
com
.
aps
.
config
;
import
com.fasterxml.jackson.databind.SerializationFeature
;
import
com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer
;
import
org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
@Configuration
public
class
JacksonConfig
{
public
static
final
String
FRONTEND_DATE_TIME_PATTERN
=
"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
;
public
static
final
DateTimeFormatter
FRONTEND_DATE_TIME_FORMATTER
=
DateTimeFormatter
.
ofPattern
(
FRONTEND_DATE_TIME_PATTERN
);
@Bean
public
Jackson2ObjectMapperBuilderCustomizer
jackson2ObjectMapperBuilderCustomizer
()
{
return
builder
->
builder
.
featuresToDisable
(
SerializationFeature
.
WRITE_DATES_AS_TIMESTAMPS
)
.
serializerByType
(
LocalDateTime
.
class
,
new
LocalDateTimeSerializer
(
FRONTEND_DATE_TIME_FORMATTER
));
}
}
src/main/java/com/aps/controller/UserStrategyRuleController.java
0 → 100644
View file @
ccc8685f
This diff is collapsed.
Click to expand it.
src/main/java/com/aps/entity/UserStrategyRule.java
0 → 100644
View file @
ccc8685f
package
com
.
aps
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Getter
;
import
lombok.Setter
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
@Getter
@Setter
@TableName
(
"USER_STRATEGY_RULE"
)
public
class
UserStrategyRule
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
id
;
private
LocalDateTime
creationtime
;
private
Long
creatoruserid
;
private
LocalDateTime
lastmodificationtime
;
private
Long
lastmodifieruserid
;
private
Long
isdeleted
;
private
LocalDateTime
deletiontime
;
private
Long
deleteruserid
;
private
Long
userid
;
private
Long
baseRuleId
;
private
String
sceneId
;
private
String
name
;
private
String
forwardScheduling
;
private
String
kpiConfig
;
private
Long
isDefault
;
private
String
sourceType
;
}
src/main/java/com/aps/mapper/UserStrategyRuleMapper.java
0 → 100644
View file @
ccc8685f
package
com
.
aps
.
mapper
;
import
com.aps.entity.UserStrategyRule
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
public
interface
UserStrategyRuleMapper
extends
BaseMapper
<
UserStrategyRule
>
{
}
src/main/java/com/aps/service/UserStrategyRuleService.java
0 → 100644
View file @
ccc8685f
package
com
.
aps
.
service
;
import
com.aps.entity.UserStrategyRule
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
java.util.List
;
import
java.util.Map
;
import
com.aps.entity.StrategyScheduling
;
public
interface
UserStrategyRuleService
extends
IService
<
UserStrategyRule
>
{
Map
<
String
,
Object
>
getEffectiveRule
(
Map
<
String
,
Object
>
params
);
Map
<
String
,
Object
>
saveUserRule
(
Map
<
String
,
Object
>
params
);
boolean
resetUserRule
(
Map
<
String
,
Object
>
params
);
List
<
Map
<
String
,
Object
>>
getGlobalRules
();
List
<
Map
<
String
,
Object
>>
getStrategyOptions
(
Long
userId
);
List
<
StrategyScheduling
>
getEffectiveForwardScheduling
(
Long
userId
,
Long
baseRuleId
,
String
sceneId
);
}
src/main/java/com/aps/service/impl/UserStrategyRuleServiceImpl.java
0 → 100644
View file @
ccc8685f
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/UserStrategyRuleMapper.xml
0 → 100644
View file @
ccc8685f
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.aps.mapper.UserStrategyRuleMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.aps.entity.UserStrategyRule"
>
<id
column=
"ID"
property=
"id"
/>
<result
column=
"CREATIONTIME"
property=
"creationtime"
/>
<result
column=
"CREATORUSERID"
property=
"creatoruserid"
/>
<result
column=
"LASTMODIFICATIONTIME"
property=
"lastmodificationtime"
/>
<result
column=
"LASTMODIFIERUSERID"
property=
"lastmodifieruserid"
/>
<result
column=
"ISDELETED"
property=
"isdeleted"
/>
<result
column=
"DELETIONTIME"
property=
"deletiontime"
/>
<result
column=
"DELETERUSERID"
property=
"deleteruserid"
/>
<result
column=
"USERID"
property=
"userid"
/>
<result
column=
"BASE_RULE_ID"
property=
"baseRuleId"
/>
<result
column=
"SCENE_ID"
property=
"sceneId"
/>
<result
column=
"NAME"
property=
"name"
/>
<result
column=
"FORWARD_SCHEDULING"
property=
"forwardScheduling"
/>
<result
column=
"KPI_CONFIG"
property=
"kpiConfig"
/>
<result
column=
"IS_DEFAULT"
property=
"isDefault"
/>
<result
column=
"SOURCE_TYPE"
property=
"sourceType"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
ID, CREATIONTIME, CREATORUSERID, LASTMODIFICATIONTIME, LASTMODIFIERUSERID, ISDELETED,
DELETIONTIME, DELETERUSERID, USERID, BASE_RULE_ID, SCENE_ID, NAME, FORWARD_SCHEDULING,
KPI_CONFIG, IS_DEFAULT, SOURCE_TYPE
</sql>
</mapper>
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