记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
06b3b100
Commit
06b3b100
authored
Sep 29, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keywprd转中文 增加type
parent
c8693a85
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
52 additions
and
44 deletions
+52
-44
SweetAntigenicQuestionParam.java
.../service/sweet/dto/param/SweetAntigenicQuestionParam.java
+18
-14
SweetAntigenicQuestion.java
...iquidnet/service/sweet/entity/SweetAntigenicQuestion.java
+21
-16
SweetAntigenicQuestionMapper.java
...et/service/sweet/mapper/SweetAntigenicQuestionMapper.java
+1
-1
db_sweetsugar_structure.sql
.../liquidnet-service-sweet/docu/db_sweetsugar_structure.sql
+10
-9
SweetAntigenicQuestionServiceImpl.java
...sweet/service/impl/SweetAntigenicQuestionServiceImpl.java
+1
-3
sqlmap.properties
...uidnet-service-sweet/src/main/resources/sqlmap.properties
+1
-1
No files found.
liquidnet-bus-api/liquidnet-service-sweet-api/src/main/java/com/liquidnet/service/sweet/dto/param/SweetAntigenicQuestionParam.java
View file @
06b3b100
...
@@ -13,6 +13,10 @@ public class SweetAntigenicQuestionParam implements Serializable {
...
@@ -13,6 +13,10 @@ public class SweetAntigenicQuestionParam implements Serializable {
private
static
final
long
serialVersionUID
=
9038992103808199663L
;
private
static
final
long
serialVersionUID
=
9038992103808199663L
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"type 1MDSK防疫答题 2草莓防疫答题"
,
example
=
"1"
)
@NotNull
(
message
=
"type不能为空"
)
@Min
(
value
=
1
,
message
=
"type无效"
)
@Max
(
value
=
2
,
message
=
"type无效"
)
private
Integer
type
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"openId"
,
example
=
"openId"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"openId"
,
example
=
"openId"
)
@NotBlank
(
message
=
"openId不能为空"
)
@NotBlank
(
message
=
"openId不能为空"
)
private
String
openId
;
private
String
openId
;
...
@@ -38,31 +42,31 @@ public class SweetAntigenicQuestionParam implements Serializable {
...
@@ -38,31 +42,31 @@ public class SweetAntigenicQuestionParam implements Serializable {
private
String
urgentPhone
;
private
String
urgentPhone
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword1"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword1"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword1不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword1无效"
)
@Max
(
value
=
2
,
message
=
"keyword1无效
"
)
@Not
Blank
(
message
=
"keyword1不能为空
"
)
private
Integer
keyword1
;
private
String
keyword1
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword2"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword2"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword2不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword2无效"
)
@Max
(
value
=
2
,
message
=
"keyword2无效
"
)
@Not
Blank
(
message
=
"keyword2不能为空
"
)
private
Integer
keyword2
;
private
String
keyword2
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword3"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword3"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword3不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword3无效"
)
@Max
(
value
=
2
,
message
=
"keyword3无效
"
)
@Not
Blank
(
message
=
"keyword3不能为空
"
)
private
Integer
keyword3
;
private
String
keyword3
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword4"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword4"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword4不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword4无效"
)
@Max
(
value
=
2
,
message
=
"keyword4无效
"
)
@Not
Blank
(
message
=
"keyword4不能为空
"
)
private
Integer
keyword4
;
private
String
keyword4
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword5"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword5"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword5不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword5无效"
)
@Max
(
value
=
2
,
message
=
"keyword5无效
"
)
@Not
Blank
(
message
=
"keyword5不能为空
"
)
private
Integer
keyword5
;
private
String
keyword5
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword6"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword6"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword6不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword6无效"
)
@Max
(
value
=
2
,
message
=
"keyword6无效
"
)
@Not
Blank
(
message
=
"keyword6不能为空
"
)
private
Integer
keyword6
;
private
String
keyword6
;
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword7"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
10
,
required
=
true
,
value
=
"keyword7"
,
example
=
"1"
)
@Not
Null
(
message
=
"keyword7不能为空"
)
@Min
(
value
=
1
,
message
=
"keyword7无效"
)
@Max
(
value
=
3
,
message
=
"keyword7无效
"
)
@Not
Blank
(
message
=
"keyword7不能为空
"
)
private
Integer
keyword7
;
private
String
keyword7
;
}
}
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/entity/SweetAntigenicQuestion.java
View file @
06b3b100
...
@@ -14,13 +14,13 @@ import lombok.EqualsAndHashCode;
...
@@ -14,13 +14,13 @@ import lombok.EqualsAndHashCode;
* </p>
* </p>
*
*
* @author jiangxiulong
* @author jiangxiulong
* @since 2021-09-2
8
* @since 2021-09-2
9
*/
*/
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@EqualsAndHashCode
(
callSuper
=
false
)
public
class
SweetAntigenicQuestion
implements
Serializable
{
public
class
SweetAntigenicQuestion
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1
268639425174449151
L
;
@TableId
(
value
=
"mid"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"mid"
,
type
=
IdType
.
AUTO
)
private
Long
mid
;
private
Long
mid
;
...
@@ -30,6 +30,11 @@ public class SweetAntigenicQuestion implements Serializable {
...
@@ -30,6 +30,11 @@ public class SweetAntigenicQuestion implements Serializable {
*/
*/
private
String
questionId
;
private
String
questionId
;
/**
* 活动类型 1MDSK防疫答题 2草莓防疫答题
*/
private
Integer
type
;
/**
/**
* openId
* openId
*/
*/
...
@@ -63,39 +68,39 @@ public class SweetAntigenicQuestion implements Serializable {
...
@@ -63,39 +68,39 @@ public class SweetAntigenicQuestion implements Serializable {
private
String
urgentPhone
;
private
String
urgentPhone
;
/**
/**
*
1有 2没有
*
答案
*/
*/
private
Integer
keyword1
;
private
String
keyword1
;
/**
/**
*
1是 2否
*
答案
*/
*/
private
Integer
keyword2
;
private
String
keyword2
;
/**
/**
*
1是 2否
*
答案
*/
*/
private
Integer
keyword3
;
private
String
keyword3
;
/**
/**
*
1是 2否
*
答案
*/
*/
private
Integer
keyword4
;
private
String
keyword4
;
/**
/**
*
1是 2否
*
答案
*/
*/
private
Integer
keyword5
;
private
String
keyword5
;
/**
/**
*
1是 2否
*
答案
*/
*/
private
Integer
keyword6
;
private
String
keyword6
;
/**
/**
*
1两针均已接种 2已接种一针 3未接种
*
答案
*/
*/
private
Integer
keyword7
;
private
String
keyword7
;
/**
/**
* 创建时间
* 创建时间
...
...
liquidnet-bus-do/liquidnet-service-sweet-do/src/main/java/com/liquidnet/service/sweet/mapper/SweetAntigenicQuestionMapper.java
View file @
06b3b100
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
package
com
.
liquidnet
.
service
.
sweet
.
mapper
;
import
com.liquidnet.service.sweet.entity.SweetAntigenicQuestion
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.liquidnet.service.sweet.entity.SweetAntigenicQuestion
;
/**
/**
* <p>
* <p>
...
...
liquidnet-bus-service/liquidnet-service-sweet/docu/db_sweetsugar_structure.sql
View file @
06b3b100
...
@@ -545,19 +545,20 @@ CREATE TABLE `sweet_antigenic_question`
...
@@ -545,19 +545,20 @@ CREATE TABLE `sweet_antigenic_question`
(
(
`mid`
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
`mid`
bigint
unsigned
NOT
NULL
AUTO_INCREMENT
,
`question_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'question_id'
,
`question_id`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'question_id'
,
`type`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'活动类型 1MDSK防疫答题 2草莓防疫答题'
,
`openId`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'openId'
,
`openId`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'openId'
,
`unionId`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'unionId'
,
`unionId`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'unionId'
,
`nickname`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'姓名'
,
`nickname`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'姓名'
,
`address`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'居住地址'
,
`address`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'居住地址'
,
`phone`
varchar
(
11
)
NOT
NULL
DEFAULT
''
COMMENT
'联系电话'
,
`phone`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'联系电话'
,
`urgent_phone`
varchar
(
11
)
NOT
NULL
DEFAULT
''
COMMENT
'紧急联系人电话'
,
`urgent_phone`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'紧急联系人电话'
,
`keyword1`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1有 2没有
'
,
`keyword1`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword2`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1是 2否
'
,
`keyword2`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword3`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1是 2否
'
,
`keyword3`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword4`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1是 2否
'
,
`keyword4`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword5`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1是 2否
'
,
`keyword5`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword6`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1是 2否
'
,
`keyword6`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`keyword7`
tinyint
NOT
NULL
DEFAULT
0
COMMENT
'1两针均已接种 2已接种一针 3未接种
'
,
`keyword7`
varchar
(
255
)
NOT
NULL
DEFAULT
''
COMMENT
'答案
'
,
`created_at`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`created_at`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'创建时间'
,
`updated_at`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
`updated_at`
datetime
NULL
DEFAULT
CURRENT_TIMESTAMP
COMMENT
'更新时间'
,
PRIMARY
KEY
(
`mid`
),
PRIMARY
KEY
(
`mid`
),
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/java/com/liquidnet/service/sweet/service/impl/SweetAntigenicQuestionServiceImpl.java
View file @
06b3b100
...
@@ -2,7 +2,6 @@ package com.liquidnet.service.sweet.service.impl;
...
@@ -2,7 +2,6 @@ package com.liquidnet.service.sweet.service.impl;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.DateUtil
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.commons.lang.util.IDGenerator
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.SqlMapping
;
...
@@ -15,7 +14,6 @@ import com.liquidnet.service.sweet.utils.QueueUtils;
...
@@ -15,7 +14,6 @@ import com.liquidnet.service.sweet.utils.QueueUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.util.LinkedList
;
import
java.util.LinkedList
;
/**
/**
...
@@ -38,7 +36,7 @@ public class SweetAntigenicQuestionServiceImpl extends ServiceImpl<SweetAntigeni
...
@@ -38,7 +36,7 @@ public class SweetAntigenicQuestionServiceImpl extends ServiceImpl<SweetAntigeni
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
LinkedList
<
Object
[]>
sqlsDataA
=
CollectionUtil
.
linkedListObjectArr
();
sqls
.
add
(
SqlMapping
.
get
(
"sweet_antigenic_question.insert"
));
sqls
.
add
(
SqlMapping
.
get
(
"sweet_antigenic_question.insert"
));
sqlsDataA
.
add
(
new
Object
[]{
sqlsDataA
.
add
(
new
Object
[]{
IDGenerator
.
nextSnowId
(),
param
.
getOpenId
(),
param
.
getUnionId
(),
param
.
getNickname
(),
param
.
getAddress
(),
param
.
getPhone
(),
IDGenerator
.
nextSnowId
(),
param
.
get
Type
(),
param
.
get
OpenId
(),
param
.
getUnionId
(),
param
.
getNickname
(),
param
.
getAddress
(),
param
.
getPhone
(),
param
.
getUrgentPhone
(),
param
.
getKeyword1
(),
param
.
getKeyword2
(),
param
.
getKeyword3
(),
param
.
getKeyword4
(),
param
.
getKeyword5
(),
param
.
getUrgentPhone
(),
param
.
getKeyword1
(),
param
.
getKeyword2
(),
param
.
getKeyword3
(),
param
.
getKeyword4
(),
param
.
getKeyword5
(),
param
.
getKeyword6
(),
param
.
getKeyword7
()
param
.
getKeyword6
(),
param
.
getKeyword7
()
});
});
...
...
liquidnet-bus-service/liquidnet-service-sweet/src/main/resources/sqlmap.properties
View file @
06b3b100
...
@@ -54,4 +54,4 @@ sweet_city_vote.insert=INSERT INTO sweet_city_vote (vote_id,phone,openId,unionId
...
@@ -54,4 +54,4 @@ sweet_city_vote.insert=INSERT INTO sweet_city_vote (vote_id,phone,openId,unionId
sweet_city_vote_stat.insert
=
INSERT INTO sweet_city_vote_stat (stat_id,city_code,city_name,vote_num) VALUES (?,?,?,?)
sweet_city_vote_stat.insert
=
INSERT INTO sweet_city_vote_stat (stat_id,city_code,city_name,vote_num) VALUES (?,?,?,?)
sweet_city_vote_stat.update
=
UPDATE sweet_city_vote_stat SET vote_num = IFNULL(vote_num, 0) + 1, updated_at = ? WHERE city_code = ?
sweet_city_vote_stat.update
=
UPDATE sweet_city_vote_stat SET vote_num = IFNULL(vote_num, 0) + 1, updated_at = ? WHERE city_code = ?
# --------------------------防疫答题--------------------------
# --------------------------防疫答题--------------------------
sweet_antigenic_question.insert
=
INSERT INTO sweet_antigenic_question (question_id,openId,unionId,nickname,address,phone,urgent_phone,keyword1,keyword2,keyword3,keyword4,keyword5,keyword6,keyword7) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)
sweet_antigenic_question.insert
=
INSERT INTO sweet_antigenic_question (question_id,type,openId,unionId,nickname,address,phone,urgent_phone,keyword1,keyword2,keyword3,keyword4,keyword5,keyword6,keyword7) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?)
\ No newline at end of file
\ 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