From 5ac69f49f01a823ca4666f5f0a8d69a7284c2111 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 16 一月 2024 10:31:37 +0800
Subject: [PATCH] 调整

---
 server/service/src/main/java/com/doumee/service/business/impl/SignRecordServiceImpl.java |  158 +++++++++++++++++
 server/company/src/main/java/com/doumee/api/business/SignRecordController.java           |   90 ++++++++++
 server/service/src/main/java/com/doumee/dao/business/SignRecordMapper.java               |   12 +
 server/service/src/main/java/com/doumee/dao/business/model/SignRecord.java               |   91 ++++++++++
 server/platform/src/main/java/com/doumee/api/business/SignRecordController.java          |   90 ++++++++++
 server/service/src/main/java/com/doumee/service/business/SignRecordService.java          |   97 ++++++++++
 6 files changed, 538 insertions(+), 0 deletions(-)

diff --git a/server/company/src/main/java/com/doumee/api/business/SignRecordController.java b/server/company/src/main/java/com/doumee/api/business/SignRecordController.java
new file mode 100644
index 0000000..8438606
--- /dev/null
+++ b/server/company/src/main/java/com/doumee/api/business/SignRecordController.java
@@ -0,0 +1,90 @@
+package com.doumee.api.business;
+
+import com.doumee.api.BaseController;
+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.PageWrap;
+import com.doumee.core.model.PageData;
+import com.doumee.dao.business.model.SignRecord;
+import com.doumee.service.business.SignRecordService;
+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 2024/01/16 10:27
+ */
+@Api(tags = "鐢靛瓙绛剧缃茶褰曡〃")
+@RestController
+@RequestMapping("/business/signRecord")
+public class SignRecordController extends BaseController {
+
+    @Autowired
+    private SignRecordService signRecordService;
+
+    @PreventRepeat
+    @ApiOperation("鏂板缓")
+    @PostMapping("/create")
+    @RequiresPermissions("business:signrecord:create")
+    public ApiResponse create(@RequestBody SignRecord signRecord) {
+        return ApiResponse.success(signRecordService.create(signRecord));
+    }
+
+    @ApiOperation("鏍规嵁ID鍒犻櫎")
+    @GetMapping("/delete/{id}")
+    @RequiresPermissions("business:signrecord:delete")
+    public ApiResponse deleteById(@PathVariable Integer id) {
+        signRecordService.deleteById(id);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鎵归噺鍒犻櫎")
+    @GetMapping("/delete/batch")
+    @RequiresPermissions("business:signrecord:delete")
+    public ApiResponse deleteByIdInBatch(@RequestParam String ids) {
+        String [] idArray = ids.split(",");
+        List<Integer> idList = new ArrayList<>();
+        for (String id : idArray) {
+            idList.add(Integer.valueOf(id));
+        }
+        signRecordService.deleteByIdInBatch(idList);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鏍规嵁ID淇敼")
+    @PostMapping("/updateById")
+    @RequiresPermissions("business:signrecord:update")
+    public ApiResponse updateById(@RequestBody SignRecord signRecord) {
+        signRecordService.updateById(signRecord);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鍒嗛〉鏌ヨ")
+    @PostMapping("/page")
+    @RequiresPermissions("business:signrecord:query")
+    public ApiResponse<PageData<SignRecord>> findPage (@RequestBody PageWrap<SignRecord> pageWrap) {
+        return ApiResponse.success(signRecordService.findPage(pageWrap));
+    }
+
+    @ApiOperation("瀵煎嚭Excel")
+    @PostMapping("/exportExcel")
+    @RequiresPermissions("business:signrecord:exportExcel")
+    public void exportExcel (@RequestBody PageWrap<SignRecord> pageWrap, HttpServletResponse response) {
+        ExcelExporter.build(SignRecord.class).export(signRecordService.findPage(pageWrap).getRecords(), "鐢靛瓙绛剧缃茶褰曡〃", response);
+    }
+
+    @ApiOperation("鏍规嵁ID鏌ヨ")
+    @GetMapping("/{id}")
+    @RequiresPermissions("business:signrecord:query")
+    public ApiResponse findById(@PathVariable Integer id) {
+        return ApiResponse.success(signRecordService.findById(id));
+    }
+}
diff --git a/server/platform/src/main/java/com/doumee/api/business/SignRecordController.java b/server/platform/src/main/java/com/doumee/api/business/SignRecordController.java
new file mode 100644
index 0000000..8438606
--- /dev/null
+++ b/server/platform/src/main/java/com/doumee/api/business/SignRecordController.java
@@ -0,0 +1,90 @@
+package com.doumee.api.business;
+
+import com.doumee.api.BaseController;
+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.PageWrap;
+import com.doumee.core.model.PageData;
+import com.doumee.dao.business.model.SignRecord;
+import com.doumee.service.business.SignRecordService;
+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 2024/01/16 10:27
+ */
+@Api(tags = "鐢靛瓙绛剧缃茶褰曡〃")
+@RestController
+@RequestMapping("/business/signRecord")
+public class SignRecordController extends BaseController {
+
+    @Autowired
+    private SignRecordService signRecordService;
+
+    @PreventRepeat
+    @ApiOperation("鏂板缓")
+    @PostMapping("/create")
+    @RequiresPermissions("business:signrecord:create")
+    public ApiResponse create(@RequestBody SignRecord signRecord) {
+        return ApiResponse.success(signRecordService.create(signRecord));
+    }
+
+    @ApiOperation("鏍规嵁ID鍒犻櫎")
+    @GetMapping("/delete/{id}")
+    @RequiresPermissions("business:signrecord:delete")
+    public ApiResponse deleteById(@PathVariable Integer id) {
+        signRecordService.deleteById(id);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鎵归噺鍒犻櫎")
+    @GetMapping("/delete/batch")
+    @RequiresPermissions("business:signrecord:delete")
+    public ApiResponse deleteByIdInBatch(@RequestParam String ids) {
+        String [] idArray = ids.split(",");
+        List<Integer> idList = new ArrayList<>();
+        for (String id : idArray) {
+            idList.add(Integer.valueOf(id));
+        }
+        signRecordService.deleteByIdInBatch(idList);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鏍规嵁ID淇敼")
+    @PostMapping("/updateById")
+    @RequiresPermissions("business:signrecord:update")
+    public ApiResponse updateById(@RequestBody SignRecord signRecord) {
+        signRecordService.updateById(signRecord);
+        return ApiResponse.success(null);
+    }
+
+    @ApiOperation("鍒嗛〉鏌ヨ")
+    @PostMapping("/page")
+    @RequiresPermissions("business:signrecord:query")
+    public ApiResponse<PageData<SignRecord>> findPage (@RequestBody PageWrap<SignRecord> pageWrap) {
+        return ApiResponse.success(signRecordService.findPage(pageWrap));
+    }
+
+    @ApiOperation("瀵煎嚭Excel")
+    @PostMapping("/exportExcel")
+    @RequiresPermissions("business:signrecord:exportExcel")
+    public void exportExcel (@RequestBody PageWrap<SignRecord> pageWrap, HttpServletResponse response) {
+        ExcelExporter.build(SignRecord.class).export(signRecordService.findPage(pageWrap).getRecords(), "鐢靛瓙绛剧缃茶褰曡〃", response);
+    }
+
+    @ApiOperation("鏍规嵁ID鏌ヨ")
+    @GetMapping("/{id}")
+    @RequiresPermissions("business:signrecord:query")
+    public ApiResponse findById(@PathVariable Integer id) {
+        return ApiResponse.success(signRecordService.findById(id));
+    }
+}
diff --git a/server/service/src/main/java/com/doumee/dao/business/SignRecordMapper.java b/server/service/src/main/java/com/doumee/dao/business/SignRecordMapper.java
new file mode 100644
index 0000000..25365ef
--- /dev/null
+++ b/server/service/src/main/java/com/doumee/dao/business/SignRecordMapper.java
@@ -0,0 +1,12 @@
+package com.doumee.dao.business;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.doumee.dao.business.model.SignRecord;
+
+/**
+ * @author 姹熻箘韫�
+ * @date 2024/01/16 10:27
+ */
+public interface SignRecordMapper extends BaseMapper<SignRecord> {
+
+}
diff --git a/server/service/src/main/java/com/doumee/dao/business/model/SignRecord.java b/server/service/src/main/java/com/doumee/dao/business/model/SignRecord.java
new file mode 100644
index 0000000..047433d
--- /dev/null
+++ b/server/service/src/main/java/com/doumee/dao/business/model/SignRecord.java
@@ -0,0 +1,91 @@
+package com.doumee.dao.business.model;
+
+import com.doumee.core.annotation.excel.ExcelColumn;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import java.util.Date;
+
+/**
+ * 鐢靛瓙绛剧缃茶褰曡〃
+ * @author 姹熻箘韫�
+ * @date 2024/01/16 10:27
+ */
+@Data
+@ApiModel("鐢靛瓙绛剧缃茶褰曡〃")
+@TableName("`sign_record`")
+public class SignRecord {
+
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "涓婚敭", example = "1")
+    @ExcelColumn(name="涓婚敭")
+    private Integer id;
+
+    @ApiModelProperty(value = "鍒涘缓浜虹紪鐮�", example = "1")
+    @ExcelColumn(name="鍒涘缓浜虹紪鐮�")
+    private Integer creator;
+
+    @ApiModelProperty(value = "鍒涘缓鏃堕棿")
+    @ExcelColumn(name="鍒涘缓鏃堕棿")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date createDate;
+
+    @ApiModelProperty(value = "鏇存柊浜虹紪鐮�", example = "1")
+    @ExcelColumn(name="鏇存柊浜虹紪鐮�")
+    private Integer editor;
+
+    @ApiModelProperty(value = "鏇存柊鏃堕棿")
+    @ExcelColumn(name="鏇存柊鏃堕棿")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date editDate;
+
+    @ApiModelProperty(value = "鏄惁鍒犻櫎0鍚� 1鏄�", example = "1")
+    @ExcelColumn(name="鏄惁鍒犻櫎0鍚� 1鏄�")
+    private Integer isdeleted;
+
+    @ApiModelProperty(value = "澶囨敞")
+    @ExcelColumn(name="澶囨敞")
+    private String remark;
+
+    @ApiModelProperty(value = "浼佷笟缂栫爜", example = "1")
+    @ExcelColumn(name="浼佷笟缂栫爜")
+    private Integer companyId;
+
+    @ApiModelProperty(value = "鎶曚繚鐢宠缂栫爜", example = "1")
+    @ExcelColumn(name="鎶曚繚鐢宠缂栫爜")
+    private Integer insuranceApplyId;
+
+    @ApiModelProperty(value = "鍔犲噺淇濇崲鍘傜敵璇风紪鐮�", example = "1")
+    @ExcelColumn(name="鍔犲噺淇濇崲鍘傜敵璇风紪鐮�")
+    private Integer applyChangeId;
+
+    @ApiModelProperty(value = "绛剧讲鍓嶆枃浠跺湴鍧�")
+    @ExcelColumn(name="绛剧讲鍓嶆枃浠跺湴鍧�")
+    private String fileUrl;
+
+    @ApiModelProperty(value = "绛剧讲鍚庢枃浠跺湴鍧�")
+    @ExcelColumn(name="绛剧讲鍚庢枃浠跺湴鍧�")
+    private String doneFileUrl;
+
+    @ApiModelProperty(value = "鍚堝悓鍙�")
+    @ExcelColumn(name="鍚堝悓鍙�")
+    private String appyno;
+
+    @ApiModelProperty(value = "绛剧讲鐘舵�� 0鏈缃� 1宸茬缃� 2鍏朵粬锛堟棤鏁堟棤闇�绛剧讲锛�", example = "1")
+    @ExcelColumn(name="绛剧讲鐘舵�� 0鏈缃� 1宸茬缃� 2鍏朵粬锛堟棤鏁堟棤闇�绛剧讲锛�")
+    private Integer statue;
+
+    @ApiModelProperty(value = "绛剧讲鏃堕棿")
+    @ExcelColumn(name="绛剧讲鏃堕棿")
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    private Date signDate;
+
+    @ApiModelProperty(value = "绛剧讲澶囨敞")
+    @ExcelColumn(name="绛剧讲澶囨敞")
+    private String signInfo;
+
+}
diff --git a/server/service/src/main/java/com/doumee/service/business/SignRecordService.java b/server/service/src/main/java/com/doumee/service/business/SignRecordService.java
new file mode 100644
index 0000000..e5d8a86
--- /dev/null
+++ b/server/service/src/main/java/com/doumee/service/business/SignRecordService.java
@@ -0,0 +1,97 @@
+package com.doumee.service.business;
+
+import com.doumee.core.model.PageData;
+import com.doumee.core.model.PageWrap;
+import com.doumee.dao.business.model.SignRecord;
+import java.util.List;
+
+/**
+ * 鐢靛瓙绛剧缃茶褰曡〃Service瀹氫箟
+ * @author 姹熻箘韫�
+ * @date 2024/01/16 10:27
+ */
+public interface SignRecordService {
+
+    /**
+     * 鍒涘缓
+     * 
+     * @param signRecord 瀹炰綋瀵硅薄
+     * @return Integer
+     */
+    Integer create(SignRecord signRecord);
+
+    /**
+     * 涓婚敭鍒犻櫎
+     *
+     * @param id 涓婚敭
+     */
+    void deleteById(Integer id);
+
+    /**
+     * 鍒犻櫎
+     *
+     * @param signRecord 瀹炰綋瀵硅薄
+     */
+    void delete(SignRecord signRecord);
+
+    /**
+     * 鎵归噺涓婚敭鍒犻櫎
+     *
+     * @param ids 涓婚敭闆�
+     */
+    void deleteByIdInBatch(List<Integer> ids);
+
+    /**
+     * 涓婚敭鏇存柊
+     *
+     * @param signRecord 瀹炰綋瀵硅薄
+     */
+    void updateById(SignRecord signRecord);
+
+    /**
+     * 鎵归噺涓婚敭鏇存柊
+     *
+     * @param signRecords 瀹炰綋闆�
+     */
+    void updateByIdInBatch(List<SignRecord> signRecords);
+
+    /**
+     * 涓婚敭鏌ヨ
+     *
+     * @param id 涓婚敭
+     * @return SignRecord
+     */
+    SignRecord findById(Integer id);
+
+    /**
+     * 鏉′欢鏌ヨ鍗曟潯璁板綍
+     *
+     * @param signRecord 瀹炰綋瀵硅薄
+     * @return SignRecord
+     */
+    SignRecord findOne(SignRecord signRecord);
+
+    /**
+     * 鏉′欢鏌ヨ
+     *
+     * @param signRecord 瀹炰綋瀵硅薄
+     * @return List<SignRecord>
+     */
+    List<SignRecord> findList(SignRecord signRecord);
+  
+    /**
+     * 鍒嗛〉鏌ヨ
+     *
+     * @param pageWrap 鍒嗛〉瀵硅薄
+     * @return PageData<SignRecord>
+     */
+    PageData<SignRecord> findPage(PageWrap<SignRecord> pageWrap);
+
+    /**
+     * 鏉′欢缁熻
+     *
+     * @param signRecord 瀹炰綋瀵硅薄
+     * @return long
+     */
+    long count(SignRecord signRecord);
+}
diff --git a/server/service/src/main/java/com/doumee/service/business/impl/SignRecordServiceImpl.java b/server/service/src/main/java/com/doumee/service/business/impl/SignRecordServiceImpl.java
new file mode 100644
index 0000000..a9dce63
--- /dev/null
+++ b/server/service/src/main/java/com/doumee/service/business/impl/SignRecordServiceImpl.java
@@ -0,0 +1,158 @@
+package com.doumee.service.business.impl;
+
+import com.doumee.core.model.PageData;
+import com.doumee.core.model.PageWrap;
+import com.doumee.core.utils.Utils;
+import com.doumee.dao.business.SignRecordMapper;
+import com.doumee.dao.business.model.SignRecord;
+import com.doumee.service.business.SignRecordService;
+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 org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import org.springframework.util.CollectionUtils;
+
+import java.util.List;
+
+/**
+ * 鐢靛瓙绛剧缃茶褰曡〃Service瀹炵幇
+ * @author 姹熻箘韫�
+ * @date 2024/01/16 10:27
+ */
+@Service
+public class SignRecordServiceImpl implements SignRecordService {
+
+    @Autowired
+    private SignRecordMapper signRecordMapper;
+
+    @Override
+    public Integer create(SignRecord signRecord) {
+        signRecordMapper.insert(signRecord);
+        return signRecord.getId();
+    }
+
+    @Override
+    public void deleteById(Integer id) {
+        signRecordMapper.deleteById(id);
+    }
+
+    @Override
+    public void delete(SignRecord signRecord) {
+        UpdateWrapper<SignRecord> deleteWrapper = new UpdateWrapper<>(signRecord);
+        signRecordMapper.delete(deleteWrapper);
+    }
+
+    @Override
+    public void deleteByIdInBatch(List<Integer> ids) {
+        if (CollectionUtils.isEmpty(ids)) {
+            return;
+        }
+        signRecordMapper.deleteBatchIds(ids);
+    }
+
+    @Override
+    public void updateById(SignRecord signRecord) {
+        signRecordMapper.updateById(signRecord);
+    }
+
+    @Override
+    public void updateByIdInBatch(List<SignRecord> signRecords) {
+        if (CollectionUtils.isEmpty(signRecords)) {
+            return;
+        }
+        for (SignRecord signRecord: signRecords) {
+            this.updateById(signRecord);
+        }
+    }
+
+    @Override
+    public SignRecord findById(Integer id) {
+        return signRecordMapper.selectById(id);
+    }
+
+    @Override
+    public SignRecord findOne(SignRecord signRecord) {
+        QueryWrapper<SignRecord> wrapper = new QueryWrapper<>(signRecord);
+        return signRecordMapper.selectOne(wrapper);
+    }
+
+    @Override
+    public List<SignRecord> findList(SignRecord signRecord) {
+        QueryWrapper<SignRecord> wrapper = new QueryWrapper<>(signRecord);
+        return signRecordMapper.selectList(wrapper);
+    }
+  
+    @Override
+    public PageData<SignRecord> findPage(PageWrap<SignRecord> pageWrap) {
+        IPage<SignRecord> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity());
+        QueryWrapper<SignRecord> queryWrapper = new QueryWrapper<>();
+        Utils.MP.blankToNull(pageWrap.getModel());
+        if (pageWrap.getModel().getId() != null) {
+            queryWrapper.lambda().eq(SignRecord::getId, pageWrap.getModel().getId());
+        }
+        if (pageWrap.getModel().getCreator() != null) {
+            queryWrapper.lambda().eq(SignRecord::getCreator, pageWrap.getModel().getCreator());
+        }
+        if (pageWrap.getModel().getCreateDate() != null) {
+            queryWrapper.lambda().ge(SignRecord::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate()));
+            queryWrapper.lambda().le(SignRecord::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate()));
+        }
+        if (pageWrap.getModel().getEditor() != null) {
+            queryWrapper.lambda().eq(SignRecord::getEditor, pageWrap.getModel().getEditor());
+        }
+        if (pageWrap.getModel().getEditDate() != null) {
+            queryWrapper.lambda().ge(SignRecord::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate()));
+            queryWrapper.lambda().le(SignRecord::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate()));
+        }
+        if (pageWrap.getModel().getIsdeleted() != null) {
+            queryWrapper.lambda().eq(SignRecord::getIsdeleted, pageWrap.getModel().getIsdeleted());
+        }
+        if (pageWrap.getModel().getRemark() != null) {
+            queryWrapper.lambda().eq(SignRecord::getRemark, pageWrap.getModel().getRemark());
+        }
+        if (pageWrap.getModel().getCompanyId() != null) {
+            queryWrapper.lambda().eq(SignRecord::getCompanyId, pageWrap.getModel().getCompanyId());
+        }
+        if (pageWrap.getModel().getInsuranceApplyId() != null) {
+            queryWrapper.lambda().eq(SignRecord::getInsuranceApplyId, pageWrap.getModel().getInsuranceApplyId());
+        }
+        if (pageWrap.getModel().getApplyChangeId() != null) {
+            queryWrapper.lambda().eq(SignRecord::getApplyChangeId, pageWrap.getModel().getApplyChangeId());
+        }
+        if (pageWrap.getModel().getFileUrl() != null) {
+            queryWrapper.lambda().eq(SignRecord::getFileUrl, pageWrap.getModel().getFileUrl());
+        }
+        if (pageWrap.getModel().getDoneFileUrl() != null) {
+            queryWrapper.lambda().eq(SignRecord::getDoneFileUrl, pageWrap.getModel().getDoneFileUrl());
+        }
+        if (pageWrap.getModel().getAppyno() != null) {
+            queryWrapper.lambda().eq(SignRecord::getAppyno, pageWrap.getModel().getAppyno());
+        }
+        if (pageWrap.getModel().getStatue() != null) {
+            queryWrapper.lambda().eq(SignRecord::getStatue, pageWrap.getModel().getStatue());
+        }
+        if (pageWrap.getModel().getSignDate() != null) {
+            queryWrapper.lambda().ge(SignRecord::getSignDate, Utils.Date.getStart(pageWrap.getModel().getSignDate()));
+            queryWrapper.lambda().le(SignRecord::getSignDate, Utils.Date.getEnd(pageWrap.getModel().getSignDate()));
+        }
+        if (pageWrap.getModel().getSignInfo() != null) {
+            queryWrapper.lambda().eq(SignRecord::getSignInfo, pageWrap.getModel().getSignInfo());
+        }
+        for(PageWrap.SortData sortData: pageWrap.getSorts()) {
+            if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) {
+                queryWrapper.orderByDesc(sortData.getProperty());
+            } else {
+                queryWrapper.orderByAsc(sortData.getProperty());
+            }
+        }
+        return PageData.from(signRecordMapper.selectPage(page, queryWrapper));
+    }
+
+    @Override
+    public long count(SignRecord signRecord) {
+        QueryWrapper<SignRecord> wrapper = new QueryWrapper<>(signRecord);
+        return signRecordMapper.selectCount(wrapper);
+    }
+}

--
Gitblit v1.9.3