|
@@ -9,6 +9,8 @@ import com.ruoyi.common.utils.PageUtils;
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
import com.ruoyi.web.work.domain.MoneyOut;
|
|
|
import com.ruoyi.web.work.domain.dto.MoneyOutDto;
|
|
|
+import com.ruoyi.web.work.domain.dto.SmsDto;
|
|
|
+import com.ruoyi.web.work.service.ICommonService;
|
|
|
import com.ruoyi.web.work.service.ICompanyService;
|
|
|
import com.ruoyi.web.work.service.IMoneyOutService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -34,6 +36,9 @@ public class MoneyOutController extends BaseController {
|
|
|
private IMoneyOutService moneyOutService;
|
|
|
|
|
|
@Autowired
|
|
|
+ private ICommonService commonService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
private ICompanyService companyService;
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('work:out:list')")
|
|
@@ -56,27 +61,34 @@ public class MoneyOutController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('work:out:add')")
|
|
|
- @Log(title = "提现管理", businessType = BusinessType.INSERT)
|
|
|
+ @Log(title = "提现申请获取验证码", businessType = BusinessType.INSERT)
|
|
|
+ @GetMapping("/sms")
|
|
|
+ public AjaxResult sms() {
|
|
|
+ return commonService.sms(new SmsDto().setTemplateCode("SMS_465690916"));
|
|
|
+ }
|
|
|
+
|
|
|
+ @PreAuthorize("@ss.hasPermi('work:out:add')")
|
|
|
+ @Log(title = "企业提现申请", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
- public AjaxResult add(@Validated @RequestBody MoneyOut moneyOut) {
|
|
|
+ public AjaxResult add(@Validated @RequestBody MoneyOut moneyOut) throws ServerException {
|
|
|
return moneyOutService.add(moneyOut);
|
|
|
}
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('work:out:edit')")
|
|
|
- @Log(title = "提现管理", businessType = BusinessType.UPDATE)
|
|
|
+ @Log(title = "提现审核", businessType = BusinessType.UPDATE)
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult edit(@Validated @RequestBody MoneyOutDto dto) throws ServerException {
|
|
|
return moneyOutService.edit(dto);
|
|
|
}
|
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('work:out:remove')")
|
|
|
- @Log(title = "提现管理", businessType = BusinessType.DELETE)
|
|
|
+ @Log(title = "提现记录删除", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/remove/{ids}")
|
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(moneyOutService.removeByIds(Arrays.asList(ids)));
|
|
|
}
|
|
|
|
|
|
- @Log(title = "提现管理", businessType = BusinessType.EXPORT)
|
|
|
+ @Log(title = "提现记录导出", businessType = BusinessType.EXPORT)
|
|
|
@PreAuthorize("@ss.hasPermi('work:out:export')")
|
|
|
@PostMapping("/export")
|
|
|
public void export(HttpServletResponse response, MoneyOut moneyOut) {
|