|
@@ -3,15 +3,16 @@ package com.jeeplus.test.reimbursementAccountant.controller;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.jeeplus.aop.logging.annotation.ApiLog;
|
|
|
+import com.jeeplus.sys.utils.StringUtils;
|
|
|
import com.jeeplus.test.reimbursementAccountant.domain.dto.AccountantReimbursementBusinessTwoDTO;
|
|
|
import com.jeeplus.test.reimbursementAccountant.service.AccountantReimbursementBusinessTwoService;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.ResponseEntity;
|
|
|
-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 java.util.Collections;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/accountant/reimbursementBusinessTwo")
|
|
@@ -20,7 +21,7 @@ public class AccountantReimbursementBusinessTwoController {
|
|
|
@Autowired
|
|
|
private AccountantReimbursementBusinessTwoService accountantReimbursementBusinessTwoService;
|
|
|
|
|
|
- @ApiLog("查询五票报销列表")
|
|
|
+ @ApiLog("查询无票报销列表")
|
|
|
@RequestMapping("findListPage")
|
|
|
public ResponseEntity findListPage(AccountantReimbursementBusinessTwoDTO accountantReimbursementBusinessTwoDTO,Page<AccountantReimbursementBusinessTwoDTO> page){
|
|
|
IPage<AccountantReimbursementBusinessTwoDTO> listPage = accountantReimbursementBusinessTwoService.findListPage(page, accountantReimbursementBusinessTwoDTO);
|
|
@@ -40,4 +41,25 @@ public class AccountantReimbursementBusinessTwoController {
|
|
|
accountantReimbursementBusinessTwoService.addData(accountantReimbursementBusinessTwoDTO);
|
|
|
return ResponseEntity.ok("添加成功");
|
|
|
}
|
|
|
+
|
|
|
+ @ApiLog("下拉列表")
|
|
|
+ @RequestMapping("findSelectList")
|
|
|
+ public ResponseEntity findSelectList(){
|
|
|
+ return ResponseEntity.ok(accountantReimbursementBusinessTwoService.findSelectList());
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiLog("绑定")
|
|
|
+ @RequestMapping("modifyBindCode")
|
|
|
+ public ResponseEntity modifyBindCode(@RequestParam("ids")String ids,@RequestParam("businessCode")String businessCode){
|
|
|
+ String[] split = ids.split(",");
|
|
|
+ if(split.length!=0){
|
|
|
+ for (int i = 0; i < split.length; i++) {
|
|
|
+ accountantReimbursementBusinessTwoService.modifyBindCode(split[i],businessCode);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ accountantReimbursementBusinessTwoService.modifyBindCode(ids,businessCode);
|
|
|
+ }
|
|
|
+
|
|
|
+ return ResponseEntity.ok("成功");
|
|
|
+ }
|
|
|
}
|