Prechádzať zdrojové kódy

修改员工,同步至OA,支出多组织,多职位

river 4 rokov pred
rodič
commit
f38841506d

+ 2 - 5
mec-web/src/main/java/com/ym/mec/web/controller/education/OaContractsController.java

@@ -7,10 +7,7 @@ import com.ym.mec.common.controller.BaseController;
 import com.ym.mec.common.entity.HttpResponseResult;
 import io.swagger.annotations.Api;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-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.ArrayList;
 import java.util.List;
@@ -23,7 +20,7 @@ public class OaContractsController extends BaseController {
     @Autowired
     private ContractService contractService;
 
-    @GetMapping("finance")
+    @PostMapping("finance")
     public HttpResponseResult<String> transferProduceContract(@RequestBody OAFinancialDto financialDto) {
 //        List<CirculationUser> circulationUsers = new ArrayList<>();
 //        CirculationUser circulationUser1 = new CirculationUser();