dev^2^2
parent
3b65e9fae8
commit
c123f99bd2
@ -0,0 +1,84 @@ |
|||||||
|
package com.order.controller.business; |
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject; |
||||||
|
import com.github.pagehelper.PageHelper; |
||||||
|
import com.github.pagehelper.PageInfo; |
||||||
|
import com.hfkj.common.exception.ErrorCode; |
||||||
|
import com.hfkj.common.exception.ErrorHelp; |
||||||
|
import com.hfkj.common.exception.SysCode; |
||||||
|
import com.hfkj.common.security.UserCenter; |
||||||
|
import com.hfkj.common.utils.ResponseMsgUtil; |
||||||
|
import com.hfkj.entity.BsOrderMeituan; |
||||||
|
import com.hfkj.entity.SecConfig; |
||||||
|
import com.hfkj.model.ResponseData; |
||||||
|
import com.hfkj.service.SecConfigService; |
||||||
|
import com.hfkj.service.goods.BsOrderMeiTuanService; |
||||||
|
import com.hfkj.service.goods.BsOrderMemberService; |
||||||
|
import com.hfkj.service.goods.impl.BsOrderMeiTuanServiceImpl; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import org.slf4j.Logger; |
||||||
|
import org.slf4j.LoggerFactory; |
||||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||||
|
import org.springframework.stereotype.Controller; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMethod; |
||||||
|
import org.springframework.web.bind.annotation.RequestParam; |
||||||
|
import org.springframework.web.bind.annotation.ResponseBody; |
||||||
|
|
||||||
|
import javax.annotation.Resource; |
||||||
|
import java.math.BigDecimal; |
||||||
|
import java.math.RoundingMode; |
||||||
|
import java.util.HashMap; |
||||||
|
import java.util.Map; |
||||||
|
|
||||||
|
@Controller |
||||||
|
@RequestMapping(value="/orderMember") |
||||||
|
@Api(value="会员订单管理") |
||||||
|
public class BsOrderMemberController { |
||||||
|
|
||||||
|
@Resource |
||||||
|
private BsOrderMemberService bsOrderMemberService; |
||||||
|
|
||||||
|
private static final Logger log = LoggerFactory.getLogger(BsOrderGoodsController.class); |
||||||
|
|
||||||
|
@RequestMapping(value="/getListMember",method = RequestMethod.GET) |
||||||
|
@ResponseBody |
||||||
|
@ApiOperation(value = "查询列表") |
||||||
|
public ResponseData getListMember( |
||||||
|
@RequestParam(value = "orderNo" , required = false) String orderNo, |
||||||
|
@RequestParam(value = "childOrderNo" , required = false) String childOrderNo, |
||||||
|
@RequestParam(value = "userPhone" , required = false) String userPhone, |
||||||
|
@RequestParam(value = "goodsName" , required = false) String goodsName, |
||||||
|
@RequestParam(value = "payType" , required = false) Integer payType, |
||||||
|
@RequestParam(value = "status" , required = false) Integer status, |
||||||
|
@RequestParam(value = "createTimeS" , required = false) Long createTimeS, |
||||||
|
@RequestParam(value = "createTimeE" , required = false) Long createTimeE, |
||||||
|
@RequestParam(value = "finishTimeS" , required = false) Long finishTimeS, |
||||||
|
@RequestParam(value = "finishTimeE" , required = false) Long finishTimeE, |
||||||
|
@RequestParam(value = "pageNum" , required = true) Integer pageNum, |
||||||
|
@RequestParam(value = "pageSize" , required = true) Integer pageSize) { |
||||||
|
try { |
||||||
|
|
||||||
|
Map<String , Object> map = new HashMap<>(); |
||||||
|
|
||||||
|
map.put("orderNo", orderNo); |
||||||
|
map.put("childOrderNo", childOrderNo); |
||||||
|
map.put("userPhone", userPhone); |
||||||
|
map.put("goodsName", goodsName); |
||||||
|
map.put("payType", payType); |
||||||
|
map.put("createTimeS", createTimeS); |
||||||
|
map.put("createTimeE", createTimeE); |
||||||
|
map.put("finishTimeS", finishTimeS); |
||||||
|
map.put("finishTimeE", finishTimeE); |
||||||
|
map.put("status", status); |
||||||
|
|
||||||
|
PageHelper.startPage(pageNum, pageSize); |
||||||
|
return ResponseMsgUtil.success(new PageInfo<>(bsOrderMemberService.getList(map))); |
||||||
|
|
||||||
|
} catch (Exception e) { |
||||||
|
log.error("error!",e); |
||||||
|
return ResponseMsgUtil.exception(e); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue