Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
O
oms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
oms
Commits
4c145798
提交
4c145798
authored
3月 30, 2024
作者:
刘明祎-运维用途
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
积分商品相关接口
上级
46522099
流水线
#8663
已通过 于阶段
in 3 分 8 秒
变更
10
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
747 行增加
和
0 行删除
+747
-0
PointsMallController.java
...ava/com/mmc/oms/controller/mall/PointsMallController.java
+60
-0
PointsMallDao.java
src/main/java/com/mmc/oms/dao/mall/PointsMallDao.java
+34
-0
PointsOrderDao.java
src/main/java/com/mmc/oms/dao/mall/PointsOrderDao.java
+28
-0
PointsMallDO.java
src/main/java/com/mmc/oms/entity/mall/PointsMallDO.java
+41
-0
PointsOrderDO.java
src/main/java/com/mmc/oms/entity/mall/PointsOrderDO.java
+222
-0
GeneralQO.java
src/main/java/com/mmc/oms/model/qo/GeneralQO.java
+33
-0
PointMallService.java
src/main/java/com/mmc/oms/service/mall/PointMallService.java
+41
-0
PointsMallServiceImpl.java
.../com/mmc/oms/service/mall/impl/PointsMallServiceImpl.java
+68
-0
PointsMallDao.xml
src/main/resources/mapper/PointsMallDao.xml
+90
-0
PointsOrderDao.xml
src/main/resources/mapper/PointsOrderDao.xml
+130
-0
没有找到文件。
src/main/java/com/mmc/oms/controller/mall/PointsMallController.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
controller
.
mall
;
import
com.mmc.oms.common.result.ResultBody
;
import
com.mmc.oms.entity.mall.PointsMallDO
;
import
com.mmc.oms.model.dto.mall.MallOrderPageDTO
;
import
com.mmc.oms.model.qo.GeneralQO
;
import
com.mmc.oms.model.qo.mall.MallOrderQO
;
import
com.mmc.oms.service.mall.MallOrderService
;
import
com.mmc.oms.service.mall.PointMallService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiResponse
;
import
io.swagger.annotations.ApiResponses
;
import
lombok.AllArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
/**
* @author Admin
*/
@Api
(
tags
=
{
"积分商城(订单)"
})
@RestController
@RequestMapping
(
"/pointsMall/"
)
@AllArgsConstructor
public
class
PointsMallController
{
private
final
PointMallService
pointMallService
;
@ApiOperation
(
value
=
"后台——添加积分商品"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"insertMall"
)
public
ResultBody
insertMall
(
@RequestBody
PointsMallDO
param
,
HttpServletRequest
request
)
{
return
pointMallService
.
insertMall
(
param
);
}
@ApiOperation
(
value
=
"后台——修改积分商品"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"updateMall"
)
public
ResultBody
updateMall
(
@RequestBody
PointsMallDO
param
,
HttpServletRequest
request
)
{
return
pointMallService
.
updateMall
(
param
);
}
@ApiOperation
(
value
=
"积分商品详情"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@GetMapping
(
"getMallInfo"
)
public
ResultBody
getMallInfo
(
@RequestParam
(
"id"
)
Integer
id
,
HttpServletRequest
request
)
{
return
pointMallService
.
getMallInfo
(
id
);
}
@ApiOperation
(
value
=
"积分商城列表"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"getMallList"
)
public
ResultBody
getMallList
(
@RequestBody
GeneralQO
qo
,
HttpServletRequest
request
)
{
return
pointMallService
.
getMallList
(
qo
);
}
}
src/main/java/com/mmc/oms/dao/mall/PointsMallDao.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
dao
.
mall
;
import
com.mmc.oms.entity.mall.PointsMallDO
;
import
com.mmc.oms.model.qo.GeneralQO
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.List
;
/**
* @author Admin
* @description 针对表【points_mall】的数据库操作Mapper
* @createDate 2024-03-30 14:37:06
* @Entity com.mmc.oms.entity.mall.PointsMallDO
*/
@Mapper
public
interface
PointsMallDao
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
PointsMallDO
record
);
int
insertSelective
(
PointsMallDO
record
);
PointsMallDO
selectByPrimaryKey
(
Integer
id
);
int
updateByPrimaryKeySelective
(
PointsMallDO
record
);
int
updateByPrimaryKey
(
PointsMallDO
record
);
List
<
PointsMallDO
>
selectAll
(
GeneralQO
qo
);
int
count
();
}
src/main/java/com/mmc/oms/dao/mall/PointsOrderDao.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
dao
.
mall
;
import
com.mmc.oms.entity.mall.PointsOrderDO
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* @author Admin
* @description 针对表【points_order】的数据库操作Mapper
* @createDate 2024-03-30 14:37:06
* @Entity com.mmc.oms.entity.mall.PointsOrderDO
*/
@Mapper
public
interface
PointsOrderDao
{
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
PointsOrderDO
record
);
int
insertSelective
(
PointsOrderDO
record
);
PointsOrderDO
selectByPrimaryKey
(
Long
id
);
int
updateByPrimaryKeySelective
(
PointsOrderDO
record
);
int
updateByPrimaryKey
(
PointsOrderDO
record
);
}
src/main/java/com/mmc/oms/entity/mall/PointsMallDO.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
entity
.
mall
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
* @TableName points_mall
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
PointsMallDO
implements
Serializable
{
/**
*
*/
private
Integer
id
;
/**
* 所需积分
*/
private
Integer
needPoints
;
/**
* 商品名字
*/
private
String
goods
;
/**
* 商品图片
*/
private
String
goodsUrl
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
src/main/java/com/mmc/oms/entity/mall/PointsOrderDO.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
entity
.
mall
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
*
* @TableName points_order
*/
public
class
PointsOrderDO
implements
Serializable
{
/**
*
*/
private
Integer
id
;
/**
*
*/
private
Date
createTime
;
/**
*
*/
private
Date
updateTime
;
/**
* 购买积分商品的用户id
*/
private
Integer
userId
;
/**
* 积分商城id
*/
private
Integer
pointsMallId
;
/**
* 快递地址
*/
private
String
address
;
/**
* 快递单号
*/
private
String
trackingNumber
;
/**
* 收货姓名
*/
private
String
userName
;
/**
* 收货电话
*/
private
String
userPhone
;
/**
* 快递公司
*/
private
String
trackintCompany
;
/**
* 是否发货
*/
private
Integer
sendStatus
;
private
static
final
long
serialVersionUID
=
1L
;
/**
*
*/
public
Integer
getId
()
{
return
id
;
}
/**
*
*/
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
/**
*
*/
public
Date
getCreateTime
()
{
return
createTime
;
}
/**
*
*/
public
void
setCreateTime
(
Date
createTime
)
{
this
.
createTime
=
createTime
;
}
/**
*
*/
public
Date
getUpdateTime
()
{
return
updateTime
;
}
/**
*
*/
public
void
setUpdateTime
(
Date
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
/**
* 购买积分商品的用户id
*/
public
Integer
getUserId
()
{
return
userId
;
}
/**
* 购买积分商品的用户id
*/
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
}
/**
* 积分商城id
*/
public
Integer
getPointsMallId
()
{
return
pointsMallId
;
}
/**
* 积分商城id
*/
public
void
setPointsMallId
(
Integer
pointsMallId
)
{
this
.
pointsMallId
=
pointsMallId
;
}
/**
* 快递地址
*/
public
String
getAddress
()
{
return
address
;
}
/**
* 快递地址
*/
public
void
setAddress
(
String
address
)
{
this
.
address
=
address
;
}
/**
* 快递单号
*/
public
String
getTrackingNumber
()
{
return
trackingNumber
;
}
/**
* 快递单号
*/
public
void
setTrackingNumber
(
String
trackingNumber
)
{
this
.
trackingNumber
=
trackingNumber
;
}
/**
* 收货姓名
*/
public
String
getUserName
()
{
return
userName
;
}
/**
* 收货姓名
*/
public
void
setUserName
(
String
userName
)
{
this
.
userName
=
userName
;
}
/**
* 收货电话
*/
public
String
getUserPhone
()
{
return
userPhone
;
}
/**
* 收货电话
*/
public
void
setUserPhone
(
String
userPhone
)
{
this
.
userPhone
=
userPhone
;
}
/**
* 快递公司
*/
public
String
getTrackintCompany
()
{
return
trackintCompany
;
}
/**
* 快递公司
*/
public
void
setTrackintCompany
(
String
trackintCompany
)
{
this
.
trackintCompany
=
trackintCompany
;
}
/**
* 是否发货
*/
public
Integer
getSendStatus
()
{
return
sendStatus
;
}
/**
* 是否发货
*/
public
void
setSendStatus
(
Integer
sendStatus
)
{
this
.
sendStatus
=
sendStatus
;
}
}
\ No newline at end of file
src/main/java/com/mmc/oms/model/qo/GeneralQO.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
model
.
qo
;
import
com.mmc.oms.common.publicinterface.Page
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotNull
;
@Data
@AllArgsConstructor
@NoArgsConstructor
public
class
GeneralQO
{
@ApiModelProperty
(
value
=
"页码"
,
required
=
true
,
example
=
"1"
)
@NotNull
(
message
=
"页码不能为空"
,
groups
=
{
Page
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageNo
;
@ApiModelProperty
(
value
=
"每页显示数"
,
required
=
true
,
example
=
"10"
)
@NotNull
(
message
=
"每页显示数不能为空"
,
groups
=
{
Page
.
class
})
@Min
(
value
=
1
,
groups
=
Page
.
class
)
private
Integer
pageSize
;
public
void
buildCurrentPage
()
{
this
.
pageNo
=
(
pageNo
-
1
)
*
pageSize
;
}
}
src/main/java/com/mmc/oms/service/mall/PointMallService.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
service
.
mall
;
import
com.mmc.oms.common.result.ResultBody
;
import
com.mmc.oms.entity.mall.PointsMallDO
;
import
com.mmc.oms.model.qo.GeneralQO
;
/**
* @author Admin
*/
public
interface
PointMallService
{
/**
* 添加商品
* @param pointsMallDO 参数
* @return {@link ResultBody}
*/
ResultBody
insertMall
(
PointsMallDO
pointsMallDO
);
/**
* 修改商品
* @param pointsMallDO 参数
* @return {@link ResultBody}
*/
ResultBody
updateMall
(
PointsMallDO
pointsMallDO
);
/**
* 获取积分商品详情
* @param id
* @return {@link ResultBody}
*/
ResultBody
getMallInfo
(
Integer
id
);
/**
* 获取积分商品列表
* @param qo 参数
* @return {@link ResultBody}
*/
ResultBody
getMallList
(
GeneralQO
qo
);
}
src/main/java/com/mmc/oms/service/mall/impl/PointsMallServiceImpl.java
0 → 100644
浏览文件 @
4c145798
package
com
.
mmc
.
oms
.
service
.
mall
.
impl
;
import
com.mmc.oms.common.result.PageResult
;
import
com.mmc.oms.common.result.ResultBody
;
import
com.mmc.oms.dao.mall.PointsMallDao
;
import
com.mmc.oms.dao.mall.PointsOrderDao
;
import
com.mmc.oms.entity.mall.PointsMallDO
;
import
com.mmc.oms.model.qo.GeneralQO
;
import
com.mmc.oms.service.mall.PointMallService
;
import
lombok.AllArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
* @author Admin
*/
@Service
@Slf4j
@Transactional
(
rollbackFor
=
Exception
.
class
)
@AllArgsConstructor
public
class
PointsMallServiceImpl
implements
PointMallService
{
private
PointsMallDao
pointsMallDao
;
private
PointsOrderDao
pointsOrderDao
;
@Override
public
ResultBody
insertMall
(
PointsMallDO
pointsMallDO
)
{
pointsMallDao
.
insert
(
pointsMallDO
);
return
ResultBody
.
success
();
}
@Override
public
ResultBody
updateMall
(
PointsMallDO
pointsMallDO
)
{
pointsMallDao
.
updateByPrimaryKeySelective
(
pointsMallDO
);
return
ResultBody
.
success
();
}
/**
* 获取积分商品详情
*
* @param id
* @return {@link ResultBody}
*/
@Override
public
ResultBody
getMallInfo
(
Integer
id
)
{
PointsMallDO
pointsMallDO
=
pointsMallDao
.
selectByPrimaryKey
(
id
);
return
ResultBody
.
success
(
pointsMallDO
);
}
/**
* 获取积分商品列表
*
* @param qo 参数
* @return {@link ResultBody}
*/
@Override
public
ResultBody
getMallList
(
GeneralQO
qo
)
{
qo
.
buildCurrentPage
();
List
<
PointsMallDO
>
pointsMallDOS
=
pointsMallDao
.
selectAll
(
qo
);
int
count
=
pointsMallDao
.
count
();
return
ResultBody
.
success
(
PageResult
.
buildPage
(
qo
.
getPageNo
(),
qo
.
getPageSize
(),
count
,
pointsMallDOS
));
}
}
src/main/resources/mapper/PointsMallDao.xml
0 → 100644
浏览文件 @
4c145798
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mmc.oms.dao.mall.PointsMallDao"
>
<resultMap
id=
"BaseResultMap"
type=
"com.mmc.oms.entity.mall.PointsMallDO"
>
<id
property=
"id"
column=
"id"
jdbcType=
"INTEGER"
/>
<result
property=
"needPoints"
column=
"need_points"
jdbcType=
"INTEGER"
/>
<result
property=
"goods"
column=
"goods"
jdbcType=
"VARCHAR"
/>
<result
property=
"goodsUrl"
column=
"goods_url"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,
need_points,goods,goods_url
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Integer"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from points_mall
where id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectAll"
resultType=
"com.mmc.oms.entity.mall.PointsMallDO"
>
select id,need_points,goods,goods_url from points_mall
limit #{pageNo},#{pageSize}
</select>
<select
id=
"count"
resultType=
"java.lang.Integer"
>
select count(1) from points_mall
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from points_mall
where id = #{id,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.mmc.oms.entity.mall.PointsMallDO"
useGeneratedKeys=
"true"
>
insert into points_mall
( id
,need_points,goods,goods_url
)
values (#{id,jdbcType=INTEGER}
,#{needPoints,jdbcType=INTEGER},#{goods,jdbcType=VARCHAR},#{goodsUrl,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.mmc.oms.entity.mall.PointsMallDO"
useGeneratedKeys=
"true"
>
insert into points_mall
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"needPoints != null"
>
need_points,
</if>
<if
test=
"goods != null"
>
goods,
</if>
<if
test=
"goodsUrl != null"
>
goods_url,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"needPoints != null"
>
#{needPoints,jdbcType=INTEGER},
</if>
<if
test=
"goods != null"
>
#{goods,jdbcType=VARCHAR},
</if>
<if
test=
"goodsUrl != null"
>
#{goodsUrl,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.mmc.oms.entity.mall.PointsMallDO"
>
update points_mall
<set>
<if
test=
"needPoints != null"
>
need_points = #{needPoints,jdbcType=INTEGER},
</if>
<if
test=
"goods != null"
>
goods = #{goods,jdbcType=VARCHAR},
</if>
<if
test=
"goodsUrl != null"
>
goods_url = #{goodsUrl,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.mmc.oms.entity.mall.PointsMallDO"
>
update points_mall
set
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
need_points = #{needPoints,jdbcType=INTEGER},
goods = #{goods,jdbcType=VARCHAR},
goods_url = #{goodsUrl,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
src/main/resources/mapper/PointsOrderDao.xml
0 → 100644
浏览文件 @
4c145798
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.mmc.oms.dao.mall.PointsOrderDao"
>
<resultMap
id=
"BaseResultMap"
type=
"com.mmc.oms.entity.mall.PointsOrderDO"
>
<id
property=
"id"
column=
"id"
jdbcType=
"INTEGER"
/>
<result
property=
"createTime"
column=
"create_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"updateTime"
column=
"update_time"
jdbcType=
"TIMESTAMP"
/>
<result
property=
"userId"
column=
"user_id"
jdbcType=
"INTEGER"
/>
<result
property=
"pointsMallId"
column=
"points_mall_id"
jdbcType=
"INTEGER"
/>
<result
property=
"address"
column=
"address"
jdbcType=
"VARCHAR"
/>
<result
property=
"trackingNumber"
column=
"tracking_number"
jdbcType=
"VARCHAR"
/>
<result
property=
"userName"
column=
"user_name"
jdbcType=
"VARCHAR"
/>
<result
property=
"userPhone"
column=
"user_phone"
jdbcType=
"CHAR"
/>
<result
property=
"trackintCompany"
column=
"trackint_company"
jdbcType=
"VARCHAR"
/>
<result
property=
"sendStatus"
column=
"send_status"
jdbcType=
"INTEGER"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id,create_time,update_time,
user_id,points_mall_id,address,
tracking_number,user_name,user_phone,
trackint_company,send_status
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from points_order
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
delete from points_order
where id = #{id,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.mmc.oms.entity.mall.PointsOrderDO"
useGeneratedKeys=
"true"
>
insert into points_order
( id,create_time,update_time
,user_id,points_mall_id,address
,tracking_number,user_name,user_phone
,trackint_company,send_status)
values (#{id,jdbcType=INTEGER},#{createTime,jdbcType=TIMESTAMP},#{updateTime,jdbcType=TIMESTAMP}
,#{userId,jdbcType=INTEGER},#{pointsMallId,jdbcType=INTEGER},#{address,jdbcType=VARCHAR}
,#{trackingNumber,jdbcType=VARCHAR},#{userName,jdbcType=VARCHAR},#{userPhone,jdbcType=CHAR}
,#{trackintCompany,jdbcType=VARCHAR},#{sendStatus,jdbcType=INTEGER})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.mmc.oms.entity.mall.PointsOrderDO"
useGeneratedKeys=
"true"
>
insert into points_order
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"updateTime != null"
>
update_time,
</if>
<if
test=
"userId != null"
>
user_id,
</if>
<if
test=
"pointsMallId != null"
>
points_mall_id,
</if>
<if
test=
"address != null"
>
address,
</if>
<if
test=
"trackingNumber != null"
>
tracking_number,
</if>
<if
test=
"userName != null"
>
user_name,
</if>
<if
test=
"userPhone != null"
>
user_phone,
</if>
<if
test=
"trackintCompany != null"
>
trackint_company,
</if>
<if
test=
"sendStatus != null"
>
send_status,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id,jdbcType=INTEGER},
</if>
<if
test=
"createTime != null"
>
#{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"userId != null"
>
#{userId,jdbcType=INTEGER},
</if>
<if
test=
"pointsMallId != null"
>
#{pointsMallId,jdbcType=INTEGER},
</if>
<if
test=
"address != null"
>
#{address,jdbcType=VARCHAR},
</if>
<if
test=
"trackingNumber != null"
>
#{trackingNumber,jdbcType=VARCHAR},
</if>
<if
test=
"userName != null"
>
#{userName,jdbcType=VARCHAR},
</if>
<if
test=
"userPhone != null"
>
#{userPhone,jdbcType=CHAR},
</if>
<if
test=
"trackintCompany != null"
>
#{trackintCompany,jdbcType=VARCHAR},
</if>
<if
test=
"sendStatus != null"
>
#{sendStatus,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.mmc.oms.entity.mall.PointsOrderDO"
>
update points_order
<set>
<if
test=
"createTime != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"updateTime != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if
test=
"userId != null"
>
user_id = #{userId,jdbcType=INTEGER},
</if>
<if
test=
"pointsMallId != null"
>
points_mall_id = #{pointsMallId,jdbcType=INTEGER},
</if>
<if
test=
"address != null"
>
address = #{address,jdbcType=VARCHAR},
</if>
<if
test=
"trackingNumber != null"
>
tracking_number = #{trackingNumber,jdbcType=VARCHAR},
</if>
<if
test=
"userName != null"
>
user_name = #{userName,jdbcType=VARCHAR},
</if>
<if
test=
"userPhone != null"
>
user_phone = #{userPhone,jdbcType=CHAR},
</if>
<if
test=
"trackintCompany != null"
>
trackint_company = #{trackintCompany,jdbcType=VARCHAR},
</if>
<if
test=
"sendStatus != null"
>
send_status = #{sendStatus,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.mmc.oms.entity.mall.PointsOrderDO"
>
update points_order
set
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
user_id = #{userId,jdbcType=INTEGER},
points_mall_id = #{pointsMallId,jdbcType=INTEGER},
address = #{address,jdbcType=VARCHAR},
tracking_number = #{trackingNumber,jdbcType=VARCHAR},
user_name = #{userName,jdbcType=VARCHAR},
user_phone = #{userPhone,jdbcType=CHAR},
trackint_company = #{trackintCompany,jdbcType=VARCHAR},
send_status = #{sendStatus,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论