直播记录页面添加进粉记录

This commit is contained in:
xiezhijun
2021-08-20 15:57:53 +08:00
parent af454ecf9a
commit ad3b5be706
12 changed files with 506 additions and 17 deletions

View File

@ -5,16 +5,10 @@ import java.util.List;
import com.stdiet.common.utils.DateUtils;
import com.stdiet.common.utils.StringUtils;
import com.stdiet.custom.domain.SysLiveSchedulFanRecord;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.stdiet.common.annotation.Log;
import com.stdiet.common.core.controller.BaseController;
import com.stdiet.common.core.domain.AjaxResult;
@ -261,4 +255,21 @@ public class SysLiveSchedulController extends BaseController
}
return AjaxResult.success(live);
}
/**
* 给对应直播添加、更新进粉记录
*/
@PostMapping(value = "/addOrEditSysLiveSchedulFanRecord")
public AjaxResult addOrEditSysLiveSchedulFanRecord(@RequestBody SysLiveSchedulFanRecord sysLiveSchedulFanRecord){
int row = sysLiveSchedulFanRecord.getId() == null ? sysLiveSchedulService.addLiveSchedulFanRecord(sysLiveSchedulFanRecord) : sysLiveSchedulService.updateLiveSchedulFanRecord(sysLiveSchedulFanRecord);
return toAjax(row);
}
/**
* 给对应直播删除进粉记录
*/
@GetMapping(value = "/delSysLiveSchedulFanRecord")
public AjaxResult delSysLiveSchedulFanRecord(@RequestParam("id")Long id){
return toAjax(sysLiveSchedulService.delLiveSchedulFanRecord(id));
}
}

View File

@ -119,4 +119,13 @@ public class SysWxSaleAccountController extends BaseController
{
return toAjax(sysWxSaleAccountService.deleteSysWxSaleAccountByIds(ids));
}
/**
* 查询所有微信账号
*/
@GetMapping("/getAllWxAccount")
public AjaxResult getAllWxAccount() {
List<SysWxSaleAccount> list = sysWxSaleAccountService.selectSysWxSaleAccountList(new SysWxSaleAccount());
return AjaxResult.success(list);
}
}