[add] 物料接收领料单,明细模块增删改查、按模版导出接口
This commit is contained in:
BIN
xinnengyuan/ruoyi-admin/src/main/resources/template/物料接收单模版.docx
Normal file
BIN
xinnengyuan/ruoyi-admin/src/main/resources/template/物料接收单模版.docx
Normal file
Binary file not shown.
BIN
xinnengyuan/ruoyi-admin/src/main/resources/template/物料领料单模版.docx
Normal file
BIN
xinnengyuan/ruoyi-admin/src/main/resources/template/物料领料单模版.docx
Normal file
Binary file not shown.
Binary file not shown.
@ -4,7 +4,10 @@ import cn.hutool.core.io.FileUtil;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.design.service.IDesTechnicalStandardService;
|
||||
import org.dromara.facility.domain.FacMatrix;
|
||||
import org.dromara.facility.service.IFacMatrixService;
|
||||
import org.dromara.facility.service.IFacPhotovoltaicPanelPartsService;
|
||||
import org.dromara.progress.service.IPgsProgressCategoryService;
|
||||
import org.dromara.project.service.IBusProjectService;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
@ -23,6 +26,12 @@ public class DemoTest {
|
||||
@Resource
|
||||
private IFacPhotovoltaicPanelPartsService photovoltaicPanelPartsService;
|
||||
|
||||
@Resource
|
||||
private IPgsProgressCategoryService progressCategoryService;
|
||||
|
||||
@Resource
|
||||
private IFacMatrixService matrixService;
|
||||
|
||||
@Resource
|
||||
private IBusProjectService projectService;
|
||||
|
||||
@ -62,4 +71,12 @@ public class DemoTest {
|
||||
String suffix = FileUtil.getSuffix(originalFilename);
|
||||
System.out.println(suffix);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testTemple() {
|
||||
List<FacMatrix> matrixList = matrixService.lambdaQuery()
|
||||
.eq(FacMatrix::getProjectId, 1906557369562726402L)
|
||||
.list();
|
||||
Boolean result = progressCategoryService.insertByTemplate(1906557369562726402L, matrixList, null);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user