ICSDepartmentApi.java 1.22 KB
package com.huaheng.api.U8.controller;

import com.huaheng.api.U8.domain.ICSDepartmentModel;
import com.huaheng.api.U8.domain.ICSPersonModel;
import com.huaheng.api.U8.service.ICSDepartmentService;
import com.huaheng.framework.aspectj.lang.annotation.Log;
import com.huaheng.framework.aspectj.lang.constant.BusinessType;
import com.huaheng.framework.web.controller.BaseController;
import com.huaheng.framework.web.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/api/department")
@Api(tags = {"department"}, description = "部门档案接口")
public class ICSDepartmentApi extends BaseController {

    @Autowired
    private ICSDepartmentService icsDepartmentService;

    /**
     * 同步部门档案
     */
    //    @RequiresPermissions("api:ICSInventory")
    @Log(title = "部门档案添加", action = BusinessType.INSERT)
    @PostMapping("/ICSDepartmentApi")
    @ResponseBody
    public AjaxResult ICSDepartment(@RequestBody ICSDepartmentModel icsDepartment)
    {
        AjaxResult ajaxResult = icsDepartmentService.ICSDepartment(icsDepartment);
        return ajaxResult;
    }

}