春风项目四线(合箱线、总装线)
yyt
2024-05-06 bbc5784cc34d65e64d639d949e75b978fe07bdb3
jcdm-main/src/main/java/com/jcdm/main/bs/workshop/service/impl/BsWorkshopInfoServiceImpl.java
@@ -1,7 +1,13 @@
package com.jcdm.main.bs.workshop.service.impl;
import java.util.List;
import com.jcdm.common.core.domain.entity.SysUser;
import com.jcdm.common.exception.ServiceException;
import com.jcdm.common.utils.DateUtils;
import com.jcdm.common.utils.SecurityUtils;
import com.jcdm.common.utils.StringUtils;
import com.jcdm.common.utils.bean.BeanValidators;
import com.jcdm.main.bs.workshop.service.IBsWorkshopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -97,4 +103,16 @@
    {
        return bsWorkshopInfoMapper.deleteBsWorkshopInfoById(id);
    }
    @Override
    public String importWrokshop(List<BsWorkshopInfo> userList, Boolean isUpdateSupport, String operName) {
        StringBuilder successMsg = new StringBuilder();
        for (BsWorkshopInfo info : userList) {
            insertBsWorkshopInfo(info);
            successMsg.append("<br/>" + info.getWorkshopName() + " 导入成功");
        }
        return successMsg.toString();
    }
}