|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
import java.util.Arrays;
|
|
|
import java.util.Random;
|
|
|
|
|
|
+import com.miaxis.vip.dto.QueryVipCodeListDTO;
|
|
|
import io.swagger.annotations.*;
|
|
|
import com.miaxis.common.core.domain.Response;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
@@ -35,7 +36,7 @@ import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/vip/code")
|
|
|
-@Api(tags={"【app-激活码】"})
|
|
|
+@Api(tags={"【pc-激活码】"})
|
|
|
public class VipCodeController extends BaseController{
|
|
|
@Autowired
|
|
|
private IVipCodeService vipCodeService;
|
|
@@ -50,9 +51,9 @@ public class VipCodeController extends BaseController{
|
|
|
@ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
|
@ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
})
|
|
|
- public ResponsePageInfo<VipCode> list(@ModelAttribute VipCode vipCode){
|
|
|
+ public ResponsePageInfo<VipCode> list(@ModelAttribute QueryVipCodeListDTO dto){
|
|
|
startPage();
|
|
|
- List<VipCode> list = vipCodeService.selectVipCodeList(vipCode);
|
|
|
+ List<VipCode> list = vipCodeService.selectVipCodeList(dto);
|
|
|
return toResponsePageInfo(list);
|
|
|
}
|
|
|
|
|
@@ -63,8 +64,8 @@ public class VipCodeController extends BaseController{
|
|
|
@Log(title = "激活码", businessType = BusinessTypeEnum.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
@ApiOperation("导出激活码列表Excel")
|
|
|
- public Response<String> export(@ModelAttribute VipCode vipCode){
|
|
|
- List<VipCode> list = vipCodeService.selectVipCodeList(vipCode);
|
|
|
+ public Response<String> export(@ModelAttribute QueryVipCodeListDTO queryVipCodeListDTO){
|
|
|
+ List<VipCode> list = vipCodeService.selectVipCodeList(queryVipCodeListDTO);
|
|
|
ExcelUtil<VipCode> util = new ExcelUtil<VipCode>(VipCode.class);
|
|
|
return util.exportExcel(list, "code");
|
|
|
}
|