证书缴费撤回

This commit is contained in:
baozhipeng
2022-04-22 16:07:40 +08:00
parent b7c5a3a6d3
commit 2d56342e28
@@ -6,6 +6,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jero.aspect.annotation.CompanyNameTranslate;
import com.jero.common.api.vo.Result;
import com.jero.common.system.query.QueryGenerator;
@@ -38,7 +39,7 @@ import com.jero.common.aspect.annotation.AutoLog;
public class TbCertificatePaymentController extends JeroController<TbCertificatePayment, ITbCertificatePaymentService> {
@Autowired
private ITbCertificatePaymentService tbCertificatePaymentService;
/**
* 分页列表查询
*
@@ -131,6 +132,16 @@ public class TbCertificatePaymentController extends JeroController<TbCertificate
return Result.OK("批量删除成功!");
}
@AutoLog(value = "证书缴费表-通过会员缴费id删除")
@ApiOperation(value="证书缴费表-通过会员缴费id删除", notes="证书缴费表-通过会员缴费id删除")
@PostMapping(value = "/deleteByTbPaymentId")
public Result<?> deleteByTbPaymentId(@RequestBody TbCertificatePayment tbCertificatePayment) {
LambdaQueryWrapper<TbCertificatePayment> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(TbCertificatePayment::getTbPaymentId, tbCertificatePayment.getTbPaymentId());
tbCertificatePaymentService.remove(wrapper);
return Result.OK("删除成功!");
}
/**
* 通过id查询
*