短剧用户开票相关接口更新
This commit is contained in:
parent
011891e01c
commit
cacdd503e0
|
|
@ -42,15 +42,15 @@ public class PlayletUserAccountAppController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 查询短剧基础列表
|
||||
* 查询用户提现基础列表
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping("/getItemList")
|
||||
@PostMapping("/getAccountList")
|
||||
@ApiOperation(value = "分页查询短剧基础列表")
|
||||
public Result<PageInfo<PlayletUserAccount>> getItemList(@RequestBody PlayletUserAccount playletUserAccount,
|
||||
public Result<PageInfo<PlayletUserAccount>> getAccountList(@RequestBody PlayletUserAccount playletUserAccount,
|
||||
@RequestParam(value = "pageNum") Integer pageNum,
|
||||
@RequestParam(value = "pageSize") Integer pageSize) {
|
||||
return Result.success(playletUserAccountAppService.getListPage(playletUserAccount, pageNum, pageSize));
|
||||
return Result.success(playletUserAccountAppService.getAccountList(playletUserAccount, pageNum, pageSize));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -0,0 +1,118 @@
|
|||
package com.playlet.web.controller.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.core.controller.BaseController;
|
||||
import com.playlet.common.core.domain.AjaxResult;
|
||||
import com.playlet.common.core.domain.Result;
|
||||
import com.playlet.common.core.page.TableDataInfo;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.playlet.web.service.app.PlayletUserInvoiceAppService;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:50
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息app Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/app/invoice")
|
||||
public class PlayletUserInvoiceAppController extends BaseController {
|
||||
|
||||
private String prefix = "system/invoice";
|
||||
|
||||
@Autowired
|
||||
private PlayletUserInvoiceAppService playletUserInvoiceAppService;
|
||||
|
||||
@RequiresPermissions("system:invoice:view")
|
||||
@GetMapping()
|
||||
public String invoice() {
|
||||
return prefix + "/invoice";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户开票信息基础列表
|
||||
*/
|
||||
@ResponseBody
|
||||
@PostMapping("/getInvoiceList")
|
||||
@ApiOperation(value = "分页查询短剧基础列表")
|
||||
public Result<PageInfo<PlayletUserInvoice>> getInvoiceList(@RequestBody PlayletUserInvoice invoice,
|
||||
@RequestParam(value = "pageNum") Integer pageNum,
|
||||
@RequestParam(value = "pageSize") Integer pageSize) {
|
||||
return Result.success(playletUserInvoiceAppService.getInvoiceList(invoice, pageNum, pageSize));
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PlayletUserInvoice playletUserInvoice) {
|
||||
startPage();
|
||||
List<PlayletUserInvoice> list = playletUserInvoiceAppService.selectPlayletUserInvoiceList(playletUserInvoice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:add")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PlayletUserInvoice playletUserInvoice) {
|
||||
return toAjax(playletUserInvoiceAppService.insertPlayletUserInvoice(playletUserInvoice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserInvoice playletUserInvoice = playletUserInvoiceAppService.selectPlayletUserInvoiceById(id);
|
||||
mmap.put("playletUserInvoice", playletUserInvoice);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:edit")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PlayletUserInvoice playletUserInvoice) {
|
||||
return toAjax(playletUserInvoiceAppService.updatePlayletUserInvoice(playletUserInvoice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:remove")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserInvoiceAppService.deletePlayletUserInvoiceByIds(ids));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,119 @@
|
|||
package com.playlet.web.controller.system;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.playlet.common.annotation.Log;
|
||||
import com.playlet.common.enums.BusinessType;
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.playlet.system.service.IPlayletUserInvoiceService;
|
||||
import com.playlet.common.core.controller.BaseController;
|
||||
import com.playlet.common.core.domain.AjaxResult;
|
||||
import com.playlet.common.utils.poi.ExcelUtil;
|
||||
import com.playlet.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:48
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息Controller
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping("/system/invoice")
|
||||
public class PlayletUserInvoiceController extends BaseController {
|
||||
private String prefix = "system/invoice";
|
||||
|
||||
@Autowired
|
||||
private IPlayletUserInvoiceService playletUserInvoiceService;
|
||||
|
||||
@RequiresPermissions("system:invoice:view")
|
||||
@GetMapping()
|
||||
public String invoice() {
|
||||
return prefix + "/invoice";
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:list")
|
||||
@PostMapping("/list")
|
||||
@ResponseBody
|
||||
public TableDataInfo list(PlayletUserInvoice playletUserInvoice) {
|
||||
startPage();
|
||||
List<PlayletUserInvoice> list = playletUserInvoiceService.selectPlayletUserInvoiceList(playletUserInvoice);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户开票信息列表
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:export")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
@ResponseBody
|
||||
public AjaxResult export(PlayletUserInvoice playletUserInvoice) {
|
||||
List<PlayletUserInvoice> list = playletUserInvoiceService.selectPlayletUserInvoiceList(playletUserInvoice);
|
||||
ExcelUtil<PlayletUserInvoice> util = new ExcelUtil<PlayletUserInvoice>(PlayletUserInvoice.class);
|
||||
return util.exportExcel(list, "用户开票信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add() {
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:add")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/add")
|
||||
@ResponseBody
|
||||
public AjaxResult addSave(PlayletUserInvoice playletUserInvoice) {
|
||||
return toAjax(playletUserInvoiceService.insertPlayletUserInvoice(playletUserInvoice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:edit")
|
||||
@GetMapping("/edit/{id}")
|
||||
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||
PlayletUserInvoice playletUserInvoice = playletUserInvoiceService.selectPlayletUserInvoiceById(id);
|
||||
mmap.put("playletUserInvoice", playletUserInvoice);
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:edit")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(PlayletUserInvoice playletUserInvoice) {
|
||||
return toAjax(playletUserInvoiceService.updatePlayletUserInvoice(playletUserInvoice));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户开票信息
|
||||
*/
|
||||
@RequiresPermissions("system:invoice:remove")
|
||||
@Log(title = "用户开票信息", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids) {
|
||||
return toAjax(playletUserInvoiceService.deletePlayletUserInvoiceByIds(ids));
|
||||
}
|
||||
}
|
||||
|
|
@ -13,7 +13,7 @@ import java.util.List;
|
|||
*/
|
||||
public interface PlayletUserAccountAppService {
|
||||
|
||||
PageInfo<PlayletUserAccount> getListPage(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize);
|
||||
PageInfo<PlayletUserAccount> getAccountList(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize);
|
||||
|
||||
/**
|
||||
* 查询短剧用户提现账户
|
||||
|
|
|
|||
|
|
@ -0,0 +1,66 @@
|
|||
package com.playlet.web.service.app;
|
||||
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:55
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息app业务接口层
|
||||
*/
|
||||
public interface PlayletUserInvoiceAppService {
|
||||
|
||||
PageInfo<PlayletUserInvoice> getInvoiceList(PlayletUserInvoice invoice, Integer pageNum, Integer pageSize);
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户开票信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 用户开票信息
|
||||
*/
|
||||
PlayletUserInvoice selectPlayletUserInvoiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 用户开票信息集合
|
||||
*/
|
||||
List<PlayletUserInvoice> selectPlayletUserInvoiceList(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 批量删除用户开票信息
|
||||
*
|
||||
* @param ids 需要删除的用户开票信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserInvoiceByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除用户开票信息信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserInvoiceById(Long id);
|
||||
}
|
||||
|
|
@ -29,7 +29,7 @@ public class PlayletUserAccountAppServiceImpl implements PlayletUserAccountAppSe
|
|||
private final IPlayletUserAccountService playletUserAccountService;
|
||||
|
||||
@Override
|
||||
public PageInfo<PlayletUserAccount> getListPage(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize) {
|
||||
public PageInfo<PlayletUserAccount> getAccountList(PlayletUserAccount playletUserAccount, Integer pageNum, Integer pageSize) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<PlayletUserAccount> list = playletUserAccountService.selectPlayletUserAccountList(playletUserAccount);
|
||||
return PageInfo.of(list);
|
||||
|
|
|
|||
|
|
@ -0,0 +1,64 @@
|
|||
package com.playlet.web.service.app.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.playlet.system.service.IPlayletUserInvoiceService;
|
||||
import com.playlet.web.service.app.PlayletUserInvoiceAppService;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 16:08
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息app业务接口实现层
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PlayletUserInvoiceAppServiceImpl implements PlayletUserInvoiceAppService {
|
||||
|
||||
private final IPlayletUserInvoiceService playletUserInvoiceService;
|
||||
|
||||
@Override
|
||||
public PageInfo<PlayletUserInvoice> getInvoiceList(PlayletUserInvoice invoice, Integer pageNum, Integer pageSize) {
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
List<PlayletUserInvoice> list = playletUserInvoiceService.selectPlayletUserInvoiceList(invoice);
|
||||
return PageInfo.of(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PlayletUserInvoice selectPlayletUserInvoiceById(Long id) {
|
||||
return playletUserInvoiceService.selectPlayletUserInvoiceById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PlayletUserInvoice> selectPlayletUserInvoiceList(PlayletUserInvoice playletUserInvoice) {
|
||||
return playletUserInvoiceService.selectPlayletUserInvoiceList(playletUserInvoice);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertPlayletUserInvoice(PlayletUserInvoice playletUserInvoice) {
|
||||
return playletUserInvoiceService.insertPlayletUserInvoice(playletUserInvoice);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updatePlayletUserInvoice(PlayletUserInvoice playletUserInvoice) {
|
||||
return playletUserInvoiceService.updatePlayletUserInvoice(playletUserInvoice);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserInvoiceByIds(String ids) {
|
||||
return playletUserInvoiceService.deletePlayletUserInvoiceByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deletePlayletUserInvoiceById(Long id) {
|
||||
return playletUserInvoiceService.deletePlayletUserInvoiceById(id);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
package com.playlet.system.domain;
|
||||
|
||||
import com.playlet.common.core.domain.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import com.playlet.common.annotation.Excel;
|
||||
/**
|
||||
* @Date: 2024-03-24 15:42
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息对象 playlet_user_invoice
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName(value = "playlet_user_invoice")
|
||||
public class PlayletUserInvoice extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 开票信息主键id */
|
||||
@ApiModelProperty(value = "开票信息主键id")
|
||||
private Long id;
|
||||
|
||||
/** 开票公司名称 */
|
||||
@ApiModelProperty(value = "开票公司名称")
|
||||
@Excel(name = "开票公司名称")
|
||||
private String companyName;
|
||||
|
||||
/** 企业纳税识别号 */
|
||||
@ApiModelProperty(value = "企业纳税识别号")
|
||||
@Excel(name = "企业纳税识别号")
|
||||
private String taxpayerNumber;
|
||||
|
||||
/** 企业电话 */
|
||||
@ApiModelProperty(value = "企业电话")
|
||||
@Excel(name = "企业电话")
|
||||
private String companyPhone;
|
||||
|
||||
/** 企业地址 */
|
||||
@ApiModelProperty(value = "企业地址")
|
||||
@Excel(name = "企业地址")
|
||||
private String companySite;
|
||||
|
||||
/** 企业开户行帐号 */
|
||||
@ApiModelProperty(value = "企业开户行帐号")
|
||||
@Excel(name = "企业开户行帐号")
|
||||
private String bankAccountNumber;
|
||||
|
||||
/** 企业开户行名称 */
|
||||
@ApiModelProperty(value = "企业开户行名称")
|
||||
@Excel(name = "企业开户行名称")
|
||||
private String bankAccountName;
|
||||
|
||||
/** 用户id */
|
||||
@ApiModelProperty(value = "用户id")
|
||||
@Excel(name = "用户id")
|
||||
private String userId;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
package com.playlet.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-24 15:44
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息Mapper接口
|
||||
*/
|
||||
public interface PlayletUserInvoiceMapper extends BaseMapper<PlayletUserInvoice> {
|
||||
/**
|
||||
* 查询用户开票信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 用户开票信息
|
||||
*/
|
||||
public PlayletUserInvoice selectPlayletUserInvoiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 用户开票信息集合
|
||||
*/
|
||||
public List<PlayletUserInvoice> selectPlayletUserInvoiceList(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 删除用户开票信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserInvoiceById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除用户开票信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePlayletUserInvoiceByIds(String[] ids);
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.playlet.system.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:44
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息Service接口
|
||||
*/
|
||||
public interface IPlayletUserInvoiceService extends IService<PlayletUserInvoice> {
|
||||
|
||||
|
||||
/**
|
||||
* 查询用户开票信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 用户开票信息
|
||||
*/
|
||||
PlayletUserInvoice selectPlayletUserInvoiceById(Long id);
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 用户开票信息集合
|
||||
*/
|
||||
List<PlayletUserInvoice> selectPlayletUserInvoiceList(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePlayletUserInvoice(PlayletUserInvoice playletUserInvoice);
|
||||
|
||||
/**
|
||||
* 批量删除用户开票信息
|
||||
*
|
||||
* @param ids 需要删除的用户开票信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserInvoiceByIds(String ids);
|
||||
|
||||
/**
|
||||
* 删除用户开票信息信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePlayletUserInvoiceById(Long id);
|
||||
}
|
||||
|
|
@ -0,0 +1,92 @@
|
|||
package com.playlet.system.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.playlet.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.playlet.system.mapper.PlayletUserInvoiceMapper;
|
||||
import com.playlet.system.domain.PlayletUserInvoice;
|
||||
import com.playlet.system.service.IPlayletUserInvoiceService;
|
||||
import com.playlet.common.core.text.Convert;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Date: 2024-03-25 15:45
|
||||
* @Author: 但星霖
|
||||
* @Version: v1.0
|
||||
* @Description: 用户开票信息Service业务层处理
|
||||
*/
|
||||
@Service
|
||||
public class PlayletUserInvoiceServiceImpl extends ServiceImpl<PlayletUserInvoiceMapper, PlayletUserInvoice> implements IPlayletUserInvoiceService {
|
||||
@Autowired
|
||||
private PlayletUserInvoiceMapper playletUserInvoiceMapper;
|
||||
|
||||
/**
|
||||
* 查询用户开票信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 用户开票信息
|
||||
*/
|
||||
@Override
|
||||
public PlayletUserInvoice selectPlayletUserInvoiceById(Long id) {
|
||||
return playletUserInvoiceMapper.selectPlayletUserInvoiceById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询用户开票信息列表
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 用户开票信息
|
||||
*/
|
||||
@Override
|
||||
public List<PlayletUserInvoice> selectPlayletUserInvoiceList(PlayletUserInvoice playletUserInvoice) {
|
||||
return playletUserInvoiceMapper.selectPlayletUserInvoiceList(playletUserInvoice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertPlayletUserInvoice(PlayletUserInvoice playletUserInvoice) {
|
||||
playletUserInvoice.setCreateTime(DateUtils.getNowDate());
|
||||
return playletUserInvoiceMapper.insertPlayletUserInvoice(playletUserInvoice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户开票信息
|
||||
*
|
||||
* @param playletUserInvoice 用户开票信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updatePlayletUserInvoice(PlayletUserInvoice playletUserInvoice) {
|
||||
playletUserInvoice.setUpdateTime(DateUtils.getNowDate());
|
||||
return playletUserInvoiceMapper.updatePlayletUserInvoice(playletUserInvoice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除用户开票信息
|
||||
*
|
||||
* @param ids 需要删除的用户开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserInvoiceByIds(String ids) {
|
||||
return playletUserInvoiceMapper.deletePlayletUserInvoiceByIds(Convert.toStrArray(ids));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户开票信息信息
|
||||
*
|
||||
* @param id 用户开票信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deletePlayletUserInvoiceById(Long id) {
|
||||
return playletUserInvoiceMapper.deletePlayletUserInvoiceById(id);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue