修改--order_info实体类添加money字段
This commit is contained in:
parent
0eb93dc8cd
commit
d7090b8601
@ -254,10 +254,10 @@ public class SysWorkReviewController extends BaseController {
|
||||
|
||||
// 修改订单状态为1 已退款
|
||||
|
||||
// List<SysOrder> sysOrderList = sysOrderService.getSysOrderByWordId(workId);
|
||||
List<SysOrder> sysOrderList = sysOrderService.getSysOrderByWordId(workId);
|
||||
|
||||
|
||||
//消息提醒-------------
|
||||
// 下架资源位
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -35,6 +35,8 @@ public class OrderInfo extends BaseEntity
|
||||
|
||||
private Date refundTime;
|
||||
|
||||
private Long money;
|
||||
|
||||
public void setId(Long id){
|
||||
this.id = id;
|
||||
}
|
||||
@ -87,6 +89,16 @@ public class OrderInfo extends BaseEntity
|
||||
this.refundTime = refundTime;
|
||||
}
|
||||
|
||||
public Long getMoney() {
|
||||
return money;
|
||||
}
|
||||
|
||||
public void setMoney(Long money) {
|
||||
this.money = money;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
|
||||
@ -87,4 +87,10 @@ public interface SysOrderMapper
|
||||
* 支付回调后根据orderId返回订单详情
|
||||
* */
|
||||
public SysOrderPayBackDto getSysOrderPayBackDto(Long orderId);
|
||||
|
||||
/**
|
||||
*
|
||||
* 根据wordId返回订单列表
|
||||
* */
|
||||
public List<SysOrder> getSysOrderByWordId(@Param("wordId") Long wordId);
|
||||
}
|
||||
|
||||
@ -100,5 +100,5 @@ public interface ISysOrderService
|
||||
*
|
||||
* 根据wordId返回订单列表
|
||||
* */
|
||||
// public List<SysOrder> getSysOrderByWordId(Long wordId);
|
||||
public List<SysOrder> getSysOrderByWordId(Long wordId);
|
||||
}
|
||||
|
||||
@ -135,4 +135,13 @@ public class SysOrderServiceImpl implements ISysOrderService
|
||||
public SysOrderPayBackDto getSysOrderPayBackDto(Long orderId){
|
||||
return sysOrderMapper.getSysOrderPayBackDto(orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 根据wordId返回订单列表
|
||||
* */
|
||||
@Override
|
||||
public List<SysOrder> getSysOrderByWordId(Long wordId){
|
||||
return sysOrderMapper.getSysOrderByWordId(wordId);
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="workId" column="work_id" />
|
||||
<result property="status" column="status"/>
|
||||
<result property="refundTime" column="refund_time" />
|
||||
<result property="money" column="money"/>
|
||||
</resultMap>
|
||||
|
||||
<resultMap id="OrderInfoDtoResult" type="OrderInfoDto">
|
||||
@ -37,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectOrderInfoVo">
|
||||
select order_info_id, remark, source_id, work_id from order_info
|
||||
select id, order_info_id, remark, source_id, work_id, money, status, refund_time from order_info
|
||||
</sql>
|
||||
|
||||
<select id="selectOrderInfoList" parameterType="OrderInfo" resultMap="OrderInfoResult">
|
||||
@ -81,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="id != null">id,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="refundTime != null">refund_time,</if>
|
||||
<if test="money != null">money,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="orderInfoId != null">#{orderInfoId},</if>
|
||||
@ -90,6 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="refundTime != null">#{refundTime},</if>
|
||||
<if test="money != null">#{money},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -102,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="id != null">id = #{id},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="refundTime != null">refund_time = #{refundTime},</if>
|
||||
<if test="money != null">money = #{money},</if>
|
||||
</trim>
|
||||
where order_info_id = #{orderInfoId}
|
||||
</update>
|
||||
|
||||
@ -147,7 +147,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
on sys_order.source_id = sys_source.source_id
|
||||
where sys_order.order_id = #{orderId}
|
||||
</select>
|
||||
<select id="getSysOrderByWordId" resultType="com.ruoyi.system.domain.SysOrder">
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertSysOrder" parameterType="SysOrder" useGeneratedKeys="true" keyProperty="orderId">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user