12
12
*/
13
13
package com.wansenai.api.financial
14
14
15
+ import org.springframework.web.bind.annotation.RestController
16
+ import org.springframework.web.bind.annotation.RequestMapping
17
+ import org.springframework.web.bind.annotation.PostMapping
18
+ import org.springframework.web.bind.annotation.RequestBody
19
+ import org.springframework.web.bind.annotation.GetMapping
20
+ import org.springframework.web.bind.annotation.PathVariable
21
+ import org.springframework.web.bind.annotation.PutMapping
22
+ import org.springframework.web.bind.annotation.RequestParam
23
+ import org.springframework.web.bind.annotation.ModelAttribute
15
24
import com.baomidou.mybatisplus.extension.plugins.pagination.Page
16
25
import com.wansenai.dto.financial.AddOrUpdateAdvanceChargeDTO
17
26
import com.wansenai.dto.financial.QueryAdvanceChargeDTO
18
27
import com.wansenai.service.financial.AdvanceChargeService
19
28
import com.wansenai.utils.response.Response
20
29
import com.wansenai.vo.financial.AdvanceChargeDetailVO
21
30
import com.wansenai.vo.financial.AdvanceChargeVO
22
- import org.springframework.web.bind.annotation.GetMapping
23
- import org.springframework.web.bind.annotation.PathVariable
24
- import org.springframework.web.bind.annotation.PostMapping
25
- import org.springframework.web.bind.annotation.PutMapping
26
- import org.springframework.web.bind.annotation.RequestBody
27
- import org.springframework.web.bind.annotation.RequestMapping
28
- import org.springframework.web.bind.annotation.RequestParam
29
- import org.springframework.web.bind.annotation.RestController
31
+ import jakarta.servlet.http.HttpServletResponse
30
32
31
33
@RestController
32
34
@RequestMapping(" /financial/advance-charge" )
@@ -56,4 +58,9 @@ class AdvanceChargeController(private val advanceChargeService: AdvanceChargeSer
56
58
fun updateStatus (@RequestParam(" ids" ) ids : List <Long >, @RequestParam(" status" ) status : Int ) : Response <String > {
57
59
return advanceChargeService.updateAdvanceChargeStatusById(ids, status)
58
60
}
61
+
62
+ @GetMapping(" export" )
63
+ fun export (@ModelAttribute advanceChargeDTO : QueryAdvanceChargeDTO , response : HttpServletResponse ) {
64
+ advanceChargeService.exportAdvanceCharge(advanceChargeDTO, response)
65
+ }
59
66
}
0 commit comments