fix: 订单管理备注和订单查询

feature/mall_product
tangqian 2023-06-20 14:27:36 +08:00
parent 932295c664
commit e3d06db343
5 changed files with 17 additions and 4 deletions

View File

@ -5,10 +5,8 @@ import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;
/**
* @Title:OrderContentRequest

View File

@ -204,10 +204,10 @@ public class RechargeOrderController {
}
@TenantIgnore
// @PreAuthenticated
@PreAuthenticated
@Operation(summary = "管理员填写备注")
@RequestMapping(value = "/adminRemark", method = RequestMethod.POST)
// @PreAuthorize("@ss.hasPermission('shop:recharge-order:remark')")
@PreAuthorize("@ss.hasPermission('shop:recharge-order:remark')")
public CommonResult<Boolean> adminRemark(@Valid @RequestBody RemarkRequest request) {
return CommonResult.success(rechargeOrderService.updateRemark(request));
}

View File

@ -135,4 +135,7 @@ public class RechargeOrderExportReqVO {
*/
private Integer refundType;
private LocalDateTime startApplyTime;
private LocalDateTime endApplyTime;
}

View File

@ -138,4 +138,10 @@ public class RechargeOrderPageReqVO extends PageParam {
*/
private Integer refundType;
/**
* 退
*/
private LocalDateTime startApplyTime;
private LocalDateTime endApplyTime;
}

View File

@ -275,6 +275,12 @@
<if test="data.status !=null ">
and a.status =#{data.status}
</if>
<if test="data.startApplyTime !=null ">
and a.apply_time &gt;=#{data.startApplyTime}
</if>
<if test="data.endApplyTime !=null ">
and a.apply_time &lt;=#{data.endApplyTime}
</if>
</where>
</sql>
</mapper>