!13 Merge branch 'develop' of gitee.com:L-Shilin/go-fly-platform-services …
Merge pull request !13 from Iamasoldier/feature_lsl
This commit is contained in:
+1
@@ -145,6 +145,7 @@ public class OrderController {
|
||||
public PageResult<Map> listInfoByUser(@RequestParam Map<String, Object> params) {
|
||||
LoginAppUser user = LoginUserContextHolder.getUser();
|
||||
params.put("userId", user.getId());
|
||||
params.put("orderStatus", OrderStatus.COMPLETE.getId()); // 只查已完成订单
|
||||
String fileType = MapUtils.getString(params, "fileType");
|
||||
if (StringUtil.isBlank(fileType)) {
|
||||
fileType = "image/jpeg";
|
||||
|
||||
@@ -22,7 +22,11 @@
|
||||
|
||||
<!-- 动态获取参数采用备参 -->
|
||||
<select id="findListByUser" resultType="com.central.order.model.Order">
|
||||
select id,order_no,tourism_id,device_sn,workspace_id,code_id,user_id,order_amount,order_status,create_time,update_time from orders t WHERE t.user_id = #{param2.userId} ORDER BY id DESC
|
||||
select id,order_no,tourism_id,device_sn,workspace_id,code_id,user_id,order_amount,order_status,create_time,update_time from orders t WHERE t.user_id = #{param2.userId}
|
||||
<if test="param2.orderStatus != null">
|
||||
and t.order_status = #{param2.orderStatus}
|
||||
</if>
|
||||
ORDER BY id DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据订单状态查询订单列表 -->
|
||||
|
||||
Reference in New Issue
Block a user