Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
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
pseer
gxpt_ht
Commits
57bd4ca4
Commit
57bd4ca4
authored
Oct 11, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d915d0e2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
6 deletions
+47
-6
pom.xml
pom.xml
+1
-0
SOrderController.java
...in/java/share/web/controller/system/SOrderController.java
+2
-2
SOrder.java
share-system/src/main/java/share/system/domain/SOrder.java
+31
-1
SOrderMapper.xml
...-system/src/main/resources/mapper/system/SOrderMapper.xml
+13
-3
No files found.
pom.xml
View file @
57bd4ca4
...
@@ -175,6 +175,7 @@
...
@@ -175,6 +175,7 @@
<modules>
<modules>
<module>
share-admin
</module>
<module>
share-admin
</module>
<module>
share-front
</module>
<module>
share-framework
</module>
<module>
share-framework
</module>
<module>
share-system
</module>
<module>
share-system
</module>
<module>
share-quartz
</module>
<module>
share-quartz
</module>
...
...
share-admin/src/main/java/share/web/controller/system/SOrderController.java
View file @
57bd4ca4
package
share
.
system
.
controller
;
package
share
.
web
.
controller
.
system
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -25,7 +25,7 @@ import share.common.core.page.TableDataInfo;
...
@@ -25,7 +25,7 @@ import share.common.core.page.TableDataInfo;
* 订单Controller
* 订单Controller
*
*
* @author ruoyi
* @author ruoyi
* @date 2023-
09-27
* @date 2023-
10-09
*/
*/
@RestController
@RestController
@RequestMapping
(
"/system/order"
)
@RequestMapping
(
"/system/order"
)
...
...
share-system/src/main/java/share/system/domain/SOrder.java
View file @
57bd4ca4
...
@@ -11,7 +11,7 @@ import share.common.core.domain.BaseEntity;
...
@@ -11,7 +11,7 @@ import share.common.core.domain.BaseEntity;
* 订单对象 s_order
* 订单对象 s_order
*
*
* @author ruoyi
* @author ruoyi
* @date 2023-
09-27
* @date 2023-
10-09
*/
*/
public
class
SOrder
extends
BaseEntity
public
class
SOrder
extends
BaseEntity
{
{
...
@@ -82,6 +82,16 @@ public class SOrder extends BaseEntity
...
@@ -82,6 +82,16 @@ public class SOrder extends BaseEntity
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
endDate
;
private
Date
endDate
;
/** 预约开始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"预约开始时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
preStartDate
;
/** 预约结束时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"预约结束时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
preEndDate
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -226,6 +236,24 @@ public class SOrder extends BaseEntity
...
@@ -226,6 +236,24 @@ public class SOrder extends BaseEntity
{
{
return
endDate
;
return
endDate
;
}
}
public
void
setPreStartDate
(
Date
preStartDate
)
{
this
.
preStartDate
=
preStartDate
;
}
public
Date
getPreStartDate
()
{
return
preStartDate
;
}
public
void
setPreEndDate
(
Date
preEndDate
)
{
this
.
preEndDate
=
preEndDate
;
}
public
Date
getPreEndDate
()
{
return
preEndDate
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
...
@@ -251,6 +279,8 @@ public class SOrder extends BaseEntity
...
@@ -251,6 +279,8 @@ public class SOrder extends BaseEntity
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"preStartDate"
,
getPreStartDate
())
.
append
(
"preEndDate"
,
getPreEndDate
())
.
toString
();
.
toString
();
}
}
}
}
share-system/src/main/resources/mapper/system/SOrderMapper.xml
View file @
57bd4ca4
<?xml version="1.0" encoding="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"share.system.mapper.SOrderMapper"
>
<mapper
namespace=
"share.system.mapper.SOrderMapper"
>
<resultMap
type=
"SOrder"
id=
"SOrderResult"
>
<resultMap
type=
"SOrder"
id=
"SOrderResult"
>
...
@@ -26,10 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -26,10 +26,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"preStartDate"
column=
"pre_start_date"
/>
<result
property=
"preEndDate"
column=
"pre_end_date"
/>
</resultMap>
</resultMap>
<sql
id=
"selectSOrderVo"
>
<sql
id=
"selectSOrderVo"
>
select id, order_type, serial_number, consumer_id, consumer_name, description, original_price, pay_ways, real_price, is_use_coupon, coupon_type, coupon_name, coupon_id, status, start_date, end_date, create_by, create_time, update_by, update_time, remark from s_order
select id, order_type, serial_number, consumer_id, consumer_name, description, original_price, pay_ways, real_price, is_use_coupon, coupon_type, coupon_name, coupon_id, status, start_date, end_date, create_by, create_time, update_by, update_time, remark
, pre_start_date, pre_end_date
from s_order
</sql>
</sql>
<select
id=
"selectSOrderList"
parameterType=
"SOrder"
resultMap=
"SOrderResult"
>
<select
id=
"selectSOrderList"
parameterType=
"SOrder"
resultMap=
"SOrderResult"
>
...
@@ -50,6 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -50,6 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"startDate != null "
>
and start_date = #{startDate}
</if>
<if
test=
"startDate != null "
>
and start_date = #{startDate}
</if>
<if
test=
"endDate != null "
>
and end_date = #{endDate}
</if>
<if
test=
"endDate != null "
>
and end_date = #{endDate}
</if>
<if
test=
"preStartDate != null "
>
and pre_start_date = #{preStartDate}
</if>
<if
test=
"preEndDate != null "
>
and pre_end_date = #{preEndDate}
</if>
</where>
</where>
</select>
</select>
...
@@ -81,6 +85,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -81,6 +85,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateBy != null"
>
update_by,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"preStartDate != null"
>
pre_start_date,
</if>
<if
test=
"preEndDate != null"
>
pre_end_date,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"orderType != null"
>
#{orderType},
</if>
<if
test=
"orderType != null"
>
#{orderType},
</if>
...
@@ -103,6 +109,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -103,6 +109,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateBy != null"
>
#{updateBy},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"updateTime != null"
>
#{updateTime},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"remark != null"
>
#{remark},
</if>
<if
test=
"preStartDate != null"
>
#{preStartDate},
</if>
<if
test=
"preEndDate != null"
>
#{preEndDate},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -129,6 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -129,6 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateBy != null"
>
update_by = #{updateBy},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"remark != null"
>
remark = #{remark},
</if>
<if
test=
"preStartDate != null"
>
pre_start_date = #{preStartDate},
</if>
<if
test=
"preEndDate != null"
>
pre_end_date = #{preEndDate},
</if>
</trim>
</trim>
where id = #{id}
where id = #{id}
</update>
</update>
...
...
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