|
|
|
@ -4,14 +4,18 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
import com.logpm.basicdata.dto.BasicdataFactoryCategoryDTO; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataFactoryCategoryEntity; |
|
|
|
|
import com.logpm.basicdata.excel.BasicdataFactoryCategoryExcel; |
|
|
|
|
import com.logpm.basicdata.mapper.BasicdataFactoryCategoryMapper; |
|
|
|
|
import com.logpm.basicdata.service.IBasicdataFactoryCategoryService; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.excel.util.ExcelUtil; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@ -46,4 +50,12 @@ public class BasicdataFactoryCategoryServiceImpl extends BaseServiceImpl<Basicda
|
|
|
|
|
return R.success("保存成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void exportList(BasicdataFactoryCategoryDTO basicdataFactoryCategoryDTO, HttpServletResponse response) { |
|
|
|
|
List<BasicdataFactoryCategoryExcel> list = baseMapper.exportList(basicdataFactoryCategoryDTO); |
|
|
|
|
|
|
|
|
|
//导出ls
|
|
|
|
|
ExcelUtil.export(response, "工厂三方品类列表导出", "工厂三方品类列表导出", list, BasicdataFactoryCategoryExcel.class); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|