Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
0f1f40d0
Commit
0f1f40d0
authored
Sep 27, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item bidtime更改类型
parent
965e8d02
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
64 additions
and
56 deletions
+64
-56
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/CoinVo.java
...api/src/main/java/com/wwdz/ch/admin/entity/vo/CoinVo.java
+1
-1
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ItemVo.java
...api/src/main/java/com/wwdz/ch/admin/entity/vo/ItemVo.java
+9
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
...src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
+2
-0
ch-admin-api/src/main/java/com/wwdz/ch/admin/job/ImportNephriteDataJob.java
...ain/java/com/wwdz/ch/admin/job/ImportNephriteDataJob.java
+1
-1
ch-admin-api/src/main/java/com/wwdz/ch/admin/job/SynCoinJob.java
...n-api/src/main/java/com/wwdz/ch/admin/job/SynCoinJob.java
+1
-1
ch-core/src/main/java/com/wwdz/ch/core/util/ZincUtil.java
ch-core/src/main/java/com/wwdz/ch/core/util/ZincUtil.java
+5
-1
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
+1
-1
ch-dao/src/main/java/com/wwdz/ch/db/domain/Item.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/Item.java
+13
-15
ch-dao/src/main/java/com/wwdz/ch/db/domain/ItemExample.java
ch-dao/src/main/java/com/wwdz/ch/db/domain/ItemExample.java
+10
-20
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ItemMapper.java
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ItemMapper.java
+2
-2
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ItemMapper.xml
...o/src/main/resources/com/wwdz/ch/db/mapper/ItemMapper.xml
+10
-9
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
.../main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
+0
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
...i/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
+9
-4
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/CoinVo.java
View file @
0f1f40d0
...
@@ -74,7 +74,7 @@ public class CoinVo implements Entity {
...
@@ -74,7 +74,7 @@ public class CoinVo implements Entity {
/**
/**
* 成交时间
* 成交时间
*/
*/
private
String
bidTime
;
private
Date
bidTime
;
/**
/**
* 备注说明
* 备注说明
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/ItemVo.java
View file @
0f1f40d0
...
@@ -4,12 +4,14 @@ import com.wwdz.ch.core.consts.ItemStateEnum;
...
@@ -4,12 +4,14 @@ import com.wwdz.ch.core.consts.ItemStateEnum;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.core.util.PriceUtil
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.Item
;
import
com.xxdxxs.entity.Entity
;
import
com.xxdxxs.entity.Entity
;
import
com.xxdxxs.utils.DateUtils
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.EntityMapper
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Objects
;
import
java.util.Objects
;
@Data
@Data
...
@@ -93,6 +95,11 @@ public class ItemVo implements Entity {
...
@@ -93,6 +95,11 @@ public class ItemVo implements Entity {
private
String
topImage
;
private
String
topImage
;
/**
* 成交时间
*/
private
String
bidTime
;
public
Integer
getCid
()
{
public
Integer
getCid
()
{
return
cid
;
return
cid
;
...
@@ -159,6 +166,7 @@ public class ItemVo implements Entity {
...
@@ -159,6 +166,7 @@ public class ItemVo implements Entity {
item
.
setImages
(
com
.
qiniu
.
util
.
StringUtils
.
join
(
images
,
";"
));
item
.
setImages
(
com
.
qiniu
.
util
.
StringUtils
.
join
(
images
,
";"
));
item
.
setIsOnSale
(
this
.
isOnSale
);
item
.
setIsOnSale
(
this
.
isOnSale
);
item
.
setIsStd
(
this
.
isStd
);
item
.
setIsStd
(
this
.
isStd
);
item
.
setBidTime
(
StringUtils
.
hasLength
(
this
.
bidTime
)?
DateUtils
.
parseString
(
this
.
bidTime
):
null
);
if
(!
ObjectUtils
.
isEmpty
(
this
.
price
))
{
if
(!
ObjectUtils
.
isEmpty
(
this
.
price
))
{
item
.
setPrice
((
long
)(
this
.
price
*
100L
));
item
.
setPrice
((
long
)(
this
.
price
*
100L
));
}
}
...
@@ -181,6 +189,7 @@ public class ItemVo implements Entity {
...
@@ -181,6 +189,7 @@ public class ItemVo implements Entity {
itemVo
.
setSort
(
item
.
getSort
());
itemVo
.
setSort
(
item
.
getSort
());
itemVo
.
setShareImage
(
item
.
getShareImage
());
itemVo
.
setShareImage
(
item
.
getShareImage
());
itemVo
.
setDetail
(
item
.
getDetail
());
itemVo
.
setDetail
(
item
.
getDetail
());
itemVo
.
setBidTime
(
item
.
getBidTime
()!=
null
?
DateUtils
.
toString
(
item
.
getBidTime
()):
""
);
if
(!
StringUtils
.
isEmpty
(
item
.
getImages
())){
if
(!
StringUtils
.
isEmpty
(
item
.
getImages
())){
itemVo
.
setImages
(
item
.
getImages
().
split
(
";"
));
itemVo
.
setImages
(
item
.
getImages
().
split
(
";"
));
}
}
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/ItemServiceImpl.java
View file @
0f1f40d0
...
@@ -19,6 +19,7 @@ import com.wwdz.ch.db.domain.OperateLog;
...
@@ -19,6 +19,7 @@ import com.wwdz.ch.db.domain.OperateLog;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dto.request.CoinRequestDto
;
import
com.wwdz.ch.db.dao.CategoryDao
;
import
com.wwdz.ch.db.dao.CategoryDao
;
import
com.wwdz.ch.db.dto.request.CroppingRecordRequestDto
;
import
com.wwdz.ch.db.dto.request.CroppingRecordRequestDto
;
import
com.xxdxxs.utils.DateUtils
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.EntityMapper
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.StringUtils
;
import
com.xxdxxs.utils.StringUtils
;
...
@@ -109,6 +110,7 @@ public class ItemServiceImpl implements ItemService {
...
@@ -109,6 +110,7 @@ public class ItemServiceImpl implements ItemService {
try
{
try
{
Item
item
=
new
Item
();
Item
item
=
new
Item
();
EntityMapper
.
copyAttribute
(
coinRequestDto
,
item
);
EntityMapper
.
copyAttribute
(
coinRequestDto
,
item
);
item
.
setBidTime
(
StringUtils
.
hasLength
(
coinRequestDto
.
getBidTime
())?
DateUtils
.
parseString
(
coinRequestDto
.
getBidTime
()):
null
);
item
.
setIsStd
(
coinRequestDto
.
getIsStd
()
==
0
?
false
:
true
);
item
.
setIsStd
(
coinRequestDto
.
getIsStd
()
==
0
?
false
:
true
);
item
.
setImages
(
com
.
qiniu
.
util
.
StringUtils
.
join
(
coinRequestDto
.
getImages
(),
";"
));
item
.
setImages
(
com
.
qiniu
.
util
.
StringUtils
.
join
(
coinRequestDto
.
getImages
(),
";"
));
item
.
setName
(
coinRequestDto
.
getName
());
item
.
setName
(
coinRequestDto
.
getName
());
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/job/ImportNephriteDataJob.java
View file @
0f1f40d0
...
@@ -131,7 +131,7 @@ public class ImportNephriteDataJob {
...
@@ -131,7 +131,7 @@ public class ImportNephriteDataJob {
item
.
setSourceType
(
CommonEnum
.
SourceTypeEnum
.
SYSTEM_GET
.
getCode
());
item
.
setSourceType
(
CommonEnum
.
SourceTypeEnum
.
SYSTEM_GET
.
getCode
());
item
.
setUpdateTime
(
time
);
item
.
setUpdateTime
(
time
);
item
.
setIsDeleted
(
false
);
item
.
setIsDeleted
(
false
);
item
.
setBidTime
(
bidTime
);
item
.
setBidTime
(
StringUtils
.
hasLength
(
bidTime
)?
DateUtils
.
parseString
(
bidTime
):
null
);
item
.
setRemark
(
null
);
item
.
setRemark
(
null
);
item
.
setState
(
ItemStateEnum
.
PENDING
.
getCode
());
item
.
setState
(
ItemStateEnum
.
PENDING
.
getCode
());
item
.
setOriginalSourceUrl
(
null
);
item
.
setOriginalSourceUrl
(
null
);
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/job/SynCoinJob.java
View file @
0f1f40d0
...
@@ -96,7 +96,7 @@ public class SynCoinJob {
...
@@ -96,7 +96,7 @@ public class SynCoinJob {
item
.
setSourceType
(
CommonEnum
.
SourceTypeEnum
.
SYSTEM_GET
.
getCode
());
item
.
setSourceType
(
CommonEnum
.
SourceTypeEnum
.
SYSTEM_GET
.
getCode
());
item
.
setUpdateTime
(
coins
.
getUpdated
());
item
.
setUpdateTime
(
coins
.
getUpdated
());
item
.
setIsDeleted
(
false
);
item
.
setIsDeleted
(
false
);
item
.
setBidTime
(
""
);
item
.
setBidTime
(
coins
.
getBidTime
()
);
item
.
setRemark
(
null
);
item
.
setRemark
(
null
);
item
.
setState
(
ItemStateEnum
.
PENDING
.
getCode
());
item
.
setState
(
ItemStateEnum
.
PENDING
.
getCode
());
item
.
setOriginalExtra
(
coins
.
getExtra
());
item
.
setOriginalExtra
(
coins
.
getExtra
());
...
...
ch-core/src/main/java/com/wwdz/ch/core/util/ZincUtil.java
View file @
0f1f40d0
...
@@ -3,9 +3,11 @@ package com.wwdz.ch.core.util;
...
@@ -3,9 +3,11 @@ package com.wwdz.ch.core.util;
import
com.google.gson.Gson
;
import
com.google.gson.Gson
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.Item
;
import
com.xxdxxs.utils.DateUtils
;
import
com.xxdxxs.utils.JsonUtils
;
import
com.xxdxxs.utils.JsonUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.StringUtils
;
import
org.springframework.util.StringUtils
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -110,7 +112,9 @@ public class ZincUtil {
...
@@ -110,7 +112,9 @@ public class ZincUtil {
item
.
setName
(
rawData
.
get
(
"name"
).
toString
());
item
.
setName
(
rawData
.
get
(
"name"
).
toString
());
item
.
setPrice
(((
Double
)
rawData
.
get
(
"price"
)).
longValue
());
item
.
setPrice
(((
Double
)
rawData
.
get
(
"price"
)).
longValue
());
item
.
setImages
(
rawData
.
get
(
"images"
).
toString
());
item
.
setImages
(
rawData
.
get
(
"images"
).
toString
());
item
.
setBidTime
(
rawData
.
get
(
"bid_time"
).
toString
());
if
(!
ObjectUtils
.
isEmpty
(
rawData
.
get
(
"bid_time"
)))
{
item
.
setBidTime
(
DateUtils
.
parseString
(
rawData
.
get
(
"bid_time"
).
toString
()));
}
item
.
setCid
(((
Double
)
rawData
.
get
(
"cid"
)).
intValue
());
item
.
setCid
(((
Double
)
rawData
.
get
(
"cid"
)).
intValue
());
item
.
setDetail
(
rawData
.
get
(
"detail"
).
toString
());
item
.
setDetail
(
rawData
.
get
(
"detail"
).
toString
());
item
.
setExtra
(
rawData
.
get
(
"extra"
).
toString
());
item
.
setExtra
(
rawData
.
get
(
"extra"
).
toString
());
...
...
ch-dao/src/main/java/com/wwdz/ch/db/bean/ItemOfEs.java
View file @
0f1f40d0
...
@@ -76,7 +76,7 @@ public class ItemOfEs implements Entity {
...
@@ -76,7 +76,7 @@ public class ItemOfEs implements Entity {
/**
/**
* 成交时间
* 成交时间
*/
*/
private
String
bidTime
;
private
Date
bidTime
;
/**
/**
* 备注说明
* 备注说明
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/Item.java
View file @
0f1f40d0
package
com.wwdz.ch.db.domain
;
package
com.wwdz.ch.db.domain
;
import
com.xxdxxs.entity.Entity
;
import
java.io.Serializable
;
import
lombok.Data
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
/**
/**
* @author shiyu
* @author shiyu
* @date 2023/09/
15
* @date 2023/09/
27
*/
*/
@Data
@Data
public
class
Item
implements
Entity
{
public
class
Item
implements
Entity
{
private
Long
id
;
private
Long
id
;
/**
/**
*
商品
名称
*
钱币
名称
*/
*/
private
String
name
;
private
String
name
;
/**
/**
*
商品
所属类目ID
*
钱币
所属类目ID
*/
*/
private
Integer
cid
;
private
Integer
cid
;
...
@@ -75,10 +76,7 @@ public class Item implements Entity {
...
@@ -75,10 +76,7 @@ public class Item implements Entity {
*/
*/
private
Boolean
isDeleted
;
private
Boolean
isDeleted
;
/**
private
Date
bidTime
;
* 成交时间
*/
private
String
bidTime
;
/**
/**
* 备注说明
* 备注说明
...
@@ -96,7 +94,7 @@ public class Item implements Entity {
...
@@ -96,7 +94,7 @@ public class Item implements Entity {
private
String
originalSourceUrl
;
private
String
originalSourceUrl
;
/**
/**
* 来源
7(1,2,3,
,8,10,11):中国的
* 来源
(1,2,3,7
,8,10,11):中国的
*/
*/
private
Integer
source
;
private
Integer
source
;
...
@@ -111,17 +109,17 @@ public class Item implements Entity {
...
@@ -111,17 +109,17 @@ public class Item implements Entity {
private
Integer
viewPermission
;
private
Integer
viewPermission
;
/**
/**
*
商品
额外信息
*
钱币
额外信息
*/
*/
private
String
extra
;
private
String
extra
;
/**
/**
* 商品图片
,
分号分隔
* 商品图片
,
分号分隔
*/
*/
private
String
images
;
private
String
images
;
/**
/**
* 商品视频,
分号分隔
* 商品视频,分号分隔
*/
*/
private
String
videos
;
private
String
videos
;
...
@@ -265,7 +263,7 @@ public class Item implements Entity {
...
@@ -265,7 +263,7 @@ public class Item implements Entity {
sourceType
(
"source_type"
,
"sourceType"
,
"INTEGER"
,
false
),
sourceType
(
"source_type"
,
"sourceType"
,
"INTEGER"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
updateTime
(
"update_time"
,
"updateTime"
,
"TIMESTAMP"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
isDeleted
(
"is_deleted"
,
"isDeleted"
,
"BIT"
,
false
),
bidTime
(
"bid_time"
,
"bidTime"
,
"
VARCHAR
"
,
false
),
bidTime
(
"bid_time"
,
"bidTime"
,
"
TIMESTAMP
"
,
false
),
remark
(
"remark"
,
"remark"
,
"VARCHAR"
,
false
),
remark
(
"remark"
,
"remark"
,
"VARCHAR"
,
false
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
state
(
"state"
,
"state"
,
"INTEGER"
,
true
),
originalSourceUrl
(
"original_source_url"
,
"originalSourceUrl"
,
"VARCHAR"
,
false
),
originalSourceUrl
(
"original_source_url"
,
"originalSourceUrl"
,
"VARCHAR"
,
false
),
...
...
ch-dao/src/main/java/com/wwdz/ch/db/domain/ItemExample.java
View file @
0f1f40d0
...
@@ -1904,7 +1904,7 @@ public class ItemExample {
...
@@ -1904,7 +1904,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeEqualTo
(
String
value
)
{
public
Criteria
andBidTimeEqualTo
(
Date
value
)
{
addCriterion
(
"bid_time ="
,
value
,
"bidTime"
);
addCriterion
(
"bid_time ="
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -1921,7 +1921,7 @@ public class ItemExample {
...
@@ -1921,7 +1921,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeNotEqualTo
(
String
value
)
{
public
Criteria
andBidTimeNotEqualTo
(
Date
value
)
{
addCriterion
(
"bid_time <>"
,
value
,
"bidTime"
);
addCriterion
(
"bid_time <>"
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -1938,7 +1938,7 @@ public class ItemExample {
...
@@ -1938,7 +1938,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeGreaterThan
(
String
value
)
{
public
Criteria
andBidTimeGreaterThan
(
Date
value
)
{
addCriterion
(
"bid_time >"
,
value
,
"bidTime"
);
addCriterion
(
"bid_time >"
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -1955,7 +1955,7 @@ public class ItemExample {
...
@@ -1955,7 +1955,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeGreaterThanOrEqualTo
(
String
value
)
{
public
Criteria
andBidTimeGreaterThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"bid_time >="
,
value
,
"bidTime"
);
addCriterion
(
"bid_time >="
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -1972,7 +1972,7 @@ public class ItemExample {
...
@@ -1972,7 +1972,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeLessThan
(
String
value
)
{
public
Criteria
andBidTimeLessThan
(
Date
value
)
{
addCriterion
(
"bid_time <"
,
value
,
"bidTime"
);
addCriterion
(
"bid_time <"
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -1989,7 +1989,7 @@ public class ItemExample {
...
@@ -1989,7 +1989,7 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeLessThanOrEqualTo
(
String
value
)
{
public
Criteria
andBidTimeLessThanOrEqualTo
(
Date
value
)
{
addCriterion
(
"bid_time <="
,
value
,
"bidTime"
);
addCriterion
(
"bid_time <="
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
@@ -2006,32 +2006,22 @@ public class ItemExample {
...
@@ -2006,32 +2006,22 @@ public class ItemExample {
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeLike
(
String
value
)
{
public
Criteria
andBidTimeIn
(
List
<
Date
>
values
)
{
addCriterion
(
"bid_time like"
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBidTimeNotLike
(
String
value
)
{
addCriterion
(
"bid_time not like"
,
value
,
"bidTime"
);
return
(
Criteria
)
this
;
}
public
Criteria
andBidTimeIn
(
List
<
String
>
values
)
{
addCriterion
(
"bid_time in"
,
values
,
"bidTime"
);
addCriterion
(
"bid_time in"
,
values
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeNotIn
(
List
<
String
>
values
)
{
public
Criteria
andBidTimeNotIn
(
List
<
Date
>
values
)
{
addCriterion
(
"bid_time not in"
,
values
,
"bidTime"
);
addCriterion
(
"bid_time not in"
,
values
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeBetween
(
String
value1
,
String
value2
)
{
public
Criteria
andBidTimeBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"bid_time between"
,
value1
,
value2
,
"bidTime"
);
addCriterion
(
"bid_time between"
,
value1
,
value2
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
public
Criteria
andBidTimeNotBetween
(
String
value1
,
String
value2
)
{
public
Criteria
andBidTimeNotBetween
(
Date
value1
,
Date
value2
)
{
addCriterion
(
"bid_time not between"
,
value1
,
value2
,
"bidTime"
);
addCriterion
(
"bid_time not between"
,
value1
,
value2
,
"bidTime"
);
return
(
Criteria
)
this
;
return
(
Criteria
)
this
;
}
}
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/ItemMapper.java
View file @
0f1f40d0
...
@@ -2,11 +2,11 @@ package com.wwdz.ch.db.mapper;
...
@@ -2,11 +2,11 @@ package com.wwdz.ch.db.mapper;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.ItemExample
;
import
com.wwdz.ch.db.domain.ItemExample
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
ItemMapper
{
public
interface
ItemMapper
{
long
countByExample
(
ItemExample
example
);
long
countByExample
(
ItemExample
example
);
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/ItemMapper.xml
View file @
0f1f40d0
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<result
column=
"source_type"
jdbcType=
"INTEGER"
property=
"sourceType"
/>
<result
column=
"source_type"
jdbcType=
"INTEGER"
property=
"sourceType"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
<result
column=
"is_deleted"
jdbcType=
"BIT"
property=
"isDeleted"
/>
<result
column=
"bid_time"
jdbcType=
"
VARCHAR
"
property=
"bidTime"
/>
<result
column=
"bid_time"
jdbcType=
"
TIMESTAMP
"
property=
"bidTime"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"remark"
jdbcType=
"VARCHAR"
property=
"remark"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"state"
jdbcType=
"INTEGER"
property=
"state"
/>
<result
column=
"original_source_url"
jdbcType=
"VARCHAR"
property=
"originalSourceUrl"
/>
<result
column=
"original_source_url"
jdbcType=
"VARCHAR"
property=
"originalSourceUrl"
/>
...
@@ -216,7 +216,7 @@
...
@@ -216,7 +216,7 @@
#{isStd,jdbcType=BIT}, #{sort,jdbcType=INTEGER}, #{shareImage,jdbcType=VARCHAR},
#{isStd,jdbcType=BIT}, #{sort,jdbcType=INTEGER}, #{shareImage,jdbcType=VARCHAR},
#{topImage,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{topImage,jdbcType=VARCHAR}, #{price,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{sourceType,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT},
#{sourceType,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=BIT},
#{bidTime,jdbcType=
VARCHAR
}, #{remark,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER},
#{bidTime,jdbcType=
TIMESTAMP
}, #{remark,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER},
#{originalSourceUrl,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER}, #{kind,jdbcType=INTEGER},
#{originalSourceUrl,jdbcType=VARCHAR}, #{source,jdbcType=INTEGER}, #{kind,jdbcType=INTEGER},
#{viewPermission,jdbcType=INTEGER}, #{extra,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR},
#{viewPermission,jdbcType=INTEGER}, #{extra,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR},
#{videos,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR}, #{originalExtra,jdbcType=LONGVARCHAR}
#{videos,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR}, #{originalExtra,jdbcType=LONGVARCHAR}
...
@@ -339,7 +339,7 @@
...
@@ -339,7 +339,7 @@
#{isDeleted,jdbcType=BIT},
#{isDeleted,jdbcType=BIT},
</if>
</if>
<if
test=
"bidTime != null"
>
<if
test=
"bidTime != null"
>
#{bidTime,jdbcType=
VARCHAR
},
#{bidTime,jdbcType=
TIMESTAMP
},
</if>
</if>
<if
test=
"remark != null"
>
<if
test=
"remark != null"
>
#{remark,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
...
@@ -425,7 +425,7 @@
...
@@ -425,7 +425,7 @@
is_deleted = #{record.isDeleted,jdbcType=BIT},
is_deleted = #{record.isDeleted,jdbcType=BIT},
</if>
</if>
<if
test=
"record.bidTime != null"
>
<if
test=
"record.bidTime != null"
>
bid_time = #{record.bidTime,jdbcType=
VARCHAR
},
bid_time = #{record.bidTime,jdbcType=
TIMESTAMP
},
</if>
</if>
<if
test=
"record.remark != null"
>
<if
test=
"record.remark != null"
>
remark = #{record.remark,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR},
...
@@ -480,7 +480,7 @@
...
@@ -480,7 +480,7 @@
source_type = #{record.sourceType,jdbcType=INTEGER},
source_type = #{record.sourceType,jdbcType=INTEGER},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
is_deleted = #{record.isDeleted,jdbcType=BIT},
bid_time = #{record.bidTime,jdbcType=
VARCHAR
},
bid_time = #{record.bidTime,jdbcType=
TIMESTAMP
},
remark = #{record.remark,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR},
`state` = #{record.state,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
...
@@ -511,7 +511,7 @@
...
@@ -511,7 +511,7 @@
source_type = #{record.sourceType,jdbcType=INTEGER},
source_type = #{record.sourceType,jdbcType=INTEGER},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_deleted = #{record.isDeleted,jdbcType=BIT},
is_deleted = #{record.isDeleted,jdbcType=BIT},
bid_time = #{record.bidTime,jdbcType=
VARCHAR
},
bid_time = #{record.bidTime,jdbcType=
TIMESTAMP
},
remark = #{record.remark,jdbcType=VARCHAR},
remark = #{record.remark,jdbcType=VARCHAR},
`state` = #{record.state,jdbcType=INTEGER},
`state` = #{record.state,jdbcType=INTEGER},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
original_source_url = #{record.originalSourceUrl,jdbcType=VARCHAR},
...
@@ -562,7 +562,7 @@
...
@@ -562,7 +562,7 @@
is_deleted = #{isDeleted,jdbcType=BIT},
is_deleted = #{isDeleted,jdbcType=BIT},
</if>
</if>
<if
test=
"bidTime != null"
>
<if
test=
"bidTime != null"
>
bid_time = #{bidTime,jdbcType=
VARCHAR
},
bid_time = #{bidTime,jdbcType=
TIMESTAMP
},
</if>
</if>
<if
test=
"remark != null"
>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
...
@@ -614,7 +614,7 @@
...
@@ -614,7 +614,7 @@
source_type = #{sourceType,jdbcType=INTEGER},
source_type = #{sourceType,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
is_deleted = #{isDeleted,jdbcType=BIT},
bid_time = #{bidTime,jdbcType=
VARCHAR
},
bid_time = #{bidTime,jdbcType=
TIMESTAMP
},
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
`state` = #{state,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
...
@@ -642,7 +642,7 @@
...
@@ -642,7 +642,7 @@
source_type = #{sourceType,jdbcType=INTEGER},
source_type = #{sourceType,jdbcType=INTEGER},
update_time = #{updateTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_deleted = #{isDeleted,jdbcType=BIT},
is_deleted = #{isDeleted,jdbcType=BIT},
bid_time = #{bidTime,jdbcType=
VARCHAR
},
bid_time = #{bidTime,jdbcType=
TIMESTAMP
},
remark = #{remark,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
`state` = #{state,jdbcType=INTEGER},
`state` = #{state,jdbcType=INTEGER},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
original_source_url = #{originalSourceUrl,jdbcType=VARCHAR},
...
@@ -718,6 +718,7 @@
...
@@ -718,6 +718,7 @@
</if>
</if>
limit 1
limit 1
</select>
</select>
<select
id=
"selectOnlyOneselfItems"
parameterType=
"java.lang.Long"
resultType=
"java.lang.Long"
>
<select
id=
"selectOnlyOneselfItems"
parameterType=
"java.lang.Long"
resultType=
"java.lang.Long"
>
select a.id from item a join user_items_relation b on a.id = b.item_id where a.source_type = 2 and a.view_permission = 1 and b.user_id != #{userId}
select a.id from item a join user_items_relation b on a.id = b.item_id where a.source_type = 2 and a.view_permission = 1 and b.user_id != #{userId}
</select>
</select>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/config/WebMvcConfiguration.java
View file @
0f1f40d0
...
@@ -31,7 +31,6 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
...
@@ -31,7 +31,6 @@ public class WebMvcConfiguration implements WebMvcConfigurer {
.
addPathPatterns
(
"/**"
)
.
addPathPatterns
(
"/**"
)
.
excludePathPatterns
(
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
.
excludePathPatterns
(
"/*.html"
,
"/**/*.html"
,
"/**/*.css"
,
"/**/*.js"
,
"/wx/user/loginByWx"
,
"/wx/user/loginByMobile"
,
"/wx/user/loginRegCaptcha"
,
"/wx/user/updateRegCaptcha"
,
"/wx/user/login"
,
"/wx/user/fillCode"
,
"/wx/user/loginByWx"
,
"/wx/user/loginByMobile"
,
"/wx/user/loginRegCaptcha"
,
"/wx/user/updateRegCaptcha"
,
"/wx/user/login"
,
"/wx/user/fillCode"
,
"/wx/follow/**"
,
"/wx/message/**"
);
);
}
}
}
}
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/WxGoodsController.java
View file @
0f1f40d0
...
@@ -17,6 +17,7 @@ import com.wwdz.ch.db.domain.Footprint;
...
@@ -17,6 +17,7 @@ import com.wwdz.ch.db.domain.Footprint;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.Item
;
import
com.wwdz.ch.db.domain.SearchHistory
;
import
com.wwdz.ch.db.domain.SearchHistory
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
com.wwdz.ch.wx.annotation.LoginUser
;
import
com.xxdxxs.utils.DateUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
...
@@ -123,9 +124,11 @@ public class WxGoodsController {
...
@@ -123,9 +124,11 @@ public class WxGoodsController {
if
(
null
!=
item
)
{
if
(
null
!=
item
)
{
iv
.
setId
(
item
.
getId
());
iv
.
setId
(
item
.
getId
());
if
(
null
!=
item
.
getBidTime
()
&&
item
.
getBidTime
().
length
()
>
3
)
{
if
(
item
.
getBidTime
()
!=
null
)
{
iv
.
setBidTime
(
item
.
getBidTime
().
substring
(
0
,
4
)
+
"年"
);
String
bidTime
=
DateUtils
.
toString
(
item
.
getBidTime
());
iv
.
setBidTime
(
bidTime
.
substring
(
0
,
4
)
+
"年"
);
}
}
String
extra
=
item
.
getExtra
();
String
extra
=
item
.
getExtra
();
iv
.
setName
(
item
.
getName
());
iv
.
setName
(
item
.
getName
());
Map
<
String
,
Object
>
extraData
=
(
Map
<
String
,
Object
>)
JSONUtils
.
parse
(
extra
);
Map
<
String
,
Object
>
extraData
=
(
Map
<
String
,
Object
>)
JSONUtils
.
parse
(
extra
);
...
@@ -259,9 +262,11 @@ public class WxGoodsController {
...
@@ -259,9 +262,11 @@ public class WxGoodsController {
for
(
Item
item
:
rawItemList
)
{
for
(
Item
item
:
rawItemList
)
{
ItemVo
iv
=
new
ItemVo
();
ItemVo
iv
=
new
ItemVo
();
iv
.
setId
(
item
.
getId
());
iv
.
setId
(
item
.
getId
());
if
(
null
!=
item
.
getBidTime
()
&&
item
.
getBidTime
().
length
()
>
3
)
{
if
(
item
.
getBidTime
()
!=
null
)
{
iv
.
setBidTime
(
item
.
getBidTime
().
substring
(
0
,
4
)
+
"年"
);
String
bidTime
=
DateUtils
.
toString
(
item
.
getBidTime
());
iv
.
setBidTime
(
bidTime
.
substring
(
0
,
4
)
+
"年"
);
}
}
String
extra
=
item
.
getExtra
();
String
extra
=
item
.
getExtra
();
iv
.
setName
(
item
.
getName
());
iv
.
setName
(
item
.
getName
());
Map
<
String
,
Object
>
extraData
=
(
Map
<
String
,
Object
>)
JSONUtils
.
parse
(
extra
);
Map
<
String
,
Object
>
extraData
=
(
Map
<
String
,
Object
>)
JSONUtils
.
parse
(
extra
);
...
...
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