1/26
This commit is contained in:
@@ -24,6 +24,7 @@ public class NewcomerRecoRecord {
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date assistanceDate;
|
private Date assistanceDate;
|
||||||
private String giftName;
|
private String giftName;
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,92 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.alibaba.excel.metadata.Head;
|
||||||
|
import com.alibaba.excel.write.merge.AbstractMergeStrategy;
|
||||||
|
import org.apache.commons.collections.map.HashedMap;
|
||||||
|
import org.apache.poi.ss.usermodel.Cell;
|
||||||
|
import org.apache.poi.ss.usermodel.Sheet;
|
||||||
|
import org.apache.poi.ss.util.CellRangeAddress;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/12/15 13:43
|
||||||
|
*/
|
||||||
|
public class MergeStrategy extends AbstractMergeStrategy {
|
||||||
|
|
||||||
|
// 合并的列编号,从0开始,指定的index或自己按字段顺序数
|
||||||
|
private Set<Integer> mergeCellIndex = new HashSet<>();
|
||||||
|
|
||||||
|
// 数据集大小,用于区别结束行位置
|
||||||
|
private Integer maxRow = 0;
|
||||||
|
|
||||||
|
// 禁止无参声明
|
||||||
|
private MergeStrategy() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public MergeStrategy(Integer maxRow, int... mergeCellIndex) {
|
||||||
|
Arrays.stream(mergeCellIndex).forEach(item -> {
|
||||||
|
this.mergeCellIndex.add(item);
|
||||||
|
});
|
||||||
|
this.maxRow = maxRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 记录上一次合并的信息
|
||||||
|
private Map<Integer, MergeRange> lastRow = new HashedMap();
|
||||||
|
|
||||||
|
// 每行每列都会进入,绝对不要在这写循环
|
||||||
|
@Override
|
||||||
|
protected void merge(Sheet sheet, Cell cell, Head head, Integer relativeRowIndex) {
|
||||||
|
int currentCellIndex = cell.getColumnIndex();
|
||||||
|
// 判断该行是否需要合并
|
||||||
|
if (mergeCellIndex.contains(currentCellIndex)) {
|
||||||
|
String currentCellValue = cell.getStringCellValue();
|
||||||
|
int currentRowIndex = cell.getRowIndex();
|
||||||
|
if (!lastRow.containsKey(currentCellIndex)) {
|
||||||
|
// 记录首行起始位置
|
||||||
|
lastRow.put(currentCellIndex, new MergeRange(currentCellValue, currentRowIndex, currentRowIndex, currentCellIndex, currentCellIndex));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//有上行这列的值了,拿来对比.
|
||||||
|
MergeRange mergeRange = lastRow.get(currentCellIndex);
|
||||||
|
if (!(mergeRange.lastValue != null && mergeRange.lastValue.equals(currentCellValue))) {
|
||||||
|
// 结束的位置触发下合并.
|
||||||
|
// 同行同列不能合并,会抛异常
|
||||||
|
if (mergeRange.startRow != mergeRange.endRow || mergeRange.startCell != mergeRange.endCell) {
|
||||||
|
sheet.addMergedRegionUnsafe(new CellRangeAddress(mergeRange.startRow, mergeRange.endRow, mergeRange.startCell, mergeRange.endCell));
|
||||||
|
}
|
||||||
|
// 更新当前列起始位置
|
||||||
|
lastRow.put(currentCellIndex, new MergeRange(currentCellValue, currentRowIndex, currentRowIndex, currentCellIndex, currentCellIndex));
|
||||||
|
}
|
||||||
|
// 合并行 + 1
|
||||||
|
mergeRange.endRow += 1;
|
||||||
|
// 结束的位置触发下最后一次没完成的合并
|
||||||
|
if (relativeRowIndex.equals(maxRow - 1)) {
|
||||||
|
MergeRange lastMergeRange = lastRow.get(currentCellIndex);
|
||||||
|
// 同行同列不能合并,会抛异常
|
||||||
|
if (lastMergeRange.startRow != lastMergeRange.endRow || lastMergeRange.startCell != lastMergeRange.endCell) {
|
||||||
|
sheet.addMergedRegionUnsafe(new CellRangeAddress(lastMergeRange.startRow, lastMergeRange.endRow, lastMergeRange.startCell, lastMergeRange.endCell));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
class MergeRange {
|
||||||
|
public int startRow;
|
||||||
|
public int endRow;
|
||||||
|
public int startCell;
|
||||||
|
public int endCell;
|
||||||
|
public String lastValue;
|
||||||
|
|
||||||
|
public MergeRange(String lastValue, int startRow, int endRow, int startCell, int endCell) {
|
||||||
|
this.startRow = startRow;
|
||||||
|
this.endRow = endRow;
|
||||||
|
this.startCell = startCell;
|
||||||
|
this.endCell = endCell;
|
||||||
|
this.lastValue = lastValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.yxt.common.core.vo.Vo;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fan
|
||||||
|
* @description
|
||||||
|
* @date 2023/11/28 10:11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class OrderGoodsVo implements Vo {
|
||||||
|
private int num;
|
||||||
|
private String goodName;
|
||||||
|
private String unitName;
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:29
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrder {
|
||||||
|
private String id;
|
||||||
|
private String sid= UUID.randomUUID().toString();
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
private String remarks;
|
||||||
|
private String isEnable;
|
||||||
|
private String affiliation;
|
||||||
|
private String customerSid;
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||||
|
private Date reserveDate;
|
||||||
|
private String userName;
|
||||||
|
private String userPhone;
|
||||||
|
private String userAddress;
|
||||||
|
private String reserveCode;
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.yxt.common.core.dto.Dto;
|
||||||
|
import com.yxt.yythmall.api.lpkgiftcard.GoodsVo;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:29
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrderDto implements Dto {
|
||||||
|
private String customerSid;
|
||||||
|
private String reserveDate;
|
||||||
|
private String storeSid;
|
||||||
|
private String storeName;
|
||||||
|
private String userName;
|
||||||
|
private String userPhone;
|
||||||
|
private String userAddress;
|
||||||
|
private String affiliation;
|
||||||
|
private String brandId;
|
||||||
|
private List<GoodsVo> goodsVos;
|
||||||
|
private String goodsSid;
|
||||||
|
private double select;
|
||||||
|
private String orderSid;
|
||||||
|
private String addressName;
|
||||||
|
private String cardType;//提货类型,1=提货卡;2=福利卡
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.yxt.common.core.query.Query;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:30
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrderQuery implements Query {
|
||||||
|
private String userName; //用户名
|
||||||
|
private String store; // 门店
|
||||||
|
private String startDate; //预约开始日期
|
||||||
|
private String endDate; // 预约结束日期
|
||||||
|
private String userSid;
|
||||||
|
private String customerSid;
|
||||||
|
private String storeSid;
|
||||||
|
private String bankSid;
|
||||||
|
private String bankName;
|
||||||
|
private String serialNumber;
|
||||||
|
private String state;
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.yxt.common.core.vo.Vo;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Fan
|
||||||
|
* @description
|
||||||
|
* @date 2023/11/27 15:11
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrderVo implements Vo {
|
||||||
|
private String sid; //预约订单sid
|
||||||
|
private String userName; //用户名
|
||||||
|
private String userPhone; //用户电话
|
||||||
|
private String store; //门店
|
||||||
|
private String storeSid; //门店
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd ",timezone="GMT+8")
|
||||||
|
private Date reserveDate; //预约时间
|
||||||
|
private String bagName; //礼包
|
||||||
|
private String code; //卡号
|
||||||
|
private String goodsInfo;
|
||||||
|
private List<OrderGoodsVo> goodsVo = new ArrayList<>();
|
||||||
|
private List<String> goods=new ArrayList<>();
|
||||||
|
private String bankName;
|
||||||
|
private String goodsSid;
|
||||||
|
private String goodsName;
|
||||||
|
private String goodsNumber;
|
||||||
|
private String serialNumber;
|
||||||
|
private String linker;
|
||||||
|
private String linkPhone;
|
||||||
|
private String address;
|
||||||
|
private String cardType;
|
||||||
|
private String goodss;
|
||||||
|
private String stateValue;
|
||||||
|
private String affiliationValue;
|
||||||
|
private String reserveCode;
|
||||||
|
}
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorderdetails;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:29
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrderDetails {
|
||||||
|
private String id;
|
||||||
|
private String sid= UUID.randomUUID().toString();
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||||
|
private Date createTime;
|
||||||
|
private String remarks;
|
||||||
|
private String cardSid;
|
||||||
|
|
||||||
|
private double goodsNumber=0;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String num;
|
||||||
|
// @TableField(exist = false)
|
||||||
|
private String orderSid;
|
||||||
|
private String goodsName;
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorderdetails;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:29
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
public class ReserveDeliveryOrderDetailsDto {
|
||||||
|
private String cardSid;
|
||||||
|
private String goodsSid;
|
||||||
|
private String goodsNumber;
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
package com.yxt.yythmall.api.reservedeliveryorderdetails;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:30
|
||||||
|
*/
|
||||||
|
public class ReserveDeliveryOrderDetailsQuery {
|
||||||
|
}
|
||||||
@@ -69,8 +69,9 @@ public class NewcomerRecoRecordService extends MybatisBaseService<NewcomerRecoRe
|
|||||||
public ResultBean recommendNewUsers(NewcomerRecoRecordDto dto) {
|
public ResultBean recommendNewUsers(NewcomerRecoRecordDto dto) {
|
||||||
ResultBean rb = new ResultBean();
|
ResultBean rb = new ResultBean();
|
||||||
NewcomerRecoRecord newcomerRecoRecord = new NewcomerRecoRecord();
|
NewcomerRecoRecord newcomerRecoRecord = new NewcomerRecoRecord();
|
||||||
List<RecommendNewUserBag> bags=recommendNewUserBagService.list(new QueryWrapper<RecommendNewUserBag>().eq("isGrounding","1 "));
|
List<RecommendNewUserBag> bags=recommendNewUserBagService.list(new QueryWrapper<RecommendNewUserBag>().eq("isGrounding","1"));
|
||||||
if(bags.size()==0){
|
if(bags.size()==0){
|
||||||
|
newcomerRecoRecord.setSid("");
|
||||||
return rb.success().setData(newcomerRecoRecord);
|
return rb.success().setData(newcomerRecoRecord);
|
||||||
}
|
}
|
||||||
dto.setGiftBagSid(bags.get(0).getSid());
|
dto.setGiftBagSid(bags.get(0).getSid());
|
||||||
@@ -91,14 +92,14 @@ public class NewcomerRecoRecordService extends MybatisBaseService<NewcomerRecoRe
|
|||||||
if(!customer.getIsNewUser().equals("1")){
|
if(!customer.getIsNewUser().equals("1")){
|
||||||
return rb.setMsg("您不是新人");
|
return rb.setMsg("您不是新人");
|
||||||
}
|
}
|
||||||
NewcomerRecoRecord newcomerRecoRecord = baseMapper.selectOne(new QueryWrapper<NewcomerRecoRecord>().eq("sid",dto.getSid()));
|
NewcomerRecoRecord newcomerRecoRecord = baseMapper.selectOne(new QueryWrapper<NewcomerRecoRecord>().eq("sid",dto.getOrderSid()));
|
||||||
newcomerRecoRecord.setRecommendedSid(dto.getCustomerSid());
|
newcomerRecoRecord.setRecommendedSid(dto.getCustomerSid());
|
||||||
newcomerRecoRecord.setAssistanceDate(new Date());
|
newcomerRecoRecord.setAssistanceDate(new Date());
|
||||||
baseMapper.updateById(newcomerRecoRecord);
|
|
||||||
List<RecommendNewUserBagDetails>list=recommendNewUserBagDetailsService.list(new QueryWrapper<RecommendNewUserBagDetails>().eq("giftbagSid",newcomerRecoRecord.getGiftBagSid()));
|
List<RecommendNewUserBagDetails>list=recommendNewUserBagDetailsService.list(new QueryWrapper<RecommendNewUserBagDetails>().eq("giftbagSid",newcomerRecoRecord.getGiftBagSid()));
|
||||||
if(list.size()==0){
|
if(list.size()==0){
|
||||||
return rb.success();
|
return rb.success();
|
||||||
}
|
}
|
||||||
|
baseMapper.updateById(newcomerRecoRecord);
|
||||||
// List<AppletGiftBagGoods>list=appletGiftBagGoodsService.list(new QueryWrapper<AppletGiftBagGoods>().eq("giftbagSid",dto.getGiftBagSid()));
|
// List<AppletGiftBagGoods>list=appletGiftBagGoodsService.list(new QueryWrapper<AppletGiftBagGoods>().eq("giftbagSid",dto.getGiftBagSid()));
|
||||||
VegetableCellarDto dto1=new VegetableCellarDto();
|
VegetableCellarDto dto1=new VegetableCellarDto();
|
||||||
dto1.setCustomerSid(customer.getSid());
|
dto1.setCustomerSid(customer.getSid());
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
package com.yxt.yythmall.biz.reservedeliveryorder;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||||
|
import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrder;
|
||||||
|
import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderQuery;
|
||||||
|
import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderVo;
|
||||||
|
import com.yxt.yythmall.biz.vegecallerreserveorder.ReserveOrderVo;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:36
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface ReserveDeliveryOrderMapper extends BaseMapper<ReserveDeliveryOrder> {
|
||||||
|
// IPage<ReserveDeliveryOrderVo> orderList(IPage<ReserveDeliveryOrder> page, @Param("qw") ReserveDeliveryOrderQuery qw);
|
||||||
|
// IPage<ReserveDeliveryOrderVo> orderListByStore(IPage<ReserveDeliveryOrder> page, @Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
// IPage<ReserveDeliveryOrderVo> orderListByBank(IPage<ReserveDeliveryOrder> page, @Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
// IPage<ReserveDeliveryOrderVo> orderListByZ(IPage<ReserveDeliveryOrder> page, @Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
//// List<ReserveDeliveryOrderCardVo> orderByCardSid(String sid);
|
||||||
|
//
|
||||||
|
//// IPage<ReserveDeliveryOrderCardVo> orderListByUserSid(IPage<ReserveDeliveryOrder> page, @Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
IPage<ReserveDeliveryOrderVo> orderListByUserSid(IPage<ReserveDeliveryOrder> page, @Param("query") ReserveDeliveryOrderQuery query);
|
||||||
|
|
||||||
|
IPage<ReserveOrderVo> pageOfCustomer(IPage<ReserveDeliveryOrder> page, @Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
List<ReserveOrderVo> pageOfCustomer(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
IPage<ReserveOrderVo> pageOfStore(IPage<ReserveDeliveryOrder> page,@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
List<ReserveOrderVo> pageOfStore(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
IPage<ReserveOrderVo> pageOfBank(IPage<ReserveDeliveryOrder> page,@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
List<ReserveOrderVo> pageOfBank(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
IPage<ReserveOrderVo> pageOfAll(IPage<ReserveDeliveryOrder> page,@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
|
||||||
|
List<ReserveOrderVo> pageOfAll(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrder> qw);
|
||||||
|
//
|
||||||
|
// List<ReserveOrderExport> exportExcel(@Param("qw") ReserveDeliveryOrderQuery qw);
|
||||||
|
// List<ReserveOrderExportByStore> exportExcelByStore(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrderQuery> qw);
|
||||||
|
// List<ReserveOrderExportByBank> exportExcelByBank(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrderQuery> qw);
|
||||||
|
// List<ReserveOrderExportByZ> exportExcelByZ(@Param(Constants.WRAPPER) QueryWrapper<ReserveDeliveryOrderQuery> qw);
|
||||||
|
// @Select("select sid from lpk_reserve_order where storeSid=#{storeSid} and reserveDate =#{reserveDate}")
|
||||||
|
// List<String> getOrderByStore(@Param("storeSid")String storeSid,@Param("reserveDate")String reserveDate);
|
||||||
|
// @Select("select * from lpk_reserve_order where customerSid =#{sid} order by createTime desc limit 1")
|
||||||
|
// ReserveDeliveryOrderVo getStoreByCustomerSid(@Param("sid") String sid);
|
||||||
|
// @Select("select * from lpk_reserve_order where cardSid =#{sid} order by reserveDate desc limit 1")
|
||||||
|
// ReserveDeliveryOrderVo selByCardSid(@Param("sid") String sid);
|
||||||
|
// @Select("SELECT o.*,st.`name` AS store FROM lpk_reserve_order o LEFT JOIN lpk_store st ON o.storeSid = st.sid where o.cardSid =#{sid} ORDER BY o.reserveDate desc")
|
||||||
|
// List<ReserveDeliveryOrderCardVo> selOrderByCardSid(@Param("sid") String sid);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,558 @@
|
|||||||
|
<?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.yxt.yythmall.biz.reservedeliveryorder.ReserveDeliveryOrderMapper">
|
||||||
|
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||||
|
<!-- ${ew.customSqlSegment} -->
|
||||||
|
|
||||||
|
<select id="storeListPage" resultType="com.yxt.yythmall.api.lpkstore.LpkStoreVo">
|
||||||
|
select
|
||||||
|
sid,
|
||||||
|
date_format(createTime, '%Y-%m-%d') as createTime,
|
||||||
|
code,
|
||||||
|
`name`,
|
||||||
|
address,
|
||||||
|
phone,
|
||||||
|
businessHours
|
||||||
|
from lpk_store
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="orderList" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderVo">
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
s.`name` AS store,
|
||||||
|
b.`name` AS bagName,
|
||||||
|
d.NAME AS bankName,
|
||||||
|
c.`code`,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
c.serialNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
end cardType
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
<where>
|
||||||
|
o.cardType='1'
|
||||||
|
<if test="qw.bankSid !='' and qw.bankSid!=null">
|
||||||
|
and s.bankSid=#{qw.bankSid}
|
||||||
|
</if>
|
||||||
|
<if test="qw.store !='' and qw.store!=null">
|
||||||
|
and s.name=#{qw.store}
|
||||||
|
</if>
|
||||||
|
<if test="qw.startDate !='' and qw.startDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d')>=date_format(#{qw.startDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
<if test="qw.endDate !='' and qw.endDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d') <= date_format(#{qw.endDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
union
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
s.`name` AS store,
|
||||||
|
b.`name` AS bagName,
|
||||||
|
d.NAME AS bankName,
|
||||||
|
c.`code`,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
c.serialNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
end cardType
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
<where>
|
||||||
|
o.cardType='2'
|
||||||
|
<if test="qw.bankSid !='' and qw.bankSid!=null">
|
||||||
|
and s.bankSid=#{qw.bankSid}
|
||||||
|
</if>
|
||||||
|
<if test="qw.store !='' and qw.store!=null">
|
||||||
|
and s.name=#{qw.store}
|
||||||
|
</if>
|
||||||
|
<if test="qw.startDate !='' and qw.startDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d')>=date_format(#{qw.startDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
<if test="qw.endDate !='' and qw.endDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d') <= date_format(#{qw.endDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
union
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
s.`name` AS store,
|
||||||
|
b.`name` AS bagName,
|
||||||
|
d.NAME AS bankName,
|
||||||
|
c.`code`,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
c.serialNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN emp_card AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
WHERE o.cardType='3'
|
||||||
|
order by reserveDate asc,dsid desc,ssid desc,serialNumber asc
|
||||||
|
</select>
|
||||||
|
<select id="orderListByStore" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderVo">
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
s.`name` as store,
|
||||||
|
s.sid as storeSid,
|
||||||
|
d.name as bankName,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
d.linker,
|
||||||
|
d.linkPhone,
|
||||||
|
d.address,
|
||||||
|
e.`name` as goodsName,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
left join lpk_goods e on e.sid= t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="orderListByBank" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderVo">
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
s.`name` as store,
|
||||||
|
s.sid as storeSid,
|
||||||
|
d.name as bankName,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
s.linker,
|
||||||
|
s.phone as linkPhone,
|
||||||
|
s.address,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType,
|
||||||
|
e.`name` as goodsName
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
left join lpk_goods e on e.sid= t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="orderListByZ" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderVo">
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
s.`name` AS store,
|
||||||
|
s.sid AS storeSid,
|
||||||
|
d.NAME AS bankName ,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType,
|
||||||
|
e.`name` as goodsName
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
LEFT JOIN lpk_goods e on e.sid =t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="orderByCardSid" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderCardVo">
|
||||||
|
SELECT date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
c.`code`,
|
||||||
|
s.`name` as store,
|
||||||
|
b.`name` as bagName,
|
||||||
|
o.sid as orderSid
|
||||||
|
FROM lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
WHERE o.cardSid = #{sid}
|
||||||
|
</select>
|
||||||
|
<!-- <select id="orderListByUserSid" resultType="com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderCardVo">-->
|
||||||
|
<!-- SELECT date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,-->
|
||||||
|
<!-- c.`code`,-->
|
||||||
|
<!-- case-->
|
||||||
|
<!-- when o.reserveDate IS NOT NULL then 1-->
|
||||||
|
<!-- end as type,-->
|
||||||
|
<!-- s.`name` as store,-->
|
||||||
|
<!-- b.`name` as bagName,-->
|
||||||
|
<!-- o.cardSid as cardSid,-->
|
||||||
|
<!-- o.sid as orderSid,-->
|
||||||
|
<!-- o.userName,-->
|
||||||
|
<!-- o.userPhone,c.serialNumber as serialNumber,-->
|
||||||
|
<!-- o.sid-->
|
||||||
|
<!-- FROM lpk_reserve_order AS o-->
|
||||||
|
<!-- LEFT JOIN lpk_store AS s ON o.storeSid = s.sid-->
|
||||||
|
<!-- LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid-->
|
||||||
|
<!-- LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid-->
|
||||||
|
<!-- <where>-->
|
||||||
|
<!-- ${ew.sqlSegment}-->
|
||||||
|
<!-- </where>-->
|
||||||
|
<!-- ORDER BY reserveDate DESC-->
|
||||||
|
<!-- </select>-->
|
||||||
|
<select id="orderListByUserSid" resultType="com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderVo">
|
||||||
|
SELECT
|
||||||
|
o.reserveCode,
|
||||||
|
o.sid as sid,
|
||||||
|
o.storeName,
|
||||||
|
o.reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
case o.state
|
||||||
|
when 0 then '未提货'
|
||||||
|
when 1 then '已提货'
|
||||||
|
end stateValue ,
|
||||||
|
case o.affiliation
|
||||||
|
when 1001000 then '百姓菜窖'
|
||||||
|
when 1001020 then '精品菜窖'
|
||||||
|
when 1001045 then '企业菜窖'
|
||||||
|
end affiliationValue
|
||||||
|
FROM
|
||||||
|
vege_cellar_reserve_order AS o
|
||||||
|
<where>
|
||||||
|
o.customerSid=#{query.customerSid} and state=#{query.state}
|
||||||
|
</where>
|
||||||
|
order by o.reserveDate desc
|
||||||
|
</select>
|
||||||
|
<select id="exportExcel" resultType="com.yxt.yythmall.api.lpkreserveorder.ReserveOrderExport">
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
s.`name` as store,
|
||||||
|
b.`name` as bagName,
|
||||||
|
d.name as bankName,
|
||||||
|
c.`code`,c.serialNumber,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
t.goodsNumber as goodsNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
end cardType
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
<where>
|
||||||
|
o.cardType='1'
|
||||||
|
<if test="qw.bankSid !='' and qw.bankSid!=null">
|
||||||
|
and s.bankSid=#{qw.bankSid}
|
||||||
|
</if>
|
||||||
|
<if test="qw.store !='' and qw.store!=null">
|
||||||
|
and s.name=#{qw.store}
|
||||||
|
</if>
|
||||||
|
<if test="qw.startDate !='' and qw.startDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d')>=date_format(#{qw.startDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
<if test="qw.endDate !='' and qw.endDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d') <= date_format(#{qw.endDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
union
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
s.`name` as store,
|
||||||
|
b.`name` as bagName,
|
||||||
|
d.name as bankName,
|
||||||
|
c.`code`,c.serialNumber,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
t.goodsNumber as goodsNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
end cardType
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN emp_card_gift AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.sid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
<where>
|
||||||
|
o.cardType='2'
|
||||||
|
<if test="qw.bankSid !='' and qw.bankSid!=null">
|
||||||
|
and s.bankSid=#{qw.bankSid}
|
||||||
|
</if>
|
||||||
|
<if test="qw.store !='' and qw.store!=null">
|
||||||
|
and s.name=#{qw.store}
|
||||||
|
</if>
|
||||||
|
<if test="qw.startDate !='' and qw.startDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d')>=date_format(#{qw.startDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
<if test="qw.endDate !='' and qw.endDate!=null">
|
||||||
|
and date_format(o.reserveDate,'%Y-%m-%d') <= date_format(#{qw.endDate},'%Y-%m-%d')
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
union
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
o.userName,
|
||||||
|
o.userPhone,
|
||||||
|
s.`name` AS store,
|
||||||
|
b.`name` AS bagName,
|
||||||
|
d.NAME AS bankName,
|
||||||
|
c.`code`,
|
||||||
|
d.sid as dsid,
|
||||||
|
s.sid as ssid,
|
||||||
|
c.serialNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN emp_card AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
WHERE o.cardType='3'
|
||||||
|
order by reserveDate asc,dsid desc,ssid desc,serialNumber asc
|
||||||
|
</select>
|
||||||
|
<select id="exportExcelByStore" resultType="com.yxt.yythmall.api.lpkreserveorder.ReserveOrderExportByStore">
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
s.`name` as store,
|
||||||
|
s.sid as storeSid,
|
||||||
|
d.name as bankName,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
d.linker,
|
||||||
|
d.linkPhone,
|
||||||
|
d.address,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType,
|
||||||
|
e.name as goodsName
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
left join lpk_goods e on e.sid= t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="exportExcelByBank" resultType="com.yxt.yythmall.api.lpkreserveorder.ReserveOrderExportByBank">
|
||||||
|
select
|
||||||
|
o.sid,
|
||||||
|
date_format(o.reserveDate, '%Y-%m-%d') as reserveDate,
|
||||||
|
s.`name` as store,
|
||||||
|
s.sid as storeSid,
|
||||||
|
d.name as bankName,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
s.linker,
|
||||||
|
s.phone as linkPhone,
|
||||||
|
s.address,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType,
|
||||||
|
e.name as goodsName
|
||||||
|
from lpk_reserve_order as o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
left join lpk_store as s on o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
left join lpk_bank as d on d.sid =s.bankSid
|
||||||
|
left join lpk_goods e on e.sid= t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="exportExcelByZ" resultType="com.yxt.yythmall.api.lpkreserveorder.ReserveOrderExportByZ">
|
||||||
|
SELECT
|
||||||
|
o.sid,
|
||||||
|
date_format( o.reserveDate, '%Y-%m-%d' ) AS reserveDate,
|
||||||
|
s.`name` AS store,
|
||||||
|
s.sid AS storeSid,
|
||||||
|
d.NAME AS bankName ,
|
||||||
|
t.goodsSid as goodsSid,
|
||||||
|
sum(t.goodsNumber) as goodsNumber,
|
||||||
|
case o.cardType
|
||||||
|
when 1 then '家庭卡'
|
||||||
|
when 2 then '亲情卡'
|
||||||
|
when 3 then '企业卡'
|
||||||
|
end cardType,
|
||||||
|
e.name as goodsName
|
||||||
|
FROM
|
||||||
|
lpk_reserve_order AS o
|
||||||
|
LEFT JOIN lpk_reserve_order_goods AS t ON t.orderSid = o.sid
|
||||||
|
LEFT JOIN lpk_store AS s ON o.storeSid = s.sid
|
||||||
|
LEFT JOIN lpk_giftcard AS c ON o.cardSid = c.sid
|
||||||
|
LEFT JOIN lpk_giftbag AS b ON c.giftbagSid = b.sid
|
||||||
|
LEFT JOIN lpk_bank AS d ON d.sid = s.bankSid
|
||||||
|
left join lpk_goods e on e.sid= t.goodsSid
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="pageOfCustomer" resultType="com.yxt.yythmall.biz.vegecallerreserveorder.ReserveOrderVo">
|
||||||
|
select
|
||||||
|
date_format(vo.reserveDate,'%Y-%m-%d') reserveDate,
|
||||||
|
vo.customerSid,
|
||||||
|
vo.storeSid,
|
||||||
|
max(ls.name) storeName,
|
||||||
|
max(ls.linker) storeLinker,
|
||||||
|
max(ls.phone) storePhone,
|
||||||
|
max(ls.address) storeAddress,
|
||||||
|
max(vo.affiliation) affiliation,
|
||||||
|
max(pb.name) brandName,
|
||||||
|
max(vo.userName) userName,
|
||||||
|
max(vo.userPhone) userPhone,
|
||||||
|
max(lb.sid) bankSid,
|
||||||
|
max(lb.name) bankName,
|
||||||
|
max(lb.linker) bankLinker,
|
||||||
|
max(lb.linkPhone) bankPhone,
|
||||||
|
max(lb.address) bankAddress,
|
||||||
|
vd.goodsSid,
|
||||||
|
max(vd.goodsName) goodsName,
|
||||||
|
sum(vd.goodsNumber) goodsNumber
|
||||||
|
from vege_cellar_reserve_order vo
|
||||||
|
LEFT JOIN lpk_store ls ON ls.sid=vo.storeSid
|
||||||
|
LEFT JOIN lpk_bank lb ON lb.sid=ls.bankSid
|
||||||
|
left join vege_cellar_reserve_details vd on vo.sid=vd.orderSid
|
||||||
|
left join lpk_goods lg on vd.goodsSid=lg.sid
|
||||||
|
left join pms_brand pb on pb.id=vo.affiliation
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
GROUP BY vo.reserveDate,vo.storeSid,vo.customerSid,vd.goodsSid
|
||||||
|
ORDER BY vo.reserveDate ASC
|
||||||
|
</select>
|
||||||
|
<select id="pageOfStore" resultType="com.yxt.yythmall.biz.vegecallerreserveorder.ReserveOrderVo">
|
||||||
|
select
|
||||||
|
date_format(vo.reserveDate,'%Y-%m-%d') reserveDate,
|
||||||
|
vo.storeSid,
|
||||||
|
max(ls.name) storeName,
|
||||||
|
max(ls.linker) storeLinker,
|
||||||
|
max(ls.phone) storePhone,
|
||||||
|
max(ls.address) storeAddress,
|
||||||
|
max(vo.affiliation) affiliation,
|
||||||
|
max(pb.name) brandName,
|
||||||
|
max(lb.sid) bankSid,
|
||||||
|
max(lb.name) bankName,
|
||||||
|
max(lb.linker) bankLinker,
|
||||||
|
max(lb.linkPhone) bankPhone,
|
||||||
|
max(lb.address) bankAddress,
|
||||||
|
vd.goodsSid,
|
||||||
|
max(vd.goodsName) goodsName,
|
||||||
|
sum(vd.goodsNumber) goodsNumber
|
||||||
|
from vege_cellar_reserve_order vo
|
||||||
|
LEFT JOIN lpk_store ls ON ls.sid=vo.storeSid
|
||||||
|
LEFT JOIN lpk_bank lb ON lb.sid=ls.bankSid
|
||||||
|
left join vege_cellar_reserve_details vd on vo.sid=vd.orderSid
|
||||||
|
left join lpk_goods lg on vd.goodsSid=lg.sid
|
||||||
|
left join pms_brand pb on pb.id=vo.affiliation
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
GROUP BY vo.reserveDate,vo.storeSid,vd.goodsSid
|
||||||
|
ORDER BY vo.reserveDate ASC
|
||||||
|
</select>
|
||||||
|
<select id="pageOfBank" resultType="com.yxt.yythmall.biz.vegecallerreserveorder.ReserveOrderVo">
|
||||||
|
select
|
||||||
|
date_format(vo.reserveDate,'%Y-%m-%d') reserveDate,
|
||||||
|
max(vo.affiliation) affiliation,
|
||||||
|
max(pb.name) brandName,
|
||||||
|
lb.sid bankSid,
|
||||||
|
max(lb.name) bankName,
|
||||||
|
max(lb.linker) bankLinker,
|
||||||
|
max(lb.linkPhone) bankPhone,
|
||||||
|
max(lb.address) bankAddress,
|
||||||
|
vd.goodsSid,
|
||||||
|
max(vd.goodsName) goodsName,
|
||||||
|
sum(vd.goodsNumber) goodsNumber
|
||||||
|
from vege_cellar_reserve_order vo
|
||||||
|
LEFT JOIN lpk_store ls ON ls.sid=vo.storeSid
|
||||||
|
LEFT JOIN lpk_bank lb ON lb.sid=ls.bankSid
|
||||||
|
left join vege_cellar_reserve_details vd on vo.sid=vd.orderSid
|
||||||
|
left join lpk_goods lg on vd.goodsSid=lg.sid
|
||||||
|
left join pms_brand pb on pb.id=vo.affiliation
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
GROUP BY vo.reserveDate,lb.sid,vd.goodsSid
|
||||||
|
ORDER BY vo.reserveDate ASC
|
||||||
|
</select>
|
||||||
|
<select id="pageOfAll" resultType="com.yxt.yythmall.biz.vegecallerreserveorder.ReserveOrderVo">
|
||||||
|
select
|
||||||
|
date_format(vo.reserveDate,'%Y-%m-%d') reserveDate,
|
||||||
|
max(vo.affiliation) affiliation,
|
||||||
|
max(pb.name) brandName,
|
||||||
|
vd.goodsSid,
|
||||||
|
max(vd.goodsName) goodsName,
|
||||||
|
sum(vd.goodsNumber) goodsNumber
|
||||||
|
from vege_cellar_reserve_order vo
|
||||||
|
left join vege_cellar_reserve_details vd on vo.sid=vd.orderSid
|
||||||
|
left join lpk_goods lg on vd.goodsSid=lg.sid
|
||||||
|
left join pms_brand pb on pb.id=vo.affiliation
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
GROUP BY vo.reserveDate,vd.goodsSid
|
||||||
|
ORDER BY vo.reserveDate ASC
|
||||||
|
</select>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
//package com.yxt.yythmall.biz.reservedeliveryorder;
|
||||||
|
//
|
||||||
|
//import com.yxt.common.core.query.PagerQuery;
|
||||||
|
//import com.yxt.common.core.result.ResultBean;
|
||||||
|
//import com.yxt.common.core.vo.PagerVo;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderDto;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderQuery;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderVo;
|
||||||
|
//import com.yxt.yythmall.api.vegecallerreserveorder.ReserveDeliveryOrderDto;
|
||||||
|
//import com.yxt.yythmall.api.vegecallerreserveorder.ReserveDeliveryOrderQuery;
|
||||||
|
//import com.yxt.yythmall.api.vegecallerreserveorder.ReserveDeliveryOrderVo;
|
||||||
|
//import io.swagger.annotations.Api;
|
||||||
|
//import io.swagger.annotations.ApiOperation;
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
//import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
//import org.springframework.web.bind.annotation.RestController;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @author wangpengfei
|
||||||
|
// * @date 2023/11/23 10:35
|
||||||
|
// */
|
||||||
|
//@Api(tags = "预约订单信息")
|
||||||
|
//@RestController
|
||||||
|
//@RequestMapping("/lpksreservoorders")
|
||||||
|
//public class ReserveDeliveryOrderRest {
|
||||||
|
// @Autowired
|
||||||
|
// ReserveDeliveryOrderService ReserveDeliveryOrderService;
|
||||||
|
////
|
||||||
|
////
|
||||||
|
// @ApiOperation("预约提交")
|
||||||
|
// @PostMapping("/submission")
|
||||||
|
// public ResultBean submission(@RequestBody ReserveDeliveryOrderDto dto) {
|
||||||
|
// return ReserveDeliveryOrderService.submission(dto);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// @ApiOperation("移动端预约订单列表")
|
||||||
|
// @PostMapping("/orderListByUserSid")
|
||||||
|
// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByUserSid(@RequestBody PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
// return ReserveDeliveryOrderService.orderListByUserSid(pq);
|
||||||
|
// }
|
||||||
|
////
|
||||||
|
//// @ApiOperation("订单列表")
|
||||||
|
//// @PostMapping("/orderList")
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderList(@RequestBody PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderList(pq);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation("订单门店汇总列表")
|
||||||
|
//// @PostMapping("/orderListByStore")
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByStore(@RequestBody PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderListByStore(pq);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation("订单门店支行汇总列表")
|
||||||
|
//// @PostMapping("/orderListByBank")
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByBank(@RequestBody PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderListByBank(pq);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation("订单总汇总列表")
|
||||||
|
//// @PostMapping("/orderListByZ")
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByZ(@RequestBody PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderListByZ(pq);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation("根据提货卡查询预约记录")
|
||||||
|
//// @GetMapping("/orderByCardSid/{sid}")
|
||||||
|
//// public ResultBean orderByCardSid(@PathVariable("sid") String sid) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderByCardSid(sid);
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
//
|
||||||
|
////
|
||||||
|
//// @ApiOperation("预约记录详情")
|
||||||
|
//// @GetMapping("/orderDetails/{orderSid}")
|
||||||
|
//// public ResultBean orderDetails(@PathVariable("orderSid") String orderSid) {
|
||||||
|
//// return ReserveDeliveryOrderService.orderDetails(orderSid);
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
//// @ApiOperation(value = "预约订单信息列表导出")
|
||||||
|
//// @PostMapping("/exportExcel")
|
||||||
|
//// public void exportExcel(@RequestBody ReserveDeliveryOrderQuery query) {
|
||||||
|
//// ReserveDeliveryOrderService.exportExcel(query);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation(value = "预约订单门店汇总导出")
|
||||||
|
//// @PostMapping("/exportExcelByStore")
|
||||||
|
//// public void exportExcelByStore(@RequestBody ReserveDeliveryOrderQuery query) {
|
||||||
|
//// ReserveDeliveryOrderService.exportExcelByStore(query);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation(value = "预约订单支行汇总导出")
|
||||||
|
//// @PostMapping("/exportExcelByBank")
|
||||||
|
//// public void exportExcelByBank(@RequestBody ReserveDeliveryOrderQuery query) {
|
||||||
|
//// ReserveDeliveryOrderService.exportExcelByBank(query);
|
||||||
|
//// }
|
||||||
|
//// @ApiOperation(value = "预约订单总汇总导出")
|
||||||
|
//// @PostMapping("/exportExcelByZ")
|
||||||
|
//// public void exportExcelByZ(@RequestBody ReserveDeliveryOrderQuery query) {
|
||||||
|
//// ReserveDeliveryOrderService.exportExcelByZ(query);
|
||||||
|
//// }
|
||||||
|
//}
|
||||||
@@ -0,0 +1,845 @@
|
|||||||
|
//package com.yxt.yythmall.biz.reservedeliveryorder;
|
||||||
|
//
|
||||||
|
//import cn.hutool.core.bean.BeanUtil;
|
||||||
|
//import cn.hutool.core.date.DateTime;
|
||||||
|
//import cn.hutool.core.date.DateUtil;
|
||||||
|
//import cn.hutool.core.util.StrUtil;
|
||||||
|
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
//import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
//import com.yxt.common.base.service.MybatisBaseService;
|
||||||
|
//import com.yxt.common.base.utils.PagerUtil;
|
||||||
|
//import com.yxt.common.base.utils.StringUtils;
|
||||||
|
//import com.yxt.common.core.query.PagerQuery;
|
||||||
|
//import com.yxt.common.core.result.ResultBean;
|
||||||
|
//import com.yxt.common.core.vo.PagerVo;
|
||||||
|
//import com.yxt.yythmall.api.lpkgoods.LpkGoods;
|
||||||
|
//import com.yxt.yythmall.api.lpkreserveorder.LpkReserveOrderQuery;
|
||||||
|
//import com.yxt.yythmall.api.lpkstore.LpkStore;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.OrderGoodsVo;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrder;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderDto;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderQuery;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderVo;
|
||||||
|
//import com.yxt.yythmall.api.vegecallerreservedetails.VegeCellarReserveDetails;
|
||||||
|
//import com.yxt.yythmall.api.vegecallerreserveorder.*;
|
||||||
|
//import com.yxt.yythmall.biz.lpkgiftcard.generateRule.UniqueIdGenerator;
|
||||||
|
//import com.yxt.yythmall.biz.lpkgoods.LpkGoodsService;
|
||||||
|
//import com.yxt.yythmall.biz.lpkstore.LpkStoreService;
|
||||||
|
//import com.yxt.yythmall.biz.reservedeliveryorderdetails.ReserveDeliveryOrderDetailsService;
|
||||||
|
//import com.yxt.yythmall.biz.vegecallerreservedetail.VegeCellarReserveDetailsService;
|
||||||
|
//import com.yxt.yythmall.biz.vegecallerreserveorder.*;
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.stereotype.Service;
|
||||||
|
//import org.springframework.transaction.annotation.Transactional;
|
||||||
|
//
|
||||||
|
//import java.util.ArrayList;
|
||||||
|
//import java.util.HashMap;
|
||||||
|
//import java.util.List;
|
||||||
|
//import java.util.Map;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @author wangpengfei
|
||||||
|
// * @date 2023/11/23 10:36
|
||||||
|
// */
|
||||||
|
//@Service
|
||||||
|
//public class ReserveDeliveryOrderService extends MybatisBaseService<ReserveDeliveryOrderMapper, ReserveDeliveryOrder> {
|
||||||
|
// @Autowired
|
||||||
|
// ReserveDeliveryOrderDetailsService reserveDeliveryOrderDetailsService;
|
||||||
|
// @Autowired
|
||||||
|
// LpkStoreService lpkStoreService;
|
||||||
|
//
|
||||||
|
// @Autowired
|
||||||
|
// private LpkGoodsService lpkGoodsService;
|
||||||
|
//
|
||||||
|
// @Transactional(rollbackFor = Exception.class)
|
||||||
|
// public ResultBean submission(ReserveDeliveryOrderDto dto) {
|
||||||
|
// ResultBean rb = new ResultBean().fail();
|
||||||
|
// boolean b = isSatAndSun(dto.getReserveDate());
|
||||||
|
// if (!b) {
|
||||||
|
// return rb.setMsg("周六、周日不能预约提货");
|
||||||
|
// }
|
||||||
|
// if(StringUtils.isBlank(dto.getCustomerSid())){
|
||||||
|
// return rb.setMsg("参数不全");
|
||||||
|
// }
|
||||||
|
// ReserveDeliveryOrder order = new ReserveDeliveryOrder();
|
||||||
|
// LpkStore lpkStore = lpkStoreService.getOne(new QueryWrapper<LpkStore>().eq("sid", dto.getStoreSid()));
|
||||||
|
// BeanUtil.copyProperties(dto, order, "id", "sid");
|
||||||
|
//// order.setStoreSid(dto.getStoreSid());
|
||||||
|
//// order.setCardSid(dto.getSid());
|
||||||
|
// order.setCreateTime(new DateTime());
|
||||||
|
// String uuid = UniqueIdGenerator.generateUniqueID();
|
||||||
|
// order.setReserveCode(uuid);
|
||||||
|
//// order.setStoreName(lpkStore.getName());
|
||||||
|
// baseMapper.insert(order);
|
||||||
|
// dto.setOrderSid(order.getSid());
|
||||||
|
// rb = vegeCellarReserveDetailsService.submissionDetail(dto);
|
||||||
|
// return rb;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean addGoodsOrder(ReserveDeliveryOrderDto dto) {
|
||||||
|
// ResultBean rb = new ResultBean().fail();
|
||||||
|
// boolean b = isSatAndSun(dto.getReserveDate());
|
||||||
|
// if (!b) {
|
||||||
|
// return rb.setMsg("周六、周日不能预约提货");
|
||||||
|
// }
|
||||||
|
// ReserveDeliveryOrder order = new ReserveDeliveryOrder();
|
||||||
|
// order = baseMapper.selectList(new QueryWrapper<ReserveDeliveryOrder>().eq("customerSid", dto.getCustomerSid())
|
||||||
|
// .eq("affiliation", dto.getAffiliation()).eq("state", "0")).get(0);
|
||||||
|
// if (order == null) {
|
||||||
|
// BeanUtil.copyProperties(dto, order, "id", "sid");
|
||||||
|
//// order.setStoreSid(dto.getStoreSid());
|
||||||
|
//// order.setCardSid(dto.getSid());
|
||||||
|
// order.setCreateTime(new DateTime());
|
||||||
|
// baseMapper.insert(order);
|
||||||
|
// }
|
||||||
|
// dto.setOrderSid(order.getSid());
|
||||||
|
// vegeCellarReserveDetailsService.addDetail(dto);
|
||||||
|
// return rb.success().setData("预约成功");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean minusGoodsOrder(ReserveDeliveryOrderDto dto) {
|
||||||
|
// ResultBean rb = new ResultBean().fail();
|
||||||
|
// boolean b = isSatAndSun(dto.getReserveDate());
|
||||||
|
// if (!b) {
|
||||||
|
// return rb.setMsg("周六、周日不能预约提货");
|
||||||
|
// }
|
||||||
|
// ReserveDeliveryOrder order = new ReserveDeliveryOrder();
|
||||||
|
// order = baseMapper.selectList(new QueryWrapper<ReserveDeliveryOrder>().eq("customerSid", dto.getCustomerSid())
|
||||||
|
// .eq("affiliation", dto.getAffiliation()).eq("state", "0")).get(0);
|
||||||
|
// if (order == null) {
|
||||||
|
// BeanUtil.copyProperties(dto, order, "id", "sid");
|
||||||
|
//// order.setStoreSid(dto.getStoreSid());
|
||||||
|
//// order.setCardSid(dto.getSid());
|
||||||
|
// order.setCreateTime(new DateTime());
|
||||||
|
// baseMapper.insert(order);
|
||||||
|
// }
|
||||||
|
// dto.setOrderSid(order.getSid());
|
||||||
|
// vegeCellarReserveDetailsService.addDetail(dto);
|
||||||
|
// return rb.success().setData("预约成功");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public boolean isSatAndSun(String date) {
|
||||||
|
// DateTime dateTime = DateUtil.parse(date);
|
||||||
|
// ; // 获取当前时间
|
||||||
|
// int dayOfWeek = dateTime.dayOfWeekEnum().getValue();// 获取星期几(1-7)
|
||||||
|
// System.out.println(dayOfWeek);
|
||||||
|
// if (dayOfWeek == 1 || dayOfWeek == 7) {
|
||||||
|
// return false;
|
||||||
|
// } else {
|
||||||
|
// return true;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// // @Test
|
||||||
|
//// public void isSatAndSun(){
|
||||||
|
//// String date="2023-12-11";
|
||||||
|
//// DateTime dateTime = DateUtil.parse(date);; // 获取当前时间
|
||||||
|
//// int dayOfWeek = dateTime.dayOfWeekEnum().getValue();// 获取星期几(1-7)
|
||||||
|
////
|
||||||
|
//// System.out.println(dayOfWeek);
|
||||||
|
//// if (dayOfWeek == 1 || dayOfWeek == 7) {
|
||||||
|
//// System.out.println(dayOfWeek);
|
||||||
|
//// } else {
|
||||||
|
//// System.out.println(11111);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderList(PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// ResultBean rb = ResultBean.fireFail();
|
||||||
|
//// ReserveDeliveryOrderQuery query = pq.getParams();
|
||||||
|
//// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
//// IPage<ReserveDeliveryOrderVo> pagging = baseMapper.orderList(page, query);
|
||||||
|
//// List<ReserveDeliveryOrderVo> records = pagging.getRecords();
|
||||||
|
//// if (!records.isEmpty()) {
|
||||||
|
//// records.forEach(s -> {
|
||||||
|
//// List<ReserveDeliveryOrderGoods> orderGoods = ReserveDeliveryOrderGoodsService.selByOrderSid(s.getSid());
|
||||||
|
//// List<OrderGoodsVo> goodsVoList = new ArrayList<>();
|
||||||
|
//// if (!orderGoods.isEmpty()) {
|
||||||
|
//// for (ReserveDeliveryOrderGoods orderGood : orderGoods) {
|
||||||
|
//// OrderGoodsVo goodsVo = new OrderGoodsVo();
|
||||||
|
//// if (StringUtils.isNotBlank(orderGood.getGoodsSid())) {
|
||||||
|
//// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(orderGood.getGoodsSid());
|
||||||
|
//// if (null != lpkGoods) {
|
||||||
|
//// goodsVo.setGoodName(lpkGoods.getName());
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// if (orderGood.getGoodsNumber() != 0) {
|
||||||
|
//// goodsVo.setNum((int) orderGood.getGoodsNumber());
|
||||||
|
//// }
|
||||||
|
//// goodsVoList.add(goodsVo);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// s.setGoodsVo(goodsVoList);
|
||||||
|
//// });
|
||||||
|
//// }
|
||||||
|
//// PagerVo<ReserveDeliveryOrderVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
|
//// return rb.success().setData(p);
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByStore(PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// ResultBean rb = ResultBean.fireFail();
|
||||||
|
//// ReserveDeliveryOrderQuery query = pq.getParams();
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrder> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStore())) {
|
||||||
|
//// qw.like("s.name", query.getStore());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankName())) {
|
||||||
|
//// qw.like("d.name", query.getBankName());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
////
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
//// qw.orderByAsc("o.reserveDate");
|
||||||
|
//// qw.orderByDesc("d.sid");
|
||||||
|
//// qw.orderByDesc("s.sid");
|
||||||
|
//// qw.groupBy("o.cardType");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("s.name");
|
||||||
|
//// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
//// IPage<ReserveDeliveryOrderVo> pagging = baseMapper.orderListByStore(page, qw);
|
||||||
|
////// List<ReserveDeliveryOrderVo> records = pagging.getRecords();
|
||||||
|
//// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
////// if (!records.isEmpty()) {
|
||||||
|
////// records.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// PagerVo<ReserveDeliveryOrderVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
|
//// return rb.success().setData(p);
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByBank(PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// ResultBean rb = ResultBean.fireFail();
|
||||||
|
//// ReserveDeliveryOrderQuery query = pq.getParams();
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrder> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
////
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
////
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
//// qw.groupBy("d.sid");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
//// qw.groupBy("o.cardType");
|
||||||
|
//// qw.orderByAsc("o.reserveDate");
|
||||||
|
//// qw.orderByDesc("d.sid");
|
||||||
|
//// qw.orderByDesc("s.sid");
|
||||||
|
////// qw.groupBy("s.name");
|
||||||
|
//// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
//// IPage<ReserveDeliveryOrderVo> pagging = baseMapper.orderListByBank(page, qw);
|
||||||
|
//// List<ReserveDeliveryOrderVo> records = pagging.getRecords();
|
||||||
|
//// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
////
|
||||||
|
////// if (!records.isEmpty()) {
|
||||||
|
////// records.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// PagerVo<ReserveDeliveryOrderVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
|
//// return rb.success().setData(p);
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByZ(PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
//// ResultBean rb = ResultBean.fireFail();
|
||||||
|
//// ReserveDeliveryOrderQuery query = pq.getParams();
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrder> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStore())) {
|
||||||
|
//// qw.like("s.name", query.getStore());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getUserName())) {
|
||||||
|
//// qw.like("o.userName", query.getUserName());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getUserSid())) {
|
||||||
|
//// qw.like("o.customerSid", query.getUserSid());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
////
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
//// qw.orderByAsc("o.reserveDate");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
//// qw.groupBy("o.cardType");
|
||||||
|
////// qw.groupBy("s.name");
|
||||||
|
//// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
//// IPage<ReserveDeliveryOrderVo> pagging = baseMapper.orderListByZ(page, qw);
|
||||||
|
//// List<ReserveDeliveryOrderVo> records = pagging.getRecords();
|
||||||
|
//// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
////// if (!records.isEmpty()) {
|
||||||
|
////// records.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// PagerVo<ReserveDeliveryOrderVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
|
//// return rb.success().setData(p);
|
||||||
|
//// }
|
||||||
|
//// public ResultBean orderByCardSid(String sid) {
|
||||||
|
//// ResultBean rb = ResultBean.fireFail();
|
||||||
|
//// List<ReserveDeliveryOrderCardVo> list = baseMapper.orderByCardSid(sid);
|
||||||
|
//// return rb.success().setData(list);
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
// public ResultBean<PagerVo<ReserveDeliveryOrderVo>> orderListByUserSid(PagerQuery<ReserveDeliveryOrderQuery> pq) {
|
||||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||||
|
// ReserveDeliveryOrderQuery query = pq.getParams();
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = new QueryWrapper<>();
|
||||||
|
// if (StringUtils.isBlank(query.getCustomerSid())) {
|
||||||
|
// return rb.setMsg("参数不全");
|
||||||
|
// }
|
||||||
|
// qw.eq("o.customerSid", query.getUserSid());
|
||||||
|
// qw.eq("o.state", query.getState());
|
||||||
|
// qw.orderByDesc("reserveDate");
|
||||||
|
// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
// IPage<ReserveDeliveryOrderVo> pagging = baseMapper.orderListByUserSid(page, query);
|
||||||
|
// List<OrderGoodsVo> goodsVo = new ArrayList<>();
|
||||||
|
// for (ReserveDeliveryOrderVo vo : pagging.getRecords()) {
|
||||||
|
// List<VegeCellarReserveDetails> goods = reserveDeliveryOrderDetailsService.selByOrderSids(vo.getSid());
|
||||||
|
// for (VegeCellarReserveDetails goods1 : goods) {
|
||||||
|
// LpkGoods lpkGoods = lpkGoodsService.getOne(new QueryWrapper<LpkGoods>().eq("sid", goods1.getGoodsSid()));
|
||||||
|
//// OrderGoodsVo orderGoodsVo=new OrderGoodsVo();
|
||||||
|
//// orderGoodsVo.setGoodName(lpkGoods.getName());
|
||||||
|
//// orderGoodsVo.setNum(Integer.parseInt(goods1.getNum()));
|
||||||
|
//// orderGoodsVo.setUnitName(lpkGoods.getUnitName());
|
||||||
|
//// goodsVo.add(orderGoodsVo);
|
||||||
|
// if (StringUtils.isBlank(vo.getGoodss())) {
|
||||||
|
// vo.setGoodss(lpkGoods.getName() + ":" + goods1.getNum() + lpkGoods.getUnitName());
|
||||||
|
// } else {
|
||||||
|
// vo.setGoodss(vo.getGoodss() + " " + lpkGoods.getName() + ":" + goods1.getNum() + lpkGoods.getUnitName());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// vo.setGoodsVo(goodsVo);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// PagerVo<ReserveDeliveryOrderVo> p = PagerUtil.pageToVo(pagging, null);
|
||||||
|
// return rb.success().setData(p);
|
||||||
|
// }
|
||||||
|
////
|
||||||
|
//// public ResultBean orderDetails(String orderSid) {
|
||||||
|
//// ResultBean rb = new ResultBean().fail();
|
||||||
|
//// ReserveDeliveryOrder ReserveDeliveryOrder = fetchBySid(orderSid);
|
||||||
|
//// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
//// if (null != ReserveDeliveryOrder) {
|
||||||
|
//// AppletVo vo = lpkGiftCardMapper.getGifCardBySid(ReserveDeliveryOrder.getCardSid());
|
||||||
|
//// if (StringUtils.isNotBlank(ReserveDeliveryOrder.getStoreSid())) {
|
||||||
|
//// LpkStore lpkStore = lpkStoreService.fetchBySid(ReserveDeliveryOrder.getStoreSid());
|
||||||
|
//// if (null != lpkStore) {
|
||||||
|
//// if (StringUtils.isNotBlank(lpkStore.getName())) {
|
||||||
|
//// vo.setStore(lpkStore.getName());
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(ReserveDeliveryOrder.getReserveDate())) {
|
||||||
|
//// try {
|
||||||
|
//// Date parse = sdf.parse(ReserveDeliveryOrder.getReserveDate());
|
||||||
|
//// vo.setReserveDate(sdf.format(parse));
|
||||||
|
//// } catch (ParseException e) {
|
||||||
|
//// e.printStackTrace();
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// List<LpkGiftBagGoodsVo> list = lpkGiftBagGoodsService.getGoodsByBagSid(vo.getGiftbagSid());
|
||||||
|
//// List<StoreSelect> l = lpkStoreService.getAllStore().getData();
|
||||||
|
//// List<GoodsVo> goodsVos = new ArrayList<>();
|
||||||
|
//// list.forEach(s -> {
|
||||||
|
//// ReserveDeliveryOrderGoods goods = ReserveDeliveryOrderGoodsService.getReserveByCardSid(vo.getSid(), s.getGoodsSid()).getData();
|
||||||
|
//// ReserveDeliveryOrderGoods orderGoods = ReserveDeliveryOrderGoodsService.selByOrderSidAndGoodSid(orderSid, s.getGoodsSid());
|
||||||
|
//// GoodsVo goodsVo = new GoodsVo();
|
||||||
|
//// goodsVo.setGoods(s.getGoodsName());
|
||||||
|
//// goodsVo.setNum(s.getGoodsNumber());
|
||||||
|
//// goodsVo.setGoodsSid(s.getGoodsSid());
|
||||||
|
//// goodsVo.setPic(fileUploadComponent.getUrlPrefix() + s.getPicUrl());
|
||||||
|
//// if (null != goods) {
|
||||||
|
//// if (goods.getGoodsNumber() != s.getGoodsNumber()) {
|
||||||
|
//// goodsVo.setLNum(s.getGoodsNumber() - goods.getGoodsNumber());
|
||||||
|
//// goodsVo.setSelect(s.getGoodsNumber() - goods.getGoodsNumber());
|
||||||
|
//// if (null != orderGoods) {
|
||||||
|
//// goodsVo.setOrderNum(orderGoods.getGoodsNumber());
|
||||||
|
//// }
|
||||||
|
//// goodsVos.add(goodsVo);
|
||||||
|
//// }
|
||||||
|
//// } else {
|
||||||
|
//// goodsVo.setLNum(s.getGoodsNumber());
|
||||||
|
//// goodsVo.setSelect(s.getGoodsNumber());
|
||||||
|
//// goodsVos.add(goodsVo);
|
||||||
|
//// }
|
||||||
|
//// });
|
||||||
|
//// vo.setGoodsVos(goodsVos);
|
||||||
|
//// vo.setSelect(l);
|
||||||
|
//// return rb.success().setData(vo);
|
||||||
|
//// }
|
||||||
|
//// return rb.success();
|
||||||
|
//// }
|
||||||
|
////
|
||||||
|
//// public void exportExcel(ReserveDeliveryOrderQuery query) {
|
||||||
|
//// //得到所有要导出的数据
|
||||||
|
//// List<ReserveOrderExport> exportList = baseMapper.exportExcel(query);
|
||||||
|
//// List<ReserveOrderExport> exportList1 = new ArrayList<>();
|
||||||
|
//// if (!exportList.isEmpty()) {
|
||||||
|
//// exportList.forEach(s -> {
|
||||||
|
//// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
//// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// if (StringUtils.isNotBlank(s.getUserPhone())) {
|
||||||
|
//////// String phone = s.getUserPhone().substring(0, 3) + "****" + s.getUserPhone().substring(7);
|
||||||
|
////// String phone = s.getUserPhone();
|
||||||
|
////// s.setUserPhone(phone);
|
||||||
|
////// }
|
||||||
|
////// List<ReserveDeliveryOrderGoods> orderGoods = ReserveDeliveryOrderGoodsService.selByOrderSid(s.getSid());
|
||||||
|
////// if (!orderGoods.isEmpty()) {
|
||||||
|
////// int i=0;
|
||||||
|
////// for (ReserveDeliveryOrderGoods orderGood : orderGoods) {
|
||||||
|
////// String num = "";
|
||||||
|
////// String goodsName = "";
|
||||||
|
////// String finWord = "";
|
||||||
|
////// String unitName = "";
|
||||||
|
////// if (StringUtils.isNotBlank(orderGood.getGoodsSid())) {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(orderGood.getGoodsSid());
|
||||||
|
////// if (null != lpkGoods) {
|
||||||
|
////// goodsName = lpkGoods.getName();
|
||||||
|
////// if (StringUtils.isNotBlank(lpkGoods.getUnitName())) {
|
||||||
|
////// unitName = lpkGoods.getUnitName();
|
||||||
|
////// }
|
||||||
|
////// }
|
||||||
|
////// }
|
||||||
|
////// if (orderGood.getGoodsNumber() != 0) {
|
||||||
|
////// num = String.valueOf((int) orderGood.getGoodsNumber());
|
||||||
|
////// }
|
||||||
|
////// finWord = goodsName+num + unitName ;
|
||||||
|
////// i++;
|
||||||
|
////// if(i>1){
|
||||||
|
////// ReserveOrderExport en=new ReserveOrderExport();
|
||||||
|
////// BeanUtil.copyProperties(s,en , "id");
|
||||||
|
////// en.setGoodsInfo(finWord);
|
||||||
|
////// exportList1.add(en);
|
||||||
|
////// }else{
|
||||||
|
////// s.setGoodsInfo(finWord);
|
||||||
|
////// exportList1.add(s);
|
||||||
|
////// }
|
||||||
|
////// }
|
||||||
|
////// }
|
||||||
|
//// });
|
||||||
|
//// }
|
||||||
|
//// //定义导出的excel名字
|
||||||
|
//// //定义导出的excel名字
|
||||||
|
//// String excelName = "订单明细.xlsx";
|
||||||
|
//// String fileNameURL = "1";
|
||||||
|
//// response.setContentType( "application/vnd.ms-excel");
|
||||||
|
//// response.setCharacterEncoding("utf8");
|
||||||
|
//// response.setHeader("Content-disposition","attachment;filename="+ excelName );
|
||||||
|
//// ServletOutputStream outputStream = null;
|
||||||
|
//// try {
|
||||||
|
//// WriteCellStyle headWriteCellStyle = new WriteCellStyle();
|
||||||
|
////
|
||||||
|
//// //设置头居中
|
||||||
|
//// headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////
|
||||||
|
//// //内容策略
|
||||||
|
//// WriteCellStyle contentWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置 水平居中
|
||||||
|
//// contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(headWriteCellStyle,contentWriteCellStyle);
|
||||||
|
//// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(StyleUtils.getHeadStyle(), StyleUtils.getContentStyle());
|
||||||
|
////
|
||||||
|
//// EasyExcel//将数据映射到DownloadDTO实体类并响应到浏览器
|
||||||
|
//// .write(new BufferedOutputStream(response.getOutputStream()), ReserveOrderExport.class)
|
||||||
|
//// //是否自动关闭输入流
|
||||||
|
//// .autoCloseStream(Boolean.TRUE)
|
||||||
|
////// .registerWriteHandler(new MergeStrategy(exportList.size(),1,5))
|
||||||
|
//// .registerWriteHandler(horizontalCellStyleStrategy)
|
||||||
|
//// .sheet().doWrite(exportList);
|
||||||
|
//// } catch (IOException e) {
|
||||||
|
//// throw new RuntimeException(e);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// public void exportExcelByStore(ReserveDeliveryOrderQuery query) {
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrderQuery> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStore())) {
|
||||||
|
//// qw.like("s.name", query.getStore());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankName())) {
|
||||||
|
//// qw.like("s.name", query.getBankName());
|
||||||
|
//// }
|
||||||
|
//// qw.orderByAsc("o.reserveDate");
|
||||||
|
//// qw.orderByDesc("d.sid");
|
||||||
|
//// qw.orderByDesc("s.sid");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("s.name");
|
||||||
|
////// qw.orderByDesc("o.reserveDate");
|
||||||
|
////// qw.groupBy("s.name");
|
||||||
|
//// //得到所有要导出的数据
|
||||||
|
//// List<ReserveOrderExportByStore> exportList = baseMapper.exportExcelByStore(qw);
|
||||||
|
//// List<ReserveOrderExportByStore> exportList1 = new ArrayList<>();
|
||||||
|
//// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
////// if (!exportList.isEmpty()) {
|
||||||
|
////// exportList.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// //定义导出的excel名字
|
||||||
|
//// String excelName = "配货信息.xlsx";
|
||||||
|
//// String fileNameURL = "1";
|
||||||
|
//// response.setContentType( "application/vnd.ms-excel");
|
||||||
|
//// response.setCharacterEncoding("utf8");
|
||||||
|
//// response.setHeader("Content-disposition","attachment;filename="+ excelName );
|
||||||
|
//// ServletOutputStream outputStream = null;
|
||||||
|
//// try {
|
||||||
|
//// WriteCellStyle headWriteCellStyle = new WriteCellStyle();
|
||||||
|
////
|
||||||
|
//// //设置头居中
|
||||||
|
//// headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////
|
||||||
|
//// //内容策略
|
||||||
|
//// WriteCellStyle contentWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置 水平居中
|
||||||
|
//// contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(headWriteCellStyle,contentWriteCellStyle);
|
||||||
|
//// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(StyleUtils.getHeadStyle(), StyleUtils.getContentStyle());
|
||||||
|
////
|
||||||
|
//// EasyExcel//将数据映射到DownloadDTO实体类并响应到浏览器
|
||||||
|
//// .write(new BufferedOutputStream(response.getOutputStream()), ReserveOrderExportByStore.class)
|
||||||
|
//// //是否自动关闭输入流
|
||||||
|
//// .autoCloseStream(Boolean.TRUE)
|
||||||
|
////// .registerWriteHandler(new MergeStrategy(exportList.size(),1,1))
|
||||||
|
//// .registerWriteHandler(horizontalCellStyleStrategy)
|
||||||
|
//// .sheet().doWrite(exportList);
|
||||||
|
//// } catch (IOException e) {
|
||||||
|
//// throw new RuntimeException(e);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// public void exportExcelByBank(ReserveDeliveryOrderQuery query) {
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrderQuery> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStore())) {
|
||||||
|
//// qw.like("s.name", query.getStore());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
//// qw.orderByDesc("o.reserveDate");
|
||||||
|
//// qw.groupBy("d.sid");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
////// qw.groupBy("s.name");
|
||||||
|
//// //得到所有要导出的数据
|
||||||
|
//// List<ReserveOrderExportByBank> exportList = baseMapper.exportExcelByBank(qw);
|
||||||
|
//// List<ReserveOrderExportByBank> exportList1 = new ArrayList<>();
|
||||||
|
////// if (!exportList.isEmpty()) {
|
||||||
|
////// exportList.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// //定义导出的excel名字
|
||||||
|
//// String excelName = "支行汇总信息.xlsx";
|
||||||
|
//// String fileNameURL = "1";
|
||||||
|
//// response.setContentType( "application/vnd.ms-excel");
|
||||||
|
//// response.setCharacterEncoding("utf8");
|
||||||
|
//// response.setHeader("Content-disposition","attachment;filename="+ excelName );
|
||||||
|
//// ServletOutputStream outputStream = null;
|
||||||
|
//// try {
|
||||||
|
//// WriteCellStyle headWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置头居中
|
||||||
|
//// headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
//// //内容策略
|
||||||
|
//// WriteCellStyle contentWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置 水平居中
|
||||||
|
//// contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(headWriteCellStyle,contentWriteCellStyle);
|
||||||
|
//// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(StyleUtils.getHeadStyle(), StyleUtils.getContentStyle());
|
||||||
|
////
|
||||||
|
//// EasyExcel//将数据映射到DownloadDTO实体类并响应到浏览器
|
||||||
|
//// .write(new BufferedOutputStream(response.getOutputStream()), ReserveOrderExportByBank.class)
|
||||||
|
//// //是否自动关闭输入流
|
||||||
|
//// .autoCloseStream(Boolean.TRUE)
|
||||||
|
////// .registerWriteHandler(new MergeStrategy(exportList.size(),1,5))
|
||||||
|
//// .registerWriteHandler(horizontalCellStyleStrategy)
|
||||||
|
//// .sheet().doWrite(exportList);
|
||||||
|
//// } catch (IOException e) {
|
||||||
|
//// throw new RuntimeException(e);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// public void exportExcelByZ(ReserveDeliveryOrderQuery query) {
|
||||||
|
//// QueryWrapper<ReserveDeliveryOrderQuery> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("1", "1");
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStartDate())) {
|
||||||
|
//// String startDate = query.getStartDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(startDate), "date_format (o.reserveDate,'%Y-%m-%d') >= date_format('" + startDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getEndDate())) {
|
||||||
|
//// String endDate = query.getEndDate();
|
||||||
|
//// qw.apply(org.apache.commons.lang3.StringUtils.isNotEmpty(endDate), "date_format (o.reserveDate,'%Y-%m-%d') <= date_format('" + endDate + "','%Y-%m-%d')");
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getStore())) {
|
||||||
|
//// qw.like("s.name", query.getStore());
|
||||||
|
//// }
|
||||||
|
//// if (StringUtils.isNotBlank(query.getBankSid())) {
|
||||||
|
//// qw.eq("s.bankSid", query.getBankSid());
|
||||||
|
//// }
|
||||||
|
//// qw.orderByAsc("o.reserveDate");
|
||||||
|
//// qw.groupBy("t.goodsSid");
|
||||||
|
//// qw.groupBy("o.reserveDate");
|
||||||
|
////// qw.groupBy("s.name");
|
||||||
|
//// //得到所有要导出的数据
|
||||||
|
//// List<ReserveOrderExportByZ> exportList = baseMapper.exportExcelByZ(qw);
|
||||||
|
//// List<ReserveOrderExportByZ> exportList1 = new ArrayList<>();
|
||||||
|
////// if (!exportList.isEmpty()) {
|
||||||
|
////// exportList.forEach(s -> {
|
||||||
|
////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(s.getGoodsSid());
|
||||||
|
////// s.setGoodsName(lpkGoods.getName());
|
||||||
|
//////// List<String> list=baseMapper.getOrderByStore(s.getStoreSid(),s.getReserveDate());
|
||||||
|
//////// List<ReserveDeliveryOrderGoods> orderGoods = ReserveDeliveryOrderGoodsService.selInOrderSid(list);
|
||||||
|
//////// if (!orderGoods.isEmpty()) {
|
||||||
|
//////// int i=0;
|
||||||
|
//////// for (ReserveDeliveryOrderGoods orderGood : orderGoods) {
|
||||||
|
//////// String num = "";
|
||||||
|
//////// String goodsName = "";
|
||||||
|
//////// String finWord = "";
|
||||||
|
//////// String unitName = "";
|
||||||
|
//////// if (StringUtils.isNotBlank(orderGood.getGoodsSid())) {
|
||||||
|
//////// LpkGoods lpkGoods = lpkGoodsService.fetchBySid(orderGood.getGoodsSid());
|
||||||
|
//////// if (null != lpkGoods) {
|
||||||
|
//////// goodsName = lpkGoods.getName();
|
||||||
|
//////// if (StringUtils.isNotBlank(lpkGoods.getUnitName())) {
|
||||||
|
//////// unitName = lpkGoods.getUnitName();
|
||||||
|
//////// }
|
||||||
|
//////// }
|
||||||
|
//////// }
|
||||||
|
//////// if (orderGood.getGoodsNumber() != 0) {
|
||||||
|
//////// num = String.valueOf((int) orderGood.getGoodsNumber());
|
||||||
|
//////// }
|
||||||
|
//////// finWord = goodsName+ num + unitName;
|
||||||
|
//////// i++;
|
||||||
|
//////// if(i>1){
|
||||||
|
//////// ReserveOrderExportByBank en=new ReserveOrderExportByBank();
|
||||||
|
//////// BeanUtil.copyProperties(s,en , "id");
|
||||||
|
//////// en.setGoodsInfo(finWord);
|
||||||
|
//////// exportList1.add(en);
|
||||||
|
//////// }else{
|
||||||
|
//////// s.setGoodsInfo(finWord);
|
||||||
|
//////// exportList1.add(s);
|
||||||
|
//////// }
|
||||||
|
//////// }
|
||||||
|
//////// }
|
||||||
|
////// });
|
||||||
|
////// }
|
||||||
|
//// //定义导出的excel名字
|
||||||
|
//// String excelName = "支行汇总信息.xlsx";
|
||||||
|
//// String fileNameURL = "1";
|
||||||
|
//// response.setContentType( "application/vnd.ms-excel");
|
||||||
|
//// response.setCharacterEncoding("utf8");
|
||||||
|
//// response.setHeader("Content-disposition","attachment;filename="+ excelName );
|
||||||
|
//// ServletOutputStream outputStream = null;
|
||||||
|
//// try {
|
||||||
|
//// WriteCellStyle headWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置头居中
|
||||||
|
//// headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
//// //内容策略
|
||||||
|
//// WriteCellStyle contentWriteCellStyle = new WriteCellStyle();
|
||||||
|
//// //设置 水平居中
|
||||||
|
//// contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||||
|
////// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(headWriteCellStyle,contentWriteCellStyle);
|
||||||
|
//// HorizontalCellStyleStrategy horizontalCellStyleStrategy = new HorizontalCellStyleStrategy(StyleUtils.getHeadStyle(), StyleUtils.getContentStyle());
|
||||||
|
////
|
||||||
|
//// EasyExcel//将数据映射到DownloadDTO实体类并响应到浏览器
|
||||||
|
//// .write(new BufferedOutputStream(response.getOutputStream()), ReserveOrderExportByZ.class)
|
||||||
|
//// //是否自动关闭输入流
|
||||||
|
//// .autoCloseStream(Boolean.TRUE)
|
||||||
|
////// .registerWriteHandler(new MergeStrategy(exportList.size(),1,5))
|
||||||
|
//// .registerWriteHandler(horizontalCellStyleStrategy)
|
||||||
|
//// .sheet().doWrite(exportList);
|
||||||
|
//// } catch (IOException e) {
|
||||||
|
//// throw new RuntimeException(e);
|
||||||
|
//// }
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<ReserveDeliveryOrderVo> getStoreByCustomerSid(String sid) {
|
||||||
|
//// return new ResultBean().success().setData(baseMapper.getStoreByCustomerSid(sid));
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<ReserveDeliveryOrderVo> selByCardSid(String sid) {
|
||||||
|
//// return new ResultBean().success().setData(baseMapper.selByCardSid(sid));
|
||||||
|
//// }
|
||||||
|
//// public ResultBean<List<ReserveDeliveryOrderCardVo>> selOrderByCardSid(String sid) {
|
||||||
|
//// return new ResultBean().success().setData(baseMapper.selOrderByCardSid(sid));
|
||||||
|
//// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// private QueryWrapper<ReserveDeliveryOrder> buildQuery(LpkReserveOrderQuery query) {
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = new QueryWrapper<>();
|
||||||
|
//// qw.eq("vo.isEnable","1");
|
||||||
|
//
|
||||||
|
// if (StrUtil.isNotBlank(query.getStartDate())) {
|
||||||
|
// qw.ge("date_format(vo.reserveDate,'%Y-%m-%d')", query.getStartDate());
|
||||||
|
// }
|
||||||
|
// if (StrUtil.isNotBlank(query.getEndDate())) {
|
||||||
|
// qw.le("date_format(vo.reserveDate,'%Y-%m-%d')", query.getEndDate());
|
||||||
|
// }
|
||||||
|
// if (StrUtil.isNotBlank(query.getBankSid())) {
|
||||||
|
// qw.eq("lb.sid", query.getBankSid());
|
||||||
|
// }
|
||||||
|
// if (StrUtil.isNotBlank(query.getStore())) {
|
||||||
|
// qw.eq("vo.storeSid", query.getStore());
|
||||||
|
// }
|
||||||
|
// if (StrUtil.isNotBlank(query.getCardType())) {
|
||||||
|
// qw.eq("vo.affiliation", query.getCardType());
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//// qw.orderByAsc("vo.reserveDate");
|
||||||
|
// return qw;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean<IPage<ReserveOrderVo>> pageOfCustomer(PagerQuery<LpkReserveOrderQuery> pq) {
|
||||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||||
|
// LpkReserveOrderQuery query = pq.getParams();
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
//
|
||||||
|
// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
// IPage<ReserveOrderVo> pagerVo = baseMapper.pageOfCustomer(page, qw);
|
||||||
|
// return rb.success().setData(pagerVo);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public Map<String, List<ReserveCustomerExcel>> mapForExcelCustomer(LpkReserveOrderQuery query) {
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
// List<ReserveOrderVo> list = baseMapper.pageOfCustomer(qw);
|
||||||
|
// Map<String, List<ReserveCustomerExcel>> map = new HashMap<>();
|
||||||
|
// list.forEach(vo -> {
|
||||||
|
// List<ReserveCustomerExcel> volist = map.get(vo.getBankName());
|
||||||
|
// if (volist == null) {
|
||||||
|
// volist = new ArrayList<>();
|
||||||
|
// map.put(vo.getBankName(), volist);
|
||||||
|
// }
|
||||||
|
// ReserveCustomerExcel ex = new ReserveCustomerExcel();
|
||||||
|
// BeanUtil.copyProperties(vo, ex);
|
||||||
|
// volist.add(ex);
|
||||||
|
// });
|
||||||
|
// return map;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean<IPage<ReserveOrderVo>> pageOfStore(PagerQuery<LpkReserveOrderQuery> pq) {
|
||||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||||
|
// LpkReserveOrderQuery query = pq.getParams();
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
//
|
||||||
|
// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
// IPage<ReserveOrderVo> pagerVo = baseMapper.pageOfStore(page, qw);
|
||||||
|
// return rb.success().setData(pagerVo);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public Map<String, List<ReserveStoreExcel>> mapForExcelStore(LpkReserveOrderQuery query) {
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
// List<ReserveOrderVo> list = baseMapper.pageOfStore(qw);
|
||||||
|
// Map<String, List<ReserveStoreExcel>> map = new HashMap<>();
|
||||||
|
// list.forEach(vo -> {
|
||||||
|
// List<ReserveStoreExcel> volist = map.get(vo.getBankName());
|
||||||
|
// if (volist == null) {
|
||||||
|
// volist = new ArrayList<>();
|
||||||
|
// map.put(vo.getBankName(), volist);
|
||||||
|
// }
|
||||||
|
// ReserveStoreExcel ex = new ReserveStoreExcel();
|
||||||
|
// BeanUtil.copyProperties(vo, ex);
|
||||||
|
// volist.add(ex);
|
||||||
|
// });
|
||||||
|
// return map;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean<IPage<ReserveOrderVo>> pageOfBank(PagerQuery<LpkReserveOrderQuery> pq) {
|
||||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||||
|
// LpkReserveOrderQuery query = pq.getParams();
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
//
|
||||||
|
// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
// IPage<ReserveOrderVo> pagerVo = baseMapper.pageOfBank(page, qw);
|
||||||
|
// return rb.success().setData(pagerVo);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public Map<String, List<ReserveBankExcel>> mapForExcelBank(LpkReserveOrderQuery query) {
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
// List<ReserveOrderVo> list = baseMapper.pageOfBank(qw);
|
||||||
|
// Map<String, List<ReserveBankExcel>> map = new HashMap<>();
|
||||||
|
// list.forEach(vo -> {
|
||||||
|
// List<ReserveBankExcel> volist = map.get(vo.getBankName());
|
||||||
|
// if (volist == null) {
|
||||||
|
// volist = new ArrayList<>();
|
||||||
|
// map.put(vo.getBankName(), volist);
|
||||||
|
// }
|
||||||
|
// ReserveBankExcel ex = new ReserveBankExcel();
|
||||||
|
// BeanUtil.copyProperties(vo, ex);
|
||||||
|
// volist.add(ex);
|
||||||
|
// });
|
||||||
|
// return map;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean<IPage<ReserveOrderVo>> pageOfAll(PagerQuery<LpkReserveOrderQuery> pq) {
|
||||||
|
// ResultBean rb = ResultBean.fireFail();
|
||||||
|
// LpkReserveOrderQuery query = pq.getParams();
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
//
|
||||||
|
// IPage<ReserveDeliveryOrder> page = PagerUtil.queryToPage(pq);
|
||||||
|
// IPage<ReserveOrderVo> pagerVo = baseMapper.pageOfAll(page, qw);
|
||||||
|
// return rb.success().setData(pagerVo);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public List<ReserveAllExcel> listForExcelAll(LpkReserveOrderQuery query) {
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// QueryWrapper<ReserveDeliveryOrder> qw = buildQuery(query);
|
||||||
|
// List<ReserveOrderVo> list = baseMapper.pageOfAll(qw);
|
||||||
|
// List<ReserveAllExcel> listRes = new ArrayList<>();
|
||||||
|
//
|
||||||
|
// list.forEach(vo -> {
|
||||||
|
// ReserveAllExcel ex = new ReserveAllExcel();
|
||||||
|
// BeanUtil.copyProperties(vo, ex);
|
||||||
|
// listRes.add(ex);
|
||||||
|
// });
|
||||||
|
// return listRes;
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package com.yxt.yythmall.biz.reservedeliveryorderdetails;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.yxt.yythmall.api.reservedeliveryorderdetails.ReserveDeliveryOrderDetails;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
import org.apache.ibatis.annotations.Select;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangpengfei
|
||||||
|
* @date 2023/11/23 10:36
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface ReserveDeliveryOrderDetailsMapper extends BaseMapper<ReserveDeliveryOrderDetails> {
|
||||||
|
@Select("select sum(goodsNumber) as goodsNumber , goodsSid as goodsSid from lpk_reserve_order_goods where cardSid=#{cardSid} and goodsSid=#{goodsSid}")
|
||||||
|
ReserveDeliveryOrderDetails getReserveByCardSid(@Param("cardSid") String cardSid, @Param("goodsSid") String goodsSid);
|
||||||
|
|
||||||
|
ReserveDeliveryOrderDetails selByOrderSidAndGoodSid(@Param("orderSid") String orderSid, @Param("goodsSid") String goodsSid);
|
||||||
|
|
||||||
|
@Select("select * from lpk_reserve_order_goods where orderSid=#{orderSid}")
|
||||||
|
List<ReserveDeliveryOrderDetails> selByOrderSid(String orderSid);
|
||||||
|
|
||||||
|
List<ReserveDeliveryOrderDetails> selInOrderSid(@Param("orderSids") List<String> orderSids);
|
||||||
|
@Select("select *,goodsNumber as num from vege_cellar_reserve_details where orderSid=#{orderSid}")
|
||||||
|
List<ReserveDeliveryOrderDetails> selByOrderSids(String orderSid);
|
||||||
|
}
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
<?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.yxt.yythmall.biz.reservedeliveryorderdetails.ReserveDeliveryOrderDetailsMapper">
|
||||||
|
<!-- <where> ${ew.sqlSegment} </where>-->
|
||||||
|
<!-- ${ew.customSqlSegment} -->
|
||||||
|
|
||||||
|
<select id="storeListPage" resultType="com.yxt.yythmall.api.lpkstore.LpkStoreVo">
|
||||||
|
select
|
||||||
|
sid,
|
||||||
|
date_format(createTime, '%Y-%m-%d') as createTime,
|
||||||
|
code,
|
||||||
|
`name`,
|
||||||
|
address,
|
||||||
|
phone,
|
||||||
|
businessHours
|
||||||
|
from lpk_store
|
||||||
|
<where>
|
||||||
|
${ew.sqlSegment}
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
<select id="selByOrderSidAndGoodSid"
|
||||||
|
resultType="com.yxt.yythmall.api.lpkreserveordergoods.LpkReserveOrderGoods">
|
||||||
|
select *
|
||||||
|
from lpk_reserve_order_goods
|
||||||
|
where orderSid = #{orderSid}
|
||||||
|
and goodsSid = #{goodsSid}
|
||||||
|
</select>
|
||||||
|
<select id="selInOrderSid" resultType="com.yxt.yythmall.api.lpkreserveordergoods.LpkReserveOrderGoods">
|
||||||
|
select s.sid,s.createTime,s.remarks,s.cardSid,s.goodsSid,s.orderSid,sum(s.goodsNumber) as goodsNumber
|
||||||
|
from lpk_reserve_order_goods s
|
||||||
|
where orderSid in
|
||||||
|
<foreach collection="orderSids" item="item" index="index" open="(" close=")" separator=",">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
GROUP BY s.goodsSid
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
//package com.yxt.yythmall.biz.reservedeliveryorderdetails;
|
||||||
|
//
|
||||||
|
//import io.swagger.annotations.Api;
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
//import org.springframework.web.bind.annotation.RestController;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @author wangpengfei
|
||||||
|
// * @date 2023/11/23 10:35
|
||||||
|
// */
|
||||||
|
//@Api(tags = "预约订单信息")
|
||||||
|
//@RestController
|
||||||
|
//@RequestMapping("vegecellarreservedetails")
|
||||||
|
//public class ReserveDeliveryOrderDetailsRest {
|
||||||
|
// @Autowired
|
||||||
|
// ReserveDeliveryOrderDetailsService ReserveDeliveryOrderDetailsService;
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//// @ApiOperation("预约提交")
|
||||||
|
//// @PostMapping("/submissionDetail")
|
||||||
|
//// public ResultBean submissionDetail(ReserveDeliveryOrderDetailsDto dto){
|
||||||
|
//// return ReserveDeliveryOrderDetailsService.submissionDetail(dto);
|
||||||
|
//// }
|
||||||
|
//}
|
||||||
@@ -0,0 +1,91 @@
|
|||||||
|
//package com.yxt.yythmall.biz.reservedeliveryorderdetails;
|
||||||
|
//
|
||||||
|
//import cn.hutool.core.bean.BeanUtil;
|
||||||
|
//import cn.hutool.core.date.DateTime;
|
||||||
|
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
//import com.yxt.common.base.service.MybatisBaseService;
|
||||||
|
//import com.yxt.common.core.result.ResultBean;
|
||||||
|
//import com.yxt.yythmall.api.customerstore.CustomerStoreDto;
|
||||||
|
//import com.yxt.yythmall.api.lpkgiftcard.GoodsVo;
|
||||||
|
//import com.yxt.yythmall.api.lpkgoods.LpkGoods;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorder.ReserveDeliveryOrderDto;
|
||||||
|
//import com.yxt.yythmall.api.reservedeliveryorderdetails.ReserveDeliveryOrderDetails;
|
||||||
|
//import com.yxt.yythmall.api.vegetablecellar.VegetableCellar;
|
||||||
|
//import com.yxt.yythmall.biz.customerstore.CustomerStoreService;
|
||||||
|
//import com.yxt.yythmall.biz.lpkgiftcard.LpkGiftCardService;
|
||||||
|
//import com.yxt.yythmall.biz.lpkgoods.LpkGoodsService;
|
||||||
|
//import com.yxt.yythmall.biz.vegetablecellar.VegetableCellarService;
|
||||||
|
//import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
//import org.springframework.stereotype.Service;
|
||||||
|
//
|
||||||
|
//import java.util.List;
|
||||||
|
//
|
||||||
|
///**
|
||||||
|
// * @author wangpengfei
|
||||||
|
// * @date 2023/11/23 10:36
|
||||||
|
// */
|
||||||
|
//@Service
|
||||||
|
//public class ReserveDeliveryOrderDetailsService extends MybatisBaseService<ReserveDeliveryOrderDetailsMapper, ReserveDeliveryOrderDetails> {
|
||||||
|
// @Autowired
|
||||||
|
// LpkGiftCardService lpkGiftCardService;
|
||||||
|
// @Autowired
|
||||||
|
// VegetableCellarService vegetableCellarService;
|
||||||
|
// @Autowired
|
||||||
|
// CustomerStoreService customerStoreService;
|
||||||
|
// @Autowired
|
||||||
|
// LpkGoodsService lpkGoodsService;
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public ResultBean<ReserveDeliveryOrderDetails> getReserveByCardSid(String carSid, String goodsSid) {
|
||||||
|
// ResultBean rb = new ResultBean();
|
||||||
|
// ReserveDeliveryOrderDetails goods = baseMapper.getReserveByCardSid(carSid, goodsSid);
|
||||||
|
// return rb.success().setData(goods);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public ResultBean submissionDetail(ReserveDeliveryOrderDto dto) {
|
||||||
|
// ResultBean rb = new ResultBean();
|
||||||
|
// ReserveDeliveryOrderDetails goods = new ReserveDeliveryOrderDetails();
|
||||||
|
// BeanUtil.copyProperties(dto, goods, "id", "sid");
|
||||||
|
//// goods.setCardSid(dto.getSid());
|
||||||
|
// for (GoodsVo goods1 : dto.getGoodsVos()) {
|
||||||
|
// if (goods1.getSelect() != 0) {
|
||||||
|
//// goods.setCardSid(dto.getSid());
|
||||||
|
// LpkGoods goods2=lpkGoodsService.getOne(new QueryWrapper<LpkGoods>().eq("sid",goods1.getGoodsSid()));
|
||||||
|
//// goods.setGoodsSid(goods1.getGoodsSid());
|
||||||
|
// goods.setGoodsNumber(goods1.getSelect());
|
||||||
|
// goods.setGoodsName(goods2.getName());
|
||||||
|
// goods.setCreateTime(new DateTime());
|
||||||
|
// goods.setOrderSid(dto.getOrderSid());
|
||||||
|
// baseMapper.insert(goods);
|
||||||
|
// VegetableCellar vegetableCellar= vegetableCellarService.list(new QueryWrapper<VegetableCellar>().eq("customerSid",dto.getCustomerSid())
|
||||||
|
// .eq("goodsSid",goods1.getGoodsSid()).eq("affiliation",goods2.getBrandId())).get(0);
|
||||||
|
// double d=Double.valueOf(vegetableCellar.getGoodsNumber());
|
||||||
|
// double c=Double.valueOf(goods1.getSelect());
|
||||||
|
// if(c>d){
|
||||||
|
// return rb.setMsg("预约数量大于库存数量");
|
||||||
|
// }
|
||||||
|
// if(Double.compare(d,c)==0){
|
||||||
|
// vegetableCellarService.deleteBySid(vegetableCellar.getSid());
|
||||||
|
// }else{
|
||||||
|
// vegetableCellar.setGoodsNumber(String.valueOf((int)(Double.valueOf(vegetableCellar.getGoodsNumber())-Double.valueOf(goods1.getSelect()))));
|
||||||
|
// vegetableCellarService.updateById(vegetableCellar);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// CustomerStoreDto dto1=new CustomerStoreDto();
|
||||||
|
// dto1.setPhone(dto.getUserPhone());
|
||||||
|
// dto1.setStoreSid(dto.getStoreSid());
|
||||||
|
// dto1.setName(dto.getUserName());
|
||||||
|
// dto1.setCustomerSid(dto.getCustomerSid());
|
||||||
|
// customerStoreService.saveStore(dto1);
|
||||||
|
// return rb.success().setData("预约成功");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// public List<ReserveDeliveryOrderDetails> selByOrderSids(String orderSid) {
|
||||||
|
// return baseMapper.selByOrderSids(orderSid);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
@@ -8,10 +8,13 @@ import com.yxt.common.base.utils.StringUtils;
|
|||||||
import com.yxt.common.core.query.PagerQuery;
|
import com.yxt.common.core.query.PagerQuery;
|
||||||
import com.yxt.common.core.result.ResultBean;
|
import com.yxt.common.core.result.ResultBean;
|
||||||
import com.yxt.common.core.vo.PagerVo;
|
import com.yxt.common.core.vo.PagerVo;
|
||||||
|
import com.yxt.yythmall.api.appletgiftbaggoods.AppletGiftBagGoods;
|
||||||
import com.yxt.yythmall.api.lpkcustomer.LpkCustomer;
|
import com.yxt.yythmall.api.lpkcustomer.LpkCustomer;
|
||||||
import com.yxt.yythmall.api.lpkgoods.LpkGoods;
|
import com.yxt.yythmall.api.lpkgoods.LpkGoods;
|
||||||
|
import com.yxt.yythmall.api.newcomerrecorecord.NewcomerRecoRecord;
|
||||||
import com.yxt.yythmall.api.ordorder.OrdOrder;
|
import com.yxt.yythmall.api.ordorder.OrdOrder;
|
||||||
import com.yxt.yythmall.api.ordorderdetails.OrdOrderDetail;
|
import com.yxt.yythmall.api.ordorderdetails.OrdOrderDetail;
|
||||||
|
import com.yxt.yythmall.api.recommendnewuserbagdetails.RecommendNewUserBagDetails;
|
||||||
import com.yxt.yythmall.api.shoppingcart.ShoppingCart;
|
import com.yxt.yythmall.api.shoppingcart.ShoppingCart;
|
||||||
import com.yxt.yythmall.api.transferrecords.TransferRecords;
|
import com.yxt.yythmall.api.transferrecords.TransferRecords;
|
||||||
import com.yxt.yythmall.api.transferrecordsgoodsdetails.TransferRecordsGoodsDetails;
|
import com.yxt.yythmall.api.transferrecordsgoodsdetails.TransferRecordsGoodsDetails;
|
||||||
@@ -19,8 +22,11 @@ import com.yxt.yythmall.api.vegetablecellar.*;
|
|||||||
import com.yxt.yythmall.biz.empcard.EmpCardService;
|
import com.yxt.yythmall.biz.empcard.EmpCardService;
|
||||||
import com.yxt.yythmall.biz.lpkcustomer.LpkCustomerService;
|
import com.yxt.yythmall.biz.lpkcustomer.LpkCustomerService;
|
||||||
import com.yxt.yythmall.biz.lpkgoods.LpkGoodsService;
|
import com.yxt.yythmall.biz.lpkgoods.LpkGoodsService;
|
||||||
|
import com.yxt.yythmall.biz.newcomerrecorecord.NewcomerRecoRecordService;
|
||||||
import com.yxt.yythmall.biz.ordorder.OrdOrderService;
|
import com.yxt.yythmall.biz.ordorder.OrdOrderService;
|
||||||
import com.yxt.yythmall.biz.ordorderdetails.OrdOrderDetailService;
|
import com.yxt.yythmall.biz.ordorderdetails.OrdOrderDetailService;
|
||||||
|
import com.yxt.yythmall.biz.recommendnewuserbag.RecommendNewUserBagService;
|
||||||
|
import com.yxt.yythmall.biz.recommendnewuserbagdetails.RecommendNewUserBagDetailsService;
|
||||||
import com.yxt.yythmall.biz.shoppingcart.ShoppingCartService;
|
import com.yxt.yythmall.biz.shoppingcart.ShoppingCartService;
|
||||||
import com.yxt.yythmall.biz.transferrecords.TransferRecordsService;
|
import com.yxt.yythmall.biz.transferrecords.TransferRecordsService;
|
||||||
import com.yxt.yythmall.biz.transferrecordsgoodsdetails.TransferRecordsGoodsDetailsService;
|
import com.yxt.yythmall.biz.transferrecordsgoodsdetails.TransferRecordsGoodsDetailsService;
|
||||||
@@ -28,6 +34,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@@ -52,6 +59,12 @@ public class VegetableCellarService extends MybatisBaseService<VegetableCellarMa
|
|||||||
LpkGoodsService lpkGoodsService;
|
LpkGoodsService lpkGoodsService;
|
||||||
@Autowired
|
@Autowired
|
||||||
LpkCustomerService lpkCustomerService;
|
LpkCustomerService lpkCustomerService;
|
||||||
|
@Autowired
|
||||||
|
NewcomerRecoRecordService newcomerRecoRecordService;
|
||||||
|
@Autowired
|
||||||
|
RecommendNewUserBagDetailsService recommendNewUserBagDetailsService;
|
||||||
|
@Autowired
|
||||||
|
VegetableCellarService vegetableCellarService;
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public ResultBean addGoods(String mainSid) {
|
public ResultBean addGoods(String mainSid) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
@@ -76,7 +89,14 @@ public class VegetableCellarService extends MybatisBaseService<VegetableCellarMa
|
|||||||
baseMapper.updateById(vegetableCellar);
|
baseMapper.updateById(vegetableCellar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// NewcomerRecoRecord n=newcomerRecoRecordService.getOne(new QueryWrapper<NewcomerRecoRecord>().eq("recommendedSid",ordOrder.getUserSid()).eq("state","1"));
|
||||||
LpkCustomer customer=lpkCustomerService.getOne(new QueryWrapper<LpkCustomer>().eq("sid",ordOrder.getUserSid()));
|
LpkCustomer customer=lpkCustomerService.getOne(new QueryWrapper<LpkCustomer>().eq("sid",ordOrder.getUserSid()));
|
||||||
|
// if(n!=null){
|
||||||
|
// aa(n.getGiftBagSid(),n.getRecommendSid());
|
||||||
|
// customer.setIsNewUser("0");
|
||||||
|
// n.setState("2");
|
||||||
|
// newcomerRecoRecordService.updateById(n);
|
||||||
|
// }
|
||||||
customer.setIsPurchase("0");
|
customer.setIsPurchase("0");
|
||||||
lpkCustomerService.updateById(customer);
|
lpkCustomerService.updateById(customer);
|
||||||
ordOrder.setPayStatus(4);
|
ordOrder.setPayStatus(4);
|
||||||
@@ -84,6 +104,22 @@ public class VegetableCellarService extends MybatisBaseService<VegetableCellarMa
|
|||||||
ordOrderService.updateById(ordOrder);
|
ordOrderService.updateById(ordOrder);
|
||||||
return rb.success().setMsg("成功");
|
return rb.success().setMsg("成功");
|
||||||
}
|
}
|
||||||
|
public void aa(String giftBagSid,String customerSid){
|
||||||
|
List<RecommendNewUserBagDetails>list=recommendNewUserBagDetailsService.list(new QueryWrapper<RecommendNewUserBagDetails>().eq("giftbagSid",giftBagSid));
|
||||||
|
VegetableCellarDto dto1=new VegetableCellarDto();
|
||||||
|
dto1.setCustomerSid(customerSid);
|
||||||
|
List<vegeVo> vos=new ArrayList<>();
|
||||||
|
for (RecommendNewUserBagDetails appletGiftBagGoods : list) {
|
||||||
|
LpkGoods a=lpkGoodsService.getOne(new QueryWrapper<LpkGoods>().eq("sid",appletGiftBagGoods.getGoodsSid()));
|
||||||
|
vegeVo vo=new vegeVo();
|
||||||
|
vo.setGoodsSid(appletGiftBagGoods.getGoodsSid());
|
||||||
|
vo.setGoodsNumber(appletGiftBagGoods.getGoodsNumber());
|
||||||
|
vo.setBrandId(String.valueOf(a.getBrandId()));
|
||||||
|
vos.add(vo);
|
||||||
|
}
|
||||||
|
dto1.setVos(vos);
|
||||||
|
vegetableCellarService.save1Goods(dto1);
|
||||||
|
}
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public ResultBean saveGoods(VegetableCellarDto dto) {
|
public ResultBean saveGoods(VegetableCellarDto dto) {
|
||||||
ResultBean rb = ResultBean.fireFail();
|
ResultBean rb = ResultBean.fireFail();
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ public class PmsBrand extends BaseEntity implements Serializable {
|
|||||||
@TableField("dgxy")
|
@TableField("dgxy")
|
||||||
private String dgxy;
|
private String dgxy;
|
||||||
|
|
||||||
|
@TableField("qdxy")
|
||||||
|
private String qdxy;
|
||||||
|
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
@@ -186,7 +188,13 @@ public class PmsBrand extends BaseEntity implements Serializable {
|
|||||||
public void setDgxy(String dgxy) {
|
public void setDgxy(String dgxy) {
|
||||||
this.dgxy = dgxy;
|
this.dgxy = dgxy;
|
||||||
}
|
}
|
||||||
|
public String getQdxy() {
|
||||||
|
return qdxy;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setQdxy(String qdxy) {
|
||||||
|
this.qdxy = qdxy;
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "PmsBrand{" +
|
return "PmsBrand{" +
|
||||||
|
|||||||
@@ -19,5 +19,7 @@ public class BrandVo {
|
|||||||
private String qssl;
|
private String qssl;
|
||||||
@ApiModelProperty("订购协议")
|
@ApiModelProperty("订购协议")
|
||||||
private String dgxy;
|
private String dgxy;
|
||||||
|
@ApiModelProperty("起订协议")
|
||||||
|
private String qdxy;
|
||||||
private String count;
|
private String count;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="getList" resultType="com.yxt.yythmall.mallplus.mbg.pms.entity.brand.BrandVo">
|
<select id="getList" resultType="com.yxt.yythmall.mallplus.mbg.pms.entity.brand.BrandVo">
|
||||||
select name brandName,id,qssl,dgxy from pms_brand order by sort asc
|
select name brandName,id,qssl,dgxy,qdxy from pms_brand order by sort asc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user