Jelajahi Sumber

导出下载

Althars123 2 tahun lalu
induk
melakukan
9c0bed422d

+ 54 - 0
jsjp-admin/src/main/java/com/miaxis/pc/GzptSchActivationController.java

@@ -0,0 +1,54 @@
+package com.miaxis.pc;
+
+import com.miaxis.common.core.controller.BaseController;
+import com.miaxis.common.core.page.ResponsePageInfo;
+import com.miaxis.newgzpt.domain.GzptSchActivation;
+import com.miaxis.newgzpt.dto.GzptSchActivationDTO;
+import com.miaxis.newgzpt.service.IGzptSchActivationService;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.ModelAttribute;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.List;
+
+/**
+ * 【订单信息】Controller
+ *
+ * @author miaxis
+ * @date 2022-06-07
+ */
+@RestController
+@RequestMapping("/activation/info")
+@Api(tags={"【PC-激活信息】"})
+public class GzptSchActivationController extends BaseController{
+    @Autowired
+    private IGzptSchActivationService gzptSchActivationService;
+
+
+    /**
+     * 查询订单信息列表
+     */
+    @GetMapping("/list")
+    @ApiOperation("查询激活信息列表")
+        @ApiImplicitParams({
+            @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
+            @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
+    })
+    public ResponsePageInfo<GzptSchActivation> list(@ModelAttribute GzptSchActivationDTO gzptSchActivationDTO){
+        startPage();
+        List<GzptSchActivation> list = gzptSchActivationService.selectSchActivationList(gzptSchActivationDTO);
+        return toResponsePageInfo(list);
+    }
+
+
+
+
+
+
+}

+ 31 - 0
jsjp-service/src/main/java/com/miaxis/newgzpt/dto/GzptSchActivationDTO.java

@@ -0,0 +1,31 @@
+package com.miaxis.newgzpt.dto;
+
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+
+import java.io.Serializable;
+
+/**
+ * <p>
+ * 学员基本信息表
+ * </p>
+ *
+ * @author ${author}
+ * @since 2021-03-09
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+public class GzptSchActivationDTO implements Serializable {
+
+
+    @ApiModelProperty(value = "驾校名称")
+    private String jxmc;
+
+    @ApiModelProperty(value = "学员ID")
+    private Long userId;
+
+    @ApiModelProperty(value = "是否已经删除 0正常 1已删除")
+    private Integer isDel;
+
+}

+ 5 - 1
jsjp-service/src/main/java/com/miaxis/newgzpt/service/IGzptSchActivationService.java

@@ -3,7 +3,9 @@ package com.miaxis.newgzpt.service;
 
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.miaxis.newgzpt.domain.GzptSchActivation;
-import com.miaxis.newgzpt.domain.GzptSchPayLog;
+import com.miaxis.newgzpt.dto.GzptSchActivationDTO;
+
+import java.util.List;
 
 /**
  * <p>
@@ -23,4 +25,6 @@ public interface IGzptSchActivationService extends IService<GzptSchActivation> {
     void delSchActivationByStuId(Long stuId);
 
     void upDelSchActivationByStuId(Long stuId);
+
+    List<GzptSchActivation> selectSchActivationList(GzptSchActivationDTO gzptSchActivationDTO);
 }

+ 20 - 3
jsjp-service/src/main/java/com/miaxis/newgzpt/service/impl/GzptSchActivationServiceImpl.java

@@ -1,17 +1,18 @@
 package com.miaxis.newgzpt.service.impl;
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.miaxis.common.annotation.DataSource;
 import com.miaxis.common.enums.DataSourceTypeEnum;
+import com.miaxis.common.utils.StringUtils;
 import com.miaxis.newgzpt.domain.GzptSchActivation;
-import com.miaxis.newgzpt.domain.GzptSchPayLog;
+import com.miaxis.newgzpt.dto.GzptSchActivationDTO;
 import com.miaxis.newgzpt.mapper.GzptSchActivationMapper;
-import com.miaxis.newgzpt.mapper.GzptSchPayLogMapper;
 import com.miaxis.newgzpt.service.IGzptSchActivationService;
-import com.miaxis.newgzpt.service.IGzptSchPayLogService;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
+import java.util.List;
 
 
 /**
@@ -57,4 +58,20 @@ public class GzptSchActivationServiceImpl extends ServiceImpl<GzptSchActivationM
     @Override
     public void upDelSchActivationByStuId(Long stuId) { mapper.upDelSchActivationByStuId(stuId); }
 
+    @Override
+    public List<GzptSchActivation> selectSchActivationList(GzptSchActivationDTO gzptSchActivationDTO) {
+        QueryWrapper<GzptSchActivation> queryWrapper = new QueryWrapper<GzptSchActivation>();
+        if (!StringUtils.isEmpty(gzptSchActivationDTO.getJxmc())){;
+            queryWrapper.like("JXMC",gzptSchActivationDTO.getJxmc());
+        }
+        if (gzptSchActivationDTO.getUserId()!=null){;
+            queryWrapper.eq("USER_ID",gzptSchActivationDTO.getUserId());
+        }
+        if (gzptSchActivationDTO.getIsDel()!=null){;
+            queryWrapper.like("IS_DEL",gzptSchActivationDTO.getIsDel());
+        }
+        List<GzptSchActivation> list = this.list(queryWrapper);
+        return list;
+    }
+
 }