¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.api.business; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Goodsorder; |
| | | import com.doumee.service.business.GoodsorderService; |
| | | import com.doumee.service.business.GoodsorderService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/09/27 18:06 |
| | | */ |
| | | @Api(tags = "订åä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping("/business/goodsorder") |
| | | public class GoodsorderController { |
| | | |
| | | |
| | | @Autowired |
| | | private GoodsorderService goodsorderService; |
| | | |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @RequiresPermissions("business:goodsorder:create") |
| | | public ApiResponse create(@RequestBody Goodsorder goodsorder) { |
| | | return ApiResponse.success(goodsorderService.create(goodsorder)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @RequiresPermissions("business:goodsorder:delete") |
| | | public ApiResponse deleteById(@PathVariable String id) { |
| | | goodsorderService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @RequiresPermissions("business:goodsorder:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<String> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(id); |
| | | } |
| | | goodsorderService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @RequiresPermissions("business:goodsorder:update") |
| | | public ApiResponse updateById(@RequestBody Goodsorder goodsorder) { |
| | | goodsorderService.updateById(goodsorder); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @RequiresPermissions("business:goodsorder:query") |
| | | public ApiResponse<PageData<Goodsorder>> findPage (@RequestBody PageWrap<Goodsorder> pageWrap) { |
| | | return ApiResponse.success(goodsorderService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @RequiresPermissions("business:goodsorder:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<Goodsorder> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(Goodsorder.class).export(goodsorderService.findPage(pageWrap).getRecords(), "èªè¡è½¦ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:goodsorder:query") |
| | | public ApiResponse findById(@PathVariable String id) { |
| | | return ApiResponse.success(goodsorderService.findById(id)); |
| | | } |
| | | } |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:baseparam:create', 'æ°å»ºç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:baseparam:delete', 'å é¤ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:baseparam:update', 'ä¿®æ¹ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:baseparam:query', 'æ¥è¯¢ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:baseparam:exportExcel', '导åºç³»ç»åºç¡é
置表(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO SYSTEM_PERMISSION(CODE, NAME, REMARK, FIXED, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, DELETED) VALUES ('business:baseparam:create', 'æ°å»ºç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO SYSTEM_PERMISSION(CODE, NAME, REMARK, FIXED, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, DELETED) VALUES ('business:baseparam:delete', 'å é¤ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO SYSTEM_PERMISSION(CODE, NAME, REMARK, FIXED, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, DELETED) VALUES ('business:baseparam:update', 'ä¿®æ¹ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO SYSTEM_PERMISSION(CODE, NAME, REMARK, FIXED, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, DELETED) VALUES ('business:baseparam:query', 'æ¥è¯¢ç³»ç»åºç¡é
置表', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO SYSTEM_PERMISSION(CODE, NAME, REMARK, FIXED, CREATE_USER, CREATE_TIME, UPDATE_USER, UPDATE_TIME, DELETED) VALUES ('business:baseparam:exportExcel', '导åºç³»ç»åºç¡é
置表(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.Goodsorder; |
| | | |
| | | /** |
| | | * @author T14 |
| | | */ |
| | | public interface GoodsorderMapper extends BaseMapper<Goodsorder> { |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.join; |
| | | |
| | | import com.doumee.dao.business.model.Goodsorder; |
| | | import com.github.yulichang.base.mapper.MPJJoinMapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | /** |
| | | * @author T14 |
| | | */ |
| | | @Repository |
| | | public interface GoodsorderJoinMapper extends MPJJoinMapper<Goodsorder> { |
| | | } |
| | |
| | | */ |
| | | @Data |
| | | @ApiModel("ç³»ç»åºç¡é
置表") |
| | | @TableName("`base_param`") |
| | | @TableName("base_param") |
| | | public class BaseParam { |
| | | |
| | | @ApiModelProperty(value = "ç¼ç ") |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.models.auth.In; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 订åä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/09/27 18:06 |
| | | */ |
| | | @Data |
| | | @ApiModel("订åä¿¡æ¯è¡¨") |
| | | @TableName("\"goodsorder\"") |
| | | public class Goodsorder { |
| | | |
| | | @ApiModelProperty(value = "ç¼ç ") |
| | | @ExcelColumn(name="ç¼ç ") |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | @ExcelColumn(name="å建人") |
| | | private String creator; |
| | | |
| | | @ApiModelProperty(value = "ç¼è¾æ¶é´") |
| | | @ExcelColumn(name="ç¼è¾æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "ç¼è¾äºº") |
| | | @ExcelColumn(name="ç¼è¾äºº") |
| | | private String editor; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å·²å é¤ 0æªå é¤ 1å·²å é¤", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å·²å é¤ 0æªå é¤ 1å·²å é¤") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String info; |
| | | |
| | | @ApiModelProperty(value = "订åç¼ç ") |
| | | @ExcelColumn(name="订åç¼ç ") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ç¼ç ï¼å
³èmember表ï¼") |
| | | @ExcelColumn(name="ç¨æ·ç¼ç ï¼å
³èmember表ï¼") |
| | | private String memberId; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·ç¼ç ï¼å
³èmember表ï¼") |
| | | @ExcelColumn(name="ç¨æ·åç§°ï¼å
³èmember表ï¼") |
| | | @TableField(exist = false) |
| | | private String memberName; |
| | | |
| | | @ApiModelProperty(value = "交æéé¢") |
| | | @ExcelColumn(name="交æéé¢") |
| | | private BigDecimal money; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¾
æ¯ä» 1å·²æ¯ä» 2已忶 3æ¯ä»å¤±è´¥ 4å·²ç»ç®") |
| | | @ExcelColumn(name="ç¶æ 0å¾
æ¯ä» 1å·²æ¯ä» 2已忶 3æ¯ä»å¤±è´¥ 4å·²ç»ç®") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "交æé¢è®¢åå·") |
| | | @ExcelColumn(name="交æé¢è®¢åå·") |
| | | private String preOrderid; |
| | | |
| | | @ApiModelProperty(value = "å¨çº¿äº¤æåå·") |
| | | @ExcelColumn(name="å¨çº¿äº¤æåå·") |
| | | private String onlineOrderid; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»ç¶æ 0å¾
æ¯ä» 1å·²æ¯ä»") |
| | | @ExcelColumn(name="æ¯ä»ç¶æ 0å¾
æ¯ä» 1å·²æ¯ä»") |
| | | private Integer payStatus; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»æ¹å¼ 0微信 1æ¯ä»å®") |
| | | @ExcelColumn(name="æ¯ä»æ¹å¼ 0微信 1æ¯ä»å®") |
| | | private String payWay; |
| | | |
| | | @ApiModelProperty(value = "æ¯ä»æ¶é´") |
| | | @ExcelColumn(name="æ¯ä»æ¶é´") |
| | | private Date payDate; |
| | | |
| | | @ApiModelProperty(value = "交æç±»å 0ç§è½¦æ¼é") |
| | | @ExcelColumn(name="交æç±»å 0ç§è½¦æ¼é") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®éé¢(åï¼") |
| | | @ExcelColumn(name="ç»ç®éé¢(åï¼") |
| | | private BigDecimal closeMoney; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®é款åå·(å
³èrefund)") |
| | | @ExcelColumn(name="ç»ç®é款åå·(å
³èrefund)") |
| | | private String closeId; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®æ¶é´") |
| | | @ExcelColumn(name="ç»ç®æ¶é´") |
| | | private Date closeDate; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®å¤æ³¨") |
| | | @ExcelColumn(name="ç»ç®å¤æ³¨") |
| | | private String closeInfo; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®æä½äººç¼ç ï¼å
³èsystem_user)") |
| | | @ExcelColumn(name="ç»ç®æä½äººç¼ç ï¼å
³èsystem_user)") |
| | | private String closeUserId; |
| | | |
| | | @ApiModelProperty(value = "ç»ç®ç±»å 0èªå¨ç»ç® 1å¹³å°äººå·¥ç»ç® 2ç³»ç»èªå¨ç»ç®") |
| | | @ExcelColumn(name="ç»ç®ç±»å 0èªå¨ç»ç® 1å¹³å°äººå·¥ç»ç® 2ç³»ç»èªå¨ç»ç®") |
| | | private Integer closeType; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Bikes; |
| | | import com.doumee.dao.business.model.Goodsorder; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 订åä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2023/09/27 18:06 |
| | | */ |
| | | public interface GoodsorderService { |
| | | |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | * @return String |
| | | */ |
| | | String create(Goodsorder goodsorder); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(String id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(Goodsorder goodsorder); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<String> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(Goodsorder goodsorder); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param goodsorders å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<Goodsorder> goodsorders); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return Goodsorder |
| | | */ |
| | | Goodsorder findById(String id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | * @return Goodsorder |
| | | */ |
| | | Goodsorder findOne(Goodsorder goodsorder); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | * @return List<Goodsorder> |
| | | */ |
| | | List<Goodsorder> findList(Goodsorder goodsorder); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<Goodsorder> |
| | | */ |
| | | PageData<Goodsorder> findPage(PageWrap<Goodsorder> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param goodsorder å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(Goodsorder goodsorder); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.GoodsorderMapper; |
| | | import com.doumee.dao.business.join.GoodsorderJoinMapper; |
| | | import com.doumee.dao.business.model.Bikes; |
| | | import com.doumee.dao.business.model.Goodsorder; |
| | | import com.doumee.dao.business.model.Member; |
| | | import com.doumee.service.business.GoodsorderService; |
| | | import com.github.yulichang.wrapper.MPJLambdaWrapper; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | | public class GoodsorderServiceImpl implements GoodsorderService { |
| | | |
| | | |
| | | |
| | | @Autowired |
| | | private GoodsorderMapper goodsorderMapper; |
| | | |
| | | @Autowired |
| | | GoodsorderJoinMapper goodsorderJoinMapper; |
| | | |
| | | @Override |
| | | public String create(Goodsorder goodsorder) { |
| | | goodsorderMapper.insert(goodsorder); |
| | | return goodsorder.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(String id) { |
| | | goodsorderMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(Goodsorder goodsorder) { |
| | | UpdateWrapper<Goodsorder> deleteWrapper = new UpdateWrapper<>(goodsorder); |
| | | goodsorderMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<String> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | goodsorderMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(Goodsorder goodsorder) { |
| | | goodsorderMapper.updateById(goodsorder); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<Goodsorder> goodsorders) { |
| | | if (CollectionUtils.isEmpty(goodsorders)) { |
| | | return; |
| | | } |
| | | for (Goodsorder goodsorder: goodsorders) { |
| | | this.updateById(goodsorder); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public Goodsorder findById(String id) { |
| | | return goodsorderMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public Goodsorder findOne(Goodsorder goodsorder) { |
| | | QueryWrapper<Goodsorder> wrapper = new QueryWrapper<>(goodsorder); |
| | | return goodsorderMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<Goodsorder> findList(Goodsorder goodsorder) { |
| | | QueryWrapper<Goodsorder> wrapper = new QueryWrapper<>(goodsorder); |
| | | return goodsorderMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<Goodsorder> findPage(PageWrap<Goodsorder> pageWrap) { |
| | | IPage<Goodsorder> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | MPJLambdaWrapper<Goodsorder> queryWrapper = new MPJLambdaWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | |
| | | |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.like(Goodsorder::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.eq(Goodsorder::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | |
| | | |
| | | if (pageWrap.getModel().getOnlineOrderid() != null) { |
| | | queryWrapper.eq(Goodsorder::getOnlineOrderid, pageWrap.getModel().getOnlineOrderid()); |
| | | } |
| | | |
| | | if (pageWrap.getModel().getPayDate() != null) { |
| | | queryWrapper.ge(Goodsorder::getPayDate, Utils.Date.getStart(pageWrap.getModel().getPayDate())); |
| | | queryWrapper.le(Goodsorder::getPayDate, Utils.Date.getEnd(pageWrap.getModel().getPayDate())); |
| | | } |
| | | |
| | | queryWrapper.orderByDesc(Goodsorder::getCreateDate); |
| | | queryWrapper.selectAll(Goodsorder.class) |
| | | .selectAs(Member::getName,Goodsorder::getMemberName) |
| | | .leftJoin(Member.class,Member::getId,Goodsorder::getMemberId) |
| | | .like(StringUtils.isNotBlank(pageWrap.getModel().getMemberName()),Member::getName,pageWrap.getModel().getMemberName()); |
| | | |
| | | return PageData.from(goodsorderJoinMapper.selectJoinPage(page, Goodsorder.class,queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(Goodsorder goodsorder) { |
| | | QueryWrapper<Goodsorder> wrapper = new QueryWrapper<>(goodsorder); |
| | | return goodsorderMapper.selectCount(wrapper); |
| | | } |
| | | } |