Browse Source

拼团购代码初始化提交

feature/syp_points
songyunpeng 5 years ago
parent
commit
4b5cdb65db
  1. 97
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyEvaluationDTO.java
  2. 27
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyInfoDTO.java
  3. 87
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyPriceNumberDTO.java
  4. 106
      esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuySignUpDTO.java
  5. 94
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuyEvaluationController.java
  6. 94
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuyPriceNumberController.java
  7. 94
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuySignUpController.java
  8. 33
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuyEvaluationDao.java
  9. 33
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuyPriceNumberDao.java
  10. 33
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuySignUpDao.java
  11. 66
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyEvaluationEntity.java
  12. 29
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyInfoEntity.java
  13. 57
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyPriceNumberEntity.java
  14. 76
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuySignUpEntity.java
  15. 71
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuyEvaluationExcel.java
  16. 66
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuyPriceNumberExcel.java
  17. 77
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuySignUpExcel.java
  18. 47
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuyEvaluationRedis.java
  19. 47
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuyPriceNumberRedis.java
  20. 47
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuySignUpRedis.java
  21. 95
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuyEvaluationService.java
  22. 95
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuyPriceNumberService.java
  23. 95
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuySignUpService.java
  24. 104
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyEvaluationServiceImpl.java
  25. 104
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyPriceNumberServiceImpl.java
  26. 104
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuySignUpServiceImpl.java
  27. 22
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml
  28. 8
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml
  29. 20
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyPriceNumberDao.xml
  30. 24
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuySignUpDao.xml

97
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyEvaluationDTO.java

@ -0,0 +1,97 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuyEvaluationDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 评价人ID
*/
private String userId;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 评价人头像
*/
private String faceImg;
/**
* 评价人昵称
*/
private String nickname;
/**
* 评价内容
*/
private String evaluationContent;
/**
* 删除标识
*/
private String delFlag;
/**
* 乐观锁
*/
private Integer revision;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
}

27
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyInfoDTO.java

@ -53,12 +53,6 @@ public class GroupBuyInfoDTO implements Serializable {
* 发布内容
*/
private String groupBuyContent;
/**
* 团购时间
*/
private Date groupBuyTime;
/**
* 浏览数
*/
@ -172,9 +166,26 @@ public class GroupBuyInfoDTO implements Serializable {
* 更新时间
*/
private Date updatedTime;
/**
* 是否置顶
*/
private Integer isTop;
/**
* 排序
* 置顶人ID
*/
private Integer sort;
private String topUserId;
/**
* 状态0进行中 1已取消 2已结束
*/
private String groupBuyStatus;
/**
* 取消原因
*/
private String cancelReason;
}

87
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuyPriceNumberDTO.java

@ -0,0 +1,87 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dto;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import java.math.BigDecimal;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuyPriceNumberDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 拼团人数
*/
private Integer groupBuyNumber;
/**
* 拼团价格
*/
private BigDecimal groupBuyPrice;
/**
* 删除标识
*/
private String delFlag;
/**
* 乐观锁
*/
private Integer revision;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
}

106
esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/GroupBuySignUpDTO.java

@ -0,0 +1,106 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.dto;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuySignUpDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
private String id;
/**
* 报名人ID
*/
private String userId;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 报名人电话
*/
private String mobile;
/**
* 报名人头像
*/
private String faceImg;
/**
* 报名人昵称
*/
private String nickname;
/**
* 报名人真实姓名
*/
private String realName;
/**
* 报名状态 0已报名1已交易2已取消
*/
private Integer signUpStatus;
/**
* 删除标识
*/
private String delFlag;
/**
* 乐观锁
*/
private Integer revision;
/**
* 创建人
*/
private String createdBy;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新人
*/
private String updatedBy;
/**
* 更新时间
*/
private Date updatedTime;
}

94
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuyEvaluationController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.GroupBuyEvaluationDTO;
import com.elink.esua.epdc.modules.groupbuy.excel.GroupBuyEvaluationExcel;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuyEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@RestController
@RequestMapping("groupbuyevaluation")
public class GroupBuyEvaluationController {
@Autowired
private GroupBuyEvaluationService groupBuyEvaluationService;
@GetMapping("page")
public Result<PageData<GroupBuyEvaluationDTO>> page(@RequestParam Map<String, Object> params){
PageData<GroupBuyEvaluationDTO> page = groupBuyEvaluationService.page(params);
return new Result<PageData<GroupBuyEvaluationDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<GroupBuyEvaluationDTO> get(@PathVariable("id") String id){
GroupBuyEvaluationDTO data = groupBuyEvaluationService.get(id);
return new Result<GroupBuyEvaluationDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody GroupBuyEvaluationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
groupBuyEvaluationService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody GroupBuyEvaluationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
groupBuyEvaluationService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
groupBuyEvaluationService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<GroupBuyEvaluationDTO> list = groupBuyEvaluationService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, GroupBuyEvaluationExcel.class);
}
}

94
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuyPriceNumberController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.GroupBuyPriceNumberDTO;
import com.elink.esua.epdc.modules.groupbuy.excel.GroupBuyPriceNumberExcel;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuyPriceNumberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@RestController
@RequestMapping("groupbuypricenumber")
public class GroupBuyPriceNumberController {
@Autowired
private GroupBuyPriceNumberService groupBuyPriceNumberService;
@GetMapping("page")
public Result<PageData<GroupBuyPriceNumberDTO>> page(@RequestParam Map<String, Object> params){
PageData<GroupBuyPriceNumberDTO> page = groupBuyPriceNumberService.page(params);
return new Result<PageData<GroupBuyPriceNumberDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<GroupBuyPriceNumberDTO> get(@PathVariable("id") String id){
GroupBuyPriceNumberDTO data = groupBuyPriceNumberService.get(id);
return new Result<GroupBuyPriceNumberDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody GroupBuyPriceNumberDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
groupBuyPriceNumberService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody GroupBuyPriceNumberDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
groupBuyPriceNumberService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
groupBuyPriceNumberService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<GroupBuyPriceNumberDTO> list = groupBuyPriceNumberService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, GroupBuyPriceNumberExcel.class);
}
}

94
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/controller/GroupBuySignUpController.java

@ -0,0 +1,94 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.controller;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ExcelUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.commons.tools.validator.AssertUtils;
import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils;
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup;
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup;
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup;
import com.elink.esua.epdc.dto.GroupBuySignUpDTO;
import com.elink.esua.epdc.modules.groupbuy.excel.GroupBuySignUpExcel;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuySignUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@RestController
@RequestMapping("groupbuysignup")
public class GroupBuySignUpController {
@Autowired
private GroupBuySignUpService groupBuySignUpService;
@GetMapping("page")
public Result<PageData<GroupBuySignUpDTO>> page(@RequestParam Map<String, Object> params){
PageData<GroupBuySignUpDTO> page = groupBuySignUpService.page(params);
return new Result<PageData<GroupBuySignUpDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<GroupBuySignUpDTO> get(@PathVariable("id") String id){
GroupBuySignUpDTO data = groupBuySignUpService.get(id);
return new Result<GroupBuySignUpDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody GroupBuySignUpDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
groupBuySignUpService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody GroupBuySignUpDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
groupBuySignUpService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
groupBuySignUpService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<GroupBuySignUpDTO> list = groupBuySignUpService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, GroupBuySignUpExcel.class);
}
}

33
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuyEvaluationDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyEvaluationEntity;
import org.apache.ibatis.annotations.Mapper;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Mapper
public interface GroupBuyEvaluationDao extends BaseDao<GroupBuyEvaluationEntity> {
}

33
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuyPriceNumberDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyPriceNumberEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Mapper
public interface GroupBuyPriceNumberDao extends BaseDao<GroupBuyPriceNumberEntity> {
}

33
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/dao/GroupBuySignUpDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.dao;
import com.elink.esua.epdc.commons.mybatis.dao.BaseDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuySignUpEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Mapper
public interface GroupBuySignUpDao extends BaseDao<GroupBuySignUpEntity> {
}

66
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyEvaluationEntity.java

@ -0,0 +1,66 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_group_buy_evaluation")
public class GroupBuyEvaluationEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 评价人ID
*/
private String userId;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 评价人头像
*/
private String faceImg;
/**
* 评价人昵称
*/
private String nickname;
/**
* 评价内容
*/
private String evaluationContent;
}

29
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyInfoEntity.java

@ -22,8 +22,6 @@ import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 拼团购
*
@ -52,11 +50,6 @@ public class GroupBuyInfoEntity extends BaseEpdcEntity {
*/
private String groupBuyContent;
/**
* 团购时间
*/
private Date groupBuyTime;
/**
* 浏览数
*/
@ -142,7 +135,25 @@ public class GroupBuyInfoEntity extends BaseEpdcEntity {
private String shieldReason;
/**
* 排序
* 是否置顶
*/
private Integer isTop;
/**
* 置顶人ID
*/
private String topUserId;
/**
* 状态0进行中 1已取消 2已结束
*/
private String groupBuyStatus;
/**
* 取消原因
*/
private Integer sort;
private String cancelReason;
}

57
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuyPriceNumberEntity.java

@ -0,0 +1,57 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_group_buy_price_number")
public class GroupBuyPriceNumberEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 拼团人数
*/
private Integer groupBuyNumber;
/**
* 拼团价格
*/
private BigDecimal groupBuyPrice;
}

76
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/entity/GroupBuySignUpEntity.java

@ -0,0 +1,76 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("epdc_group_buy_sign_up")
public class GroupBuySignUpEntity extends BaseEpdcEntity {
private static final long serialVersionUID = 1L;
/**
* 报名人ID
*/
private String userId;
/**
* 拼团购ID
*/
private String groupBuyId;
/**
* 报名人电话
*/
private String mobile;
/**
* 报名人头像
*/
private String faceImg;
/**
* 报名人昵称
*/
private String nickname;
/**
* 报名人真实姓名
*/
private String realName;
/**
* 报名状态 0已报名1已交易2已取消
*/
private Integer signUpStatus;
}

71
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuyEvaluationExcel.java

@ -0,0 +1,71 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuyEvaluationExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "评价人ID")
private String userId;
@Excel(name = "拼团购ID")
private String groupBuyId;
@Excel(name = "评价人头像")
private String faceImg;
@Excel(name = "评价人昵称")
private String nickname;
@Excel(name = "评价内容")
private String evaluationContent;
@Excel(name = "删除标识")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

66
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuyPriceNumberExcel.java

@ -0,0 +1,66 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuyPriceNumberExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "拼团购ID")
private String groupBuyId;
@Excel(name = "拼团人数")
private Integer groupBuyNumber;
@Excel(name = "拼团价格")
private BigDecimal groupBuyPrice;
@Excel(name = "删除标识")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

77
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/excel/GroupBuySignUpExcel.java

@ -0,0 +1,77 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Data
public class GroupBuySignUpExcel {
@Excel(name = "主键")
private String id;
@Excel(name = "报名人ID")
private String userId;
@Excel(name = "拼团购ID")
private String groupBuyId;
@Excel(name = "报名人电话")
private String mobile;
@Excel(name = "报名人头像")
private String faceImg;
@Excel(name = "报名人昵称")
private String nickname;
@Excel(name = "报名人真实姓名")
private String realName;
@Excel(name = "报名状态 0:已报名1:已交易2:已取消")
private Integer signUpStatus;
@Excel(name = "删除标识")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

47
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuyEvaluationRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Component
public class GroupBuyEvaluationRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuyPriceNumberRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Component
public class GroupBuyPriceNumberRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/redis/GroupBuySignUpRedis.java

@ -0,0 +1,47 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.redis;
import com.elink.esua.epdc.commons.tools.redis.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Component
public class GroupBuySignUpRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

95
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuyEvaluationService.java

@ -0,0 +1,95 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.GroupBuyEvaluationDTO;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyEvaluationEntity;
import java.util.List;
import java.util.Map;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
public interface GroupBuyEvaluationService extends BaseService<GroupBuyEvaluationEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<GroupBuyEvaluationDTO>
* @author generator
* @date 2020-12-23
*/
PageData<GroupBuyEvaluationDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<GroupBuyEvaluationDTO>
* @author generator
* @date 2020-12-23
*/
List<GroupBuyEvaluationDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return GroupBuyEvaluationDTO
* @author generator
* @date 2020-12-23
*/
GroupBuyEvaluationDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void save(GroupBuyEvaluationDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void update(GroupBuyEvaluationDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-12-23
*/
void delete(String[] ids);
}

95
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuyPriceNumberService.java

@ -0,0 +1,95 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.GroupBuyPriceNumberDTO;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyPriceNumberEntity;
import java.util.List;
import java.util.Map;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
public interface GroupBuyPriceNumberService extends BaseService<GroupBuyPriceNumberEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<GroupBuyPriceNumberDTO>
* @author generator
* @date 2020-12-23
*/
PageData<GroupBuyPriceNumberDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<GroupBuyPriceNumberDTO>
* @author generator
* @date 2020-12-23
*/
List<GroupBuyPriceNumberDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return GroupBuyPriceNumberDTO
* @author generator
* @date 2020-12-23
*/
GroupBuyPriceNumberDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void save(GroupBuyPriceNumberDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void update(GroupBuyPriceNumberDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-12-23
*/
void delete(String[] ids);
}

95
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/GroupBuySignUpService.java

@ -0,0 +1,95 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service;
import com.elink.esua.epdc.commons.mybatis.service.BaseService;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.dto.GroupBuySignUpDTO;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuySignUpEntity;
import java.util.List;
import java.util.Map;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
public interface GroupBuySignUpService extends BaseService<GroupBuySignUpEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<GroupBuySignUpDTO>
* @author generator
* @date 2020-12-23
*/
PageData<GroupBuySignUpDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<GroupBuySignUpDTO>
* @author generator
* @date 2020-12-23
*/
List<GroupBuySignUpDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return GroupBuySignUpDTO
* @author generator
* @date 2020-12-23
*/
GroupBuySignUpDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void save(GroupBuySignUpDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-12-23
*/
void update(GroupBuySignUpDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-12-23
*/
void delete(String[] ids);
}

104
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyEvaluationServiceImpl.java

@ -0,0 +1,104 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.dto.GroupBuyEvaluationDTO;
import com.elink.esua.epdc.modules.groupbuy.dao.GroupBuyEvaluationDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyEvaluationEntity;
import com.elink.esua.epdc.modules.groupbuy.redis.GroupBuyEvaluationRedis;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuyEvaluationService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
*
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Service
public class GroupBuyEvaluationServiceImpl extends BaseServiceImpl<GroupBuyEvaluationDao, GroupBuyEvaluationEntity> implements GroupBuyEvaluationService {
@Autowired
private GroupBuyEvaluationRedis groupBuyEvaluationRedis;
@Override
public PageData<GroupBuyEvaluationDTO> page(Map<String, Object> params) {
IPage<GroupBuyEvaluationEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, GroupBuyEvaluationDTO.class);
}
@Override
public List<GroupBuyEvaluationDTO> list(Map<String, Object> params) {
List<GroupBuyEvaluationEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, GroupBuyEvaluationDTO.class);
}
private QueryWrapper<GroupBuyEvaluationEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<GroupBuyEvaluationEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public GroupBuyEvaluationDTO get(String id) {
GroupBuyEvaluationEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, GroupBuyEvaluationDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(GroupBuyEvaluationDTO dto) {
GroupBuyEvaluationEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuyEvaluationEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(GroupBuyEvaluationDTO dto) {
GroupBuyEvaluationEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuyEvaluationEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuyPriceNumberServiceImpl.java

@ -0,0 +1,104 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.dto.GroupBuyPriceNumberDTO;
import com.elink.esua.epdc.modules.groupbuy.dao.GroupBuyPriceNumberDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyPriceNumberEntity;
import com.elink.esua.epdc.modules.groupbuy.redis.GroupBuyPriceNumberRedis;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuyPriceNumberService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 拼团购价格人数关联表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Service
public class GroupBuyPriceNumberServiceImpl extends BaseServiceImpl<GroupBuyPriceNumberDao, GroupBuyPriceNumberEntity> implements GroupBuyPriceNumberService {
@Autowired
private GroupBuyPriceNumberRedis groupBuyPriceNumberRedis;
@Override
public PageData<GroupBuyPriceNumberDTO> page(Map<String, Object> params) {
IPage<GroupBuyPriceNumberEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, GroupBuyPriceNumberDTO.class);
}
@Override
public List<GroupBuyPriceNumberDTO> list(Map<String, Object> params) {
List<GroupBuyPriceNumberEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, GroupBuyPriceNumberDTO.class);
}
private QueryWrapper<GroupBuyPriceNumberEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<GroupBuyPriceNumberEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public GroupBuyPriceNumberDTO get(String id) {
GroupBuyPriceNumberEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, GroupBuyPriceNumberDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(GroupBuyPriceNumberDTO dto) {
GroupBuyPriceNumberEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuyPriceNumberEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(GroupBuyPriceNumberDTO dto) {
GroupBuyPriceNumberEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuyPriceNumberEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/groupbuy/service/impl/GroupBuySignUpServiceImpl.java

@ -0,0 +1,104 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.elink.esua.epdc.modules.groupbuy.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl;
import com.elink.esua.epdc.commons.tools.constant.FieldConstant;
import com.elink.esua.epdc.commons.tools.page.PageData;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.dto.GroupBuySignUpDTO;
import com.elink.esua.epdc.modules.groupbuy.dao.GroupBuySignUpDao;
import com.elink.esua.epdc.modules.groupbuy.entity.GroupBuySignUpEntity;
import com.elink.esua.epdc.modules.groupbuy.redis.GroupBuySignUpRedis;
import com.elink.esua.epdc.modules.groupbuy.service.GroupBuySignUpService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 拼团购报名表
*
* @author qu qu@elink-cn.com
* @since v1.0.0 2020-12-23
*/
@Service
public class GroupBuySignUpServiceImpl extends BaseServiceImpl<GroupBuySignUpDao, GroupBuySignUpEntity> implements GroupBuySignUpService {
@Autowired
private GroupBuySignUpRedis groupBuySignUpRedis;
@Override
public PageData<GroupBuySignUpDTO> page(Map<String, Object> params) {
IPage<GroupBuySignUpEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, GroupBuySignUpDTO.class);
}
@Override
public List<GroupBuySignUpDTO> list(Map<String, Object> params) {
List<GroupBuySignUpEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, GroupBuySignUpDTO.class);
}
private QueryWrapper<GroupBuySignUpEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<GroupBuySignUpEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public GroupBuySignUpDTO get(String id) {
GroupBuySignUpEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, GroupBuySignUpDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(GroupBuySignUpDTO dto) {
GroupBuySignUpEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuySignUpEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(GroupBuySignUpDTO dto) {
GroupBuySignUpEntity entity = ConvertUtils.sourceToTarget(dto, GroupBuySignUpEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

22
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyEvaluationDao.xml

@ -0,0 +1,22 @@
<?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.elink.esua.epdc.modules.groupbuy.dao.GroupBuyEvaluationDao">
<resultMap type="com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyEvaluationEntity" id="groupBuyEvaluationMap">
<result property="id" column="ID"/>
<result property="userId" column="USER_ID"/>
<result property="groupBuyId" column="GROUP_BUY_ID"/>
<result property="faceImg" column="FACE_IMG"/>
<result property="nickname" column="NICKNAME"/>
<result property="evaluationContent" column="EVALUATION_CONTENT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

8
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyInfoDao.xml

@ -8,7 +8,6 @@
<result property="groupBuyTitle" column="GROUP_BUY_TITLE"/>
<result property="groupBuyMobile" column="GROUP_BUY_MOBILE"/>
<result property="groupBuyContent" column="GROUP_BUY_CONTENT"/>
<result property="groupBuyTime" column="GROUP_BUY_TIME"/>
<result property="browseNum" column="BROWSE_NUM"/>
<result property="callNum" column="CALL_NUM"/>
<result property="realName" column="REAL_NAME"/>
@ -32,7 +31,6 @@
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
<result property="sort" column="SORT"/>
</resultMap>
<select id="getGroupBuyList"
resultType="com.elink.esua.epdc.dto.result.EpdcSelectGroupBuyInfoListResultDTO">
@ -40,8 +38,7 @@
t.ID,
t.GROUP_BUY_TITLE,
t.GROUP_BUY_MOBILE,
t.GROUP_BUY_CONTENT,
t.GROUP_BUY_TIME
t.GROUP_BUY_CONTENT
from epdc_group_buy_info t
where t.DEL_FLAG = '0' and t.SHIELD_FLAG = '0'
<if test="isMe != '' and isMe != null and isMe == 1">
@ -56,8 +53,7 @@
ID,
GROUP_BUY_TITLE,
GROUP_BUY_MOBILE,
GROUP_BUY_CONTENT,
GROUP_BUY_TIME
GROUP_BUY_CONTENT
from epdc_group_buy_info t
where t.DEL_FLAG = '0' and t.SHIELD_FLAG = '0'
and t.ID = #{id}

20
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuyPriceNumberDao.xml

@ -0,0 +1,20 @@
<?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.elink.esua.epdc.modules.groupbuy.dao.GroupBuyPriceNumberDao">
<resultMap type="com.elink.esua.epdc.modules.groupbuy.entity.GroupBuyPriceNumberEntity" id="groupBuyPriceNumberMap">
<result property="id" column="ID"/>
<result property="groupBuyId" column="GROUP_BUY_ID"/>
<result property="groupBuyNumber" column="GROUP_BUY_NUMBER"/>
<result property="groupBuyPrice" column="GROUP_BUY_PRICE"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

24
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/groupBuy/GroupBuySignUpDao.xml

@ -0,0 +1,24 @@
<?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.elink.esua.epdc.modules.groupbuy.dao.GroupBuySignUpDao">
<resultMap type="com.elink.esua.epdc.modules.groupbuy.entity.GroupBuySignUpEntity" id="groupBuySignUpMap">
<result property="id" column="ID"/>
<result property="userId" column="USER_ID"/>
<result property="groupBuyId" column="GROUP_BUY_ID"/>
<result property="mobile" column="MOBILE"/>
<result property="faceImg" column="FACE_IMG"/>
<result property="nickname" column="NICKNAME"/>
<result property="realName" column="REAL_NAME"/>
<result property="signUpStatus" column="SIGN_UP_STATUS"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>
Loading…
Cancel
Save