|
|
@@ -6,6 +6,7 @@ import java.util.List;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.ruoyi.common.core.constant.UserConstants;
|
|
|
@@ -29,6 +30,7 @@ import com.ruoyi.system.service.ISysDeptService;
|
|
|
*
|
|
|
* @author lydgt
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class SysDeptServiceImpl implements ISysDeptService
|
|
|
{
|
|
|
@@ -383,6 +385,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
|
successMsg.append(String.format("%1$s、导入成功;", dept.getDeptName()));
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
+ log.info("导入部门数据异常", e);
|
|
|
failureNum++;
|
|
|
String msg = String.format("%1$s、导入失败:%2$s", importDTO.getDeptName(), e.getMessage());
|
|
|
failureMsg.append(msg);
|