|
|
@@ -11,6 +11,7 @@ import com.alibaba.excel.EasyExcel;
|
|
|
import com.alibaba.excel.context.AnalysisContext;
|
|
|
import com.alibaba.excel.event.AnalysisEventListener;
|
|
|
import com.alibaba.excel.support.ExcelTypeEnum;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Assert;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.cyksj.common.annotation.Log;
|
|
|
import com.cyksj.common.annotation.NoSubmit;
|
|
|
@@ -879,4 +880,23 @@ public class CmsAccountController {
|
|
|
.field(AccountSpecificView::getSkuId, skuIds).op(Operator.InList).build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 编辑 未续费的账号
|
|
|
+ */
|
|
|
+ @PutMapping("/update/renew/account")
|
|
|
+ public Result<String> updateRenewAccount(@RequestBody Account account) {
|
|
|
+ Long id = account.getId();
|
|
|
+ Date startTime = account.getStartTime();
|
|
|
+ Date expiryTime = account.getExpiryTime();
|
|
|
+ String remark = account.getRemark();
|
|
|
+ Account byId = accountService.getById(id);
|
|
|
+ Assert.notNull(byId, "账号不存在");
|
|
|
+ byId.setStartTime(startTime);
|
|
|
+ byId.setExpiryTime(expiryTime);
|
|
|
+ byId.setRemark(remark);
|
|
|
+ accountService.updateById(byId);
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
+
|
|
|
}
|