Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
3459a90f
Commit
3459a90f
authored
Sep 10, 2024
by
joy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查询条件
parent
16ad5b47
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
6 deletions
+84
-6
TimeSlot.java
...java/cn/iocoder/yudao/framework/common/pojo/TimeSlot.java
+23
-0
OfferMapper.java
...ocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
+38
-0
OfferPageReqVO.java
...cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
+23
-6
No files found.
yudao-framework/yudao-common/src/main/java/cn/iocoder/yudao/framework/common/pojo/TimeSlot.java
0 → 100644
View file @
3459a90f
package
cn
.
iocoder
.
yudao
.
framework
.
common
.
pojo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
/**
* @author Administrator
*/
@ApiModel
(
"时间段"
)
@Data
public
class
TimeSlot
{
@ApiModelProperty
(
value
=
"开始时间"
,
required
=
false
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
String
after
;
@ApiModelProperty
(
value
=
"结束时间"
,
required
=
false
)
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
private
String
before
;
}
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/dal/mysql/offer/OfferMapper.java
View file @
3459a90f
...
...
@@ -195,6 +195,25 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"<when test = 'pageVO.beginEndTime != null and pageVO.endEndTime != null '>"
,
"AND o.`end_time` between #{pageVO.beginEndTime} and #{pageVO.endEndTime}"
,
"</when>"
,
"<when test = 'pageVO.expired != null and pageVO.expired.after != null and pageVO.expired.before != null'>"
,
"AND o.`end_time` between #{pageVO.expired.after} and #{pageVO.expired.before}"
,
"</when>"
,
"<when test = 'pageVO.importances != null and pageVO.importances.size() > 0'>"
,
"AND o.`importance` IN "
,
"<foreach item='importance' collection='pageVO.importances' open='(' close=')' separator=','> #{importance} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.salesmanIds != null and pageVO.salesmanIds.size() > 0'>"
,
"AND o.`follow_up_salesman_id` IN "
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"AND o.`status` IN "
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.channelIds != null and pageVO.channelIds.size() > 0'>"
,
"AND o.`channel_id` IN "
,
"<foreach item='it' collection='pageVO.channelIds' open='(' close=')' separator=','> #{it} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.beginStopTime != null and pageVO.endStopTime != null '>"
,
"AND o.`stop_time` between #{pageVO.beginStopTime} and #{pageVO.endStopTime}"
,
"</when>"
,
...
...
@@ -303,6 +322,25 @@ public interface OfferMapper extends BaseMapperX<OfferDO> {
"<when test = 'pageVO.beginStopTime != null and pageVO.endStopTime != null '>"
,
"AND o.`stop_time` between #{pageVO.beginStopTime} and #{pageVO.endStopTime}"
,
"</when>"
,
"<when test = 'pageVO.expired != null and pageVO.expired.after != null and pageVO.expired.before != null'>"
,
"AND o.`end_time` between #{pageVO.expired.after} and #{pageVO.expired.before}"
,
"</when>"
,
"<when test = 'pageVO.importances != null and pageVO.importances.size() > 0'>"
,
"AND o.`importance` IN "
,
"<foreach item='importance' collection='pageVO.importances' open='(' close=')' separator=','> #{importance} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.salesmanIds != null and pageVO.salesmanIds.size() > 0'>"
,
"AND o.`follow_up_salesman_id` IN "
,
"<foreach item='id' collection='pageVO.salesmanIds' open='(' close=')' separator=','> #{id} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.statusList != null and pageVO.statusList.size() > 0'>"
,
"AND o.`status` IN "
,
"<foreach item='it' collection='pageVO.statusList' open='(' close=')' separator=','> #{it} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.channelIds != null and pageVO.channelIds.size() > 0'>"
,
"AND o.`channel_id` IN "
,
"<foreach item='it' collection='pageVO.channelIds' open='(' close=')' separator=','> #{it} </foreach>)"
,
"</when>"
,
"<when test = 'pageVO.relationId != null'>"
,
"AND o.`relation_id` = #{pageVO.relationId}"
,
"</when>"
,
...
...
yudao-module-sale/yudao-module-sale-core/src/main/java/cn/iocoder/yudao/module/sale/vo/offer/OfferPageReqVO.java
View file @
3459a90f
package
cn
.
iocoder
.
yudao
.
module
.
sale
.
vo
.
offer
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
lombok.*
;
import
java.util.*
;
import
io.swagger.annotations.*
;
import
cn.iocoder.yudao.framework.common.pojo.PageParam
;
import
cn.iocoder.yudao.framework.common.pojo.TimeSlot
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.ToString
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
import
java.util.List
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
util
.
date
.
DateUtils
.
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
;
...
...
@@ -175,4 +177,19 @@ public class OfferPageReqVO extends PageParam {
@ApiModelProperty
(
value
=
"目的仓ID集合"
)
private
List
<
Long
>
destWarehouseIds
;
@ApiModelProperty
(
value
=
"有效期"
)
private
TimeSlot
expired
;
@ApiModelProperty
(
value
=
"重要程度"
)
private
List
<
Integer
>
importances
;
@ApiModelProperty
(
value
=
"客户经理列表"
)
private
List
<
Long
>
salesmanIds
;
@ApiModelProperty
(
value
=
"阶段列表"
)
private
List
<
Integer
>
statusList
;
@ApiModelProperty
(
value
=
"出货渠道列表"
)
private
List
<
Long
>
channelIds
;
}
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