Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
master-4.0
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
master-4.0
Commits
edbf33c4
提交
edbf33c4
authored
1月 09, 2019
作者:
lvwei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
41089b1a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
135 行增加
和
1 行删除
+135
-1
OrderMapper.java
...r/src/main/java/com/zrqx/order/bg/mapper/OrderMapper.java
+58
-1
OrderRemarkLogMapper.java
...n/java/com/zrqx/order/bg/mapper/OrderRemarkLogMapper.java
+33
-0
OrderStatusLogMapper.java
...n/java/com/zrqx/order/bg/mapper/OrderStatusLogMapper.java
+33
-0
OrderinfoMapper.java
...c/main/java/com/zrqx/order/bg/mapper/OrderinfoMapper.java
+11
-0
没有找到文件。
com.zrqx.order/src/main/java/com/zrqx/order/bg/mapper/OrderMapper.java
浏览文件 @
edbf33c4
package
com
.
zrqx
.
order
.
bg
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Param
;
import
com.zrqx.core.form.order.bg.order.OrderForm
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.order.Order
;
import
com.zrqx.core.util.page.PageInfo
;
import
com.zrqx.core.util.page.PageParam
;
import
com.zrqx.core.vo.order.bg.OrderListVO
;
import
com.zrqx.core.vo.order.bg.OrderVO
;
@Mapper
public
interface
OrderMapper
extends
BaseMapper
<
Order
>
{
/**
* 查询订单列表
* @param orderFormQuery
* @return
* @author xjg
* @date 2019年1月7日 下午5:19:10
*/
@Select
(
"<script>"
+
" select a.id,a.code,a.createrName,a.payment,a.status,a.createTime,a.needInvoice,a.invoiceStatus,a.orderSource,a.payType "
+
" from ord_order a "
+
" where 1 = 1 "
// 订单号
+
"<if test='"
+
NOTBLANK
+
"(form.code)'>"
+
" and a.code in "
+
"<foreach item='item' index='index' collection= 'form.codes' open='(' separator=',' close=')'>"
+
"#{item}"
+
"</foreach>"
+
"</if>"
// 支付方式:请选择、支付宝、微信、网银
+
"<if test='form.payType!=null'>"
+
" and a.payType = #{form.payType} "
+
"</if>"
// 开票状态:请选择、已开票、未开票
+
"<if test='form.invoiceStatus!=null'>"
+
" and a.invoiceStatus = #{form.invoiceStatus} "
+
"</if>"
// 订单状态:待支付、已支付、已确认、待发货、配货中、已发货、已完成、已缺货、已取消、请选择
+
"<if test='form.status!=null'>"
+
" and a.status=#{form.status} "
+
"</if>"
// 下单时间-开始时间
+
"<if test='form.startTime!=null'>"
+
" and a.createTime <![CDATA[ >= ]]> #{form.startTime} "
+
"</if>"
// 下单时间-结束时间
+
"<if test='form.endTime!=null'>"
+
" and date(a.createTime) <![CDATA[ <= ]]> #{form.endTime} "
+
"</if>"
// 下单会员
+
"<if test='"
+
NOTBLANK
+
"(form.createrName)'>"
+
" and a.createrName = #{form.createrName} "
+
"</if>"
+
" group by a.id "
+
" order by a.createTime desc "
+
"</script>"
)
List
<
OrderListVO
>
page
(
@Param
(
"form"
)
OrderForm
form
);
}
com.zrqx.order/src/main/java/com/zrqx/order/bg/mapper/OrderRemarkLogMapper.java
0 → 100644
浏览文件 @
edbf33c4
package
com
.
zrqx
.
order
.
bg
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.order.OrderRemarkLog
;
@Mapper
public
interface
OrderRemarkLogMapper
extends
BaseMapper
<
OrderRemarkLog
>{
/**
* 根据订单id查询备注历史
* @param orderid
* @return
* @author ydm
* @date: 2018年7月16日 上午10:42:11
*/
@Select
(
"<script>"
+
"select a.operationContent,a.createTime,a.createrName "
+
" from ord_order_remark_log a where 1=1 "
// 订单id
+
"<if test='orderid!=null'>"
+
" and a.orderId = #{orderid} "
+
"</if>"
+
" order by a.createTime desc "
+
"</script>"
)
List
<
OrderRemarkLog
>
pageOrderRemarkLog
(
@Param
(
"orderid"
)
Integer
orderid
);
}
com.zrqx.order/src/main/java/com/zrqx/order/bg/mapper/OrderStatusLogMapper.java
0 → 100644
浏览文件 @
edbf33c4
package
com
.
zrqx
.
order
.
bg
.
mapper
;
import
java.util.List
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.order.OrderStatusLog
;
@Mapper
public
interface
OrderStatusLogMapper
extends
BaseMapper
<
OrderStatusLog
>{
/**
* 根据订单id查询备注历史
* @param orderid
* @return
* @author ydm
* @date: 2018年7月16日 上午10:42:11
*/
@Select
(
"<script>"
+
"select a.operationContent,a.createTime,a.createrName "
+
" from ord_order_status_log a where 1=1 "
// 订单id
+
"<if test='orderid!=null'>"
+
" and a.orderId = #{orderid} "
+
"</if>"
+
" order by a.createTime desc "
+
"</script>"
)
List
<
OrderStatusLog
>
pageOrderStatusLog
(
@Param
(
"orderid"
)
Integer
orderid
);
}
com.zrqx.order/src/main/java/com/zrqx/order/bg/mapper/OrderinfoMapper.java
0 → 100644
浏览文件 @
edbf33c4
package
com
.
zrqx
.
order
.
bg
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
com.zrqx.core.mapper.BaseMapper
;
import
com.zrqx.core.model.order.OrderInfo
;
@Mapper
public
interface
OrderinfoMapper
extends
BaseMapper
<
OrderInfo
>{
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论