//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.gtiit.shr.controller;

import com.gtiit.shr.common.ResponseResult;
import com.gtiit.shr.common.Result;
import com.gtiit.shr.entity.vo.DeptInfoVo;
import com.gtiit.shr.service.DeptService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/dept"})
public class DeptController {
    @Autowired
    private DeptService deptService;

    @RequestMapping({"/insertBatchDept"})
    public Result insertBatchPerson(@RequestBody List<DeptInfoVo> deptInfoVos) {
        int result = this.deptService.insertBatchPerson(deptInfoVos);
        return result == 0 ? ResponseResult.isError("部门信息保存失败！", (Object)null) : ResponseResult.isOk("部门信息保存成功！", (Object)null);
    }
}
