|
@@ -6,10 +6,12 @@ import com.diagbot.annotation.SysLogger;
|
|
import com.diagbot.dto.RenewalsInfosDTO;
|
|
import com.diagbot.dto.RenewalsInfosDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.dto.RespDTO;
|
|
import com.diagbot.facade.UserRenewalsFacade;
|
|
import com.diagbot.facade.UserRenewalsFacade;
|
|
|
|
+import com.diagbot.vo.DeleteRenewalsInfoVO;
|
|
import com.diagbot.vo.RenewalsInfosVO;
|
|
import com.diagbot.vo.RenewalsInfosVO;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -31,15 +33,25 @@ public class UserRenewalsController {
|
|
private UserRenewalsFacade userRenewalsFacade;
|
|
private UserRenewalsFacade userRenewalsFacade;
|
|
|
|
|
|
@ApiOperation(value = "续费管理——显示[by:wangyu]",
|
|
@ApiOperation(value = "续费管理——显示[by:wangyu]",
|
|
- notes = "name:产品名,必填<br>" +
|
|
|
|
- "decription:产品描述,必填<br> " +
|
|
|
|
- "url:产品访问路径,必填<br>" +
|
|
|
|
- "charge_type:计费方式,必填<br>" +
|
|
|
|
- "access_type:接入模式,必填<br>" +
|
|
|
|
- "trialStatus:试用状态(是否可试用),必填<br>")
|
|
|
|
|
|
+ notes = "orgName:机构名称 <br>" +
|
|
|
|
+ "renewalsStutas:续费状态 <br>" +
|
|
|
|
+ "applyTime:<br>" +
|
|
|
|
+ "size:每页显示的条数 <br>" +
|
|
|
|
+ "curent:页数 <br>")
|
|
@PostMapping("/renewalsInfos")
|
|
@PostMapping("/renewalsInfos")
|
|
@SysLogger("renewalsInfos")
|
|
@SysLogger("renewalsInfos")
|
|
public RespDTO<IPage<RenewalsInfosDTO>> renewalsInfos(@RequestBody RenewalsInfosVO renewalsInfosVO) {
|
|
public RespDTO<IPage<RenewalsInfosDTO>> renewalsInfos(@RequestBody RenewalsInfosVO renewalsInfosVO) {
|
|
return RespDTO.onSuc(userRenewalsFacade.renewalsInfo(renewalsInfosVO));
|
|
return RespDTO.onSuc(userRenewalsFacade.renewalsInfo(renewalsInfosVO));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "续费管理——删除[by:wangyu]",
|
|
|
|
+ notes = "id:续费id,必填<br>")
|
|
|
|
+ @PostMapping("/deleteRenewalsInfos")
|
|
|
|
+ @SysLogger("deleteRenewalsInfos")
|
|
|
|
+ @Transactional
|
|
|
|
+ public RespDTO<Boolean> deleteRenewalsInfos(@RequestBody DeleteRenewalsInfoVO deleteRenewalsInfoVO) {
|
|
|
|
+ return RespDTO.onSuc(userRenewalsFacade.deleteRenewalsInfo(deleteRenewalsInfoVO));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|