¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.ruoyi.basic.dto.ProductDto; |
| | | import com.ruoyi.basic.dto.ProductTreeDto; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationDto; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationTreeDto; |
| | | import com.ruoyi.warehouse.pojo.DocumentClassification; |
| | | import com.ruoyi.warehouse.service.DocumentClassificationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "ææ¡£åç±»") |
| | | @RequestMapping("/warehouse/documentClassification") |
| | | public class DocumentClassificationController extends BaseController { |
| | | @Autowired |
| | | private DocumentClassificationService documentClassificationService; |
| | | //æ ç»æ |
| | | @GetMapping("/getList") |
| | | public AjaxResult getList() { |
| | | return AjaxResult.success(documentClassificationService.selectDocumentClassificationList()); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("ææ¡£åç±»-æ·»å ") |
| | | @Log(title = "ææ¡£åç±»-æ·»å ", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody DocumentClassification documentClassification) { |
| | | return AjaxResult.success(documentClassificationService.save(documentClassification)); |
| | | } |
| | | @PutMapping("/update") |
| | | @ApiOperation("ææ¡£åç±»-æ´æ°") |
| | | @Log(title = "ææ¡£åç±»-æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody DocumentClassification documentClassification) { |
| | | return AjaxResult.success(documentClassificationService.updateById(documentClassification)); |
| | | } |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("ææ¡£åç±»å é¤") |
| | | @Log(title = "ææ¡£åç±»å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(documentClassificationService.deleteByIds(ids)); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | |
| | | import com.ruoyi.warehouse.mapper.DocumentationBorrowManagementMapper; |
| | | import com.ruoyi.warehouse.mapper.DocumentationReturnManagementMapper; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.ruoyi.warehouse.pojo.DocumentationReturnManagement; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | import com.ruoyi.warehouse.service.DocumentationBorrowManagementService; |
| | | import com.ruoyi.warehouse.service.WarehouseService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "ææ¡£åé
管ç") |
| | | @RequestMapping("/documentationBorrowManagement") |
| | | public class DocumentationBorrowManagementController extends BaseController { |
| | | @Autowired |
| | | private DocumentationBorrowManagementService documentationBorrowManagementService; |
| | | @Autowired |
| | | private DocumentationBorrowManagementMapper documentationBorrowManagementMapper; |
| | | @Autowired |
| | | private DocumentationReturnManagementMapper documentationReturnManagementMapper; |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("ææ¡£åé
管ç-åé
å页æ¥è¯¢") |
| | | @Log(title = "ææ¡£åé
管ç-åé
å页æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, DocumentationBorrowManagement documentationBorrowManagement) { |
| | | return AjaxResult.success(documentationBorrowManagementService.listPage(page, documentationBorrowManagement)); |
| | | } |
| | | @GetMapping("/list") |
| | | @ApiOperation("ææ¡£åé
管ç-åé
æ¥è¯¢") |
| | | @Log(title = "ææ¡£åé
管ç-åé
æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult list() { |
| | | return AjaxResult.success(documentationBorrowManagementService.listAll()); |
| | | } |
| | | @GetMapping("/listPageReturn") |
| | | @ApiOperation("ææ¡£åé
管ç-å½è¿å页æ¥è¯¢") |
| | | @Log(title = "ææ¡£åé
管ç-å½è¿å页æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPageReturn(Page page, DocumentationReturnManagement documentationReturnManagement) { |
| | | return AjaxResult.success(documentationReturnManagementMapper.listPage(page, documentationReturnManagement)); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("ææ¡£åé
管ç-åé
") |
| | | @Log(title = "ææ¡£åé
管ç-åé
", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody DocumentationBorrowManagement documentationBorrowManagement) { |
| | | return AjaxResult.success(documentationBorrowManagementService.add(documentationBorrowManagement)); |
| | | } |
| | | @PutMapping("/revent") |
| | | @ApiOperation("ææ¡£åé
管ç-å½è¿") |
| | | @Log(title = "ææ¡£åé
管ç-å½è¿", businessType = BusinessType.UPDATE) |
| | | public AjaxResult revent(@RequestBody DocumentationReturnManagement documentationReturnManagement) { |
| | | return AjaxResult.success(documentationBorrowManagementService.reventdbm(documentationReturnManagement)); |
| | | } |
| | | @PutMapping("/update") |
| | | @ApiOperation("ææ¡£åé
管ç-æ´æ°") |
| | | @Log(title = "ææ¡£åé
管ç-æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody DocumentationBorrowManagement documentationBorrowManagement) { |
| | | return AjaxResult.success(documentationBorrowManagementService.updateById(documentationBorrowManagement)); |
| | | } |
| | | @PutMapping("/reventUpdate") |
| | | @ApiOperation("ææ¡£åé
管ç-å½è¿æ´æ°") |
| | | @Log(title = "ææ¡£åé
管ç-å½è¿æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult reventupdate(@RequestBody DocumentationReturnManagement documentationReturnManagement) { |
| | | return AjaxResult.success(documentationReturnManagementMapper.updateById(documentationReturnManagement)); |
| | | } |
| | | @DeleteMapping ("/delete") |
| | | @ApiOperation("ææ¡£åé
管ç-åé
å é¤") |
| | | @Log(title = "ææ¡£åé
管ç-åé
å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(documentationBorrowManagementService.deleteByIds(ids)); |
| | | } |
| | | @DeleteMapping ("/reventDelete") |
| | | @ApiOperation("ææ¡£åé
管ç-å½è¿å é¤") |
| | | @Log(title = "ææ¡£åé
管ç-å½è¿å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult reventdelete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(documentationBorrowManagementService.reventDeleteByIds(ids)); |
| | | } |
| | | @PostMapping("/export") |
| | | @ApiOperation("ææ¡£åé
管ç-åé
导åº") |
| | | @Log(title = "ææ¡£åé
管ç-åé
导åº", businessType = BusinessType.EXPORT) |
| | | public void export(HttpServletResponse response,DocumentationBorrowManagement documentationBorrowManagement) { |
| | | documentationBorrowManagementService.export(response,documentationBorrowManagement); |
| | | } |
| | | @PostMapping("/exportrevent") |
| | | @ApiOperation("ææ¡£åé
管ç-å½è¿å¯¼åº") |
| | | @Log(title = "ææ¡£åé
管ç-å½è¿å¯¼åº", businessType = BusinessType.EXPORT) |
| | | public void exportrevent(HttpServletResponse response, DocumentationReturnManagement documentationReturnManagement) { |
| | | documentationBorrowManagementService.exportrevent(response,documentationReturnManagement); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | import com.ruoyi.warehouse.service.DocumentationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @RequestMapping("/documentation") |
| | | @Api(tags = "ææ¡£ä¿¡æ¯è¡¨") |
| | | public class DocumentationController extends BaseController { |
| | | @Autowired |
| | | private DocumentationService documentationService; |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-å页æ¥è¯¢") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨-å页æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult listPage(Page page, Documentation documentation) { |
| | | IPage<DocumentationDto> list = documentationService.listPage(page, documentation); |
| | | return AjaxResult.success(list); |
| | | } |
| | | @GetMapping("/list") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨æ¥è¯¢") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult list() { |
| | | List<DocumentationDto> list = documentationService.listAll(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-æ·»å ") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨-æ·»å ", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody Documentation documentation) { |
| | | return AjaxResult.success(documentationService.save(documentation)); |
| | | } |
| | | @PutMapping("/update") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-æ´æ°") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨-æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody Documentation documentation) { |
| | | return AjaxResult.success(documentationService.updateById(documentation)); |
| | | } |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-å é¤") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨-å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(documentationService.deleteByIds(ids)); |
| | | } |
| | | |
| | | @PostMapping("/export") |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-导åº") |
| | | @Log(title = "ææ¡£ä¿¡æ¯è¡¨-导åº", businessType = BusinessType.EXPORT) |
| | | public void export(HttpServletResponse response,Documentation documentation ) { |
| | | documentationService.export(response,documentation); |
| | | } |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-ç»è®¡") |
| | | @GetMapping("/overview") |
| | | public AjaxResult getOverviewStatistics() { |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put("totalDocsCount", documentationService.getTotalDocsCount()); |
| | | result.put("categoryNumCount", documentationService.getCategoryNumCount()); |
| | | result.put("borrowedDocsCount", documentationService.getBorrowedDocsCount()); |
| | | result.put("monthlyAddedDocsCount", documentationService.getMonthlyAddedDocsCount()); |
| | | return AjaxResult.success(result); |
| | | } |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-åç±»ç»è®¡") |
| | | @GetMapping("/category") |
| | | public AjaxResult getCategoryDistribution() { |
| | | return AjaxResult.success(documentationService.getCategoryDistribution()); |
| | | } |
| | | @ApiOperation("ææ¡£ä¿¡æ¯è¡¨-ç¶æç»è®¡") |
| | | @GetMapping("/status") |
| | | public AjaxResult getStatusDistribution() { |
| | | return AjaxResult.success(documentationService.getStatusDistribution()); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.pojo.AccountFile; |
| | | import com.ruoyi.account.service.AccountFileService; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.pojo.DocumentationFile; |
| | | import com.ruoyi.warehouse.service.DocumentationFileService; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ææ¡£éä»¶ |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/documentation/documentationFile") |
| | | public class DocumentationFileController { |
| | | |
| | | |
| | | @Resource |
| | | private DocumentationFileService documentationFileService; |
| | | |
| | | /** |
| | | * æ°å¢ |
| | | * @param documentationFile |
| | | * @return |
| | | */ |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody DocumentationFile documentationFile) { |
| | | return AjaxResult.success(documentationFileService.save(documentationFile)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/del") |
| | | public AjaxResult delDocumentationFile(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)){ |
| | | return AjaxResult.error("è¯·éæ©è³å°ä¸æ¡æ°æ®"); |
| | | } |
| | | //å 餿£éªéä»¶ |
| | | return AjaxResult.success(documentationFileService.removeBatchByIds(ids)); |
| | | } |
| | | |
| | | /** |
| | | *æ¥è¯¢ |
| | | * @param |
| | | * @param documentationFile |
| | | * @return |
| | | */ |
| | | @GetMapping("/listPage") |
| | | public AjaxResult documentationFileListPage(DocumentationFile documentationFile) { |
| | | return AjaxResult.success(documentationFileService.documentationFileListPage( documentationFile)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesService; |
| | | import com.ruoyi.warehouse.service.WarehouseService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "ä»åº") |
| | | @RequestMapping("/warehouse") |
| | | public class WarehouseController extends BaseController { |
| | | @Autowired |
| | | private WarehouseService warehouseService; |
| | | @GetMapping("/tree") |
| | | @ApiOperation("ä»åº-æ¥è¯¢æ ") |
| | | @Log(title = "ä»åº-æ¥è¯¢æ ", businessType = BusinessType.OTHER) |
| | | public AjaxResult listTree() { |
| | | return AjaxResult.success(warehouseService.findListTree()); |
| | | } |
| | | @GetMapping("/list") |
| | | @ApiOperation("ä»åº-æ¥è¯¢") |
| | | @Log(title = "ä»åº-æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult list(Warehouse warehouse) { |
| | | return AjaxResult.success(warehouseService.findList(warehouse)); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("ä»åº-æ·»å ") |
| | | @Log(title = "ä»åº-æ·»å ", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody Warehouse warehouse) { |
| | | return AjaxResult.success(warehouseService.save(warehouse)); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @ApiOperation("ä»åº-æ´æ°") |
| | | @Log(title = "ä»åº-æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody Warehouse warehouse) { |
| | | return AjaxResult.success(warehouseService.updateById(warehouse)); |
| | | } |
| | | |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("ä»åº-å é¤") |
| | | @Log(title = "ä»åº-å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(warehouseService.deleteByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "ååè´§æ¶") |
| | | @RequestMapping("/warehouse/goodsShelves") |
| | | public class WarehouseGoodsShelvesController extends BaseController { |
| | | @Autowired |
| | | private WarehouseGoodsShelvesService warehouseGoodsShelvesService; |
| | | |
| | | @GetMapping("/listById") |
| | | @ApiOperation("ååè´§æ¶-æ¥è¯¢") |
| | | @Log(title = "ååè´§æ¶-æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult listById(WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | List<WarehouseGoodsShelvesDto> list = warehouseGoodsShelvesService.findList(warehouseGoodsShelves); |
| | | return AjaxResult.success(list); |
| | | } |
| | | @PostMapping("/add") |
| | | @ApiOperation("ååè´§æ¶-æ·»å ") |
| | | @Log(title = "ååè´§æ¶-æ·»å ", businessType = BusinessType.INSERT) |
| | | public AjaxResult add(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | return AjaxResult.success(warehouseGoodsShelvesService.add(warehouseGoodsShelves)); |
| | | } |
| | | @PutMapping("/update") |
| | | @ApiOperation("ååè´§æ¶-æ´æ°") |
| | | @Log(title = "ååè´§æ¶-æ´æ°", businessType = BusinessType.UPDATE) |
| | | public AjaxResult update(@RequestBody WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | return AjaxResult.success(warehouseGoodsShelvesService.updateRowcolById(warehouseGoodsShelves)); |
| | | } |
| | | @DeleteMapping("/delete") |
| | | @ApiOperation("ååè´§æ¶-å é¤") |
| | | @Log(title = "ååè´§æ¶-å é¤", businessType = BusinessType.DELETE) |
| | | public AjaxResult delete(@RequestBody List<Long> ids) { |
| | | if(CollectionUtils.isEmpty(ids)) return AjaxResult.error("è¯·ä¼ å
¥è¦å é¤çID"); |
| | | return AjaxResult.success(warehouseGoodsShelvesService.deleteByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesRowcolDto; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesRowcolService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "ååè´§æ¶è¡å") |
| | | @RequestMapping("/warehouse/goodsShelvesRowcol") |
| | | public class WarehouseGoodsShelvesRowcolController extends BaseController { |
| | | @Autowired |
| | | private WarehouseGoodsShelvesRowcolService warehouseGoodsShelvesRowcolService; |
| | | @GetMapping("/list") |
| | | @ApiOperation("ååè´§æ¶è¡å-æ¥è¯¢") |
| | | @Log(title = "ååè´§æ¶è¡å-æ¥è¯¢", businessType = BusinessType.OTHER) |
| | | public AjaxResult list(WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) { |
| | | |
| | | List<WarehouseGoodsShelvesRowcolDto> list = warehouseGoodsShelvesRowcolService.getList(warehouseGoodsShelvesRowcol); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.warehouse.pojo.DocumentClassification; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DocumentClassificationDto extends DocumentClassification { |
| | | |
| | | private List<DocumentClassification> documentClassificationList; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class DocumentClassificationTreeDto { |
| | | private Long id; |
| | | private Long parentId; |
| | | private String category; |
| | | private List<DocumentClassificationTreeDto> children; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DocumentationBorrowManagementDto extends DocumentationBorrowManagement { |
| | | /** |
| | | * ææ¡£åç§° |
| | | */ |
| | | @Excel(name = "ææ¡£åç§°") |
| | | private String docName; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DocumentationDto extends Documentation { |
| | | /** |
| | | * ç±»å«åç§° |
| | | */ |
| | | @Excel(name = "ç±»å«åç§°") |
| | | private String category; |
| | | /** |
| | | * ä½ç½®ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "ä½ç½®ä¿¡æ¯") |
| | | private String locationInfo; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.warehouse.pojo.DocumentationReturnManagement; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class DocumentationReturnManagementDto extends DocumentationReturnManagement { |
| | | /** |
| | | * ææ¡£åç§° |
| | | */ |
| | | private String docName; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.time.LocalDateTime; |
| | | |
| | | public class ReturnExportDto { |
| | | private String id; // è®°å½ç¼å· |
| | | @Excel(name = "ææ¡£åç§°") |
| | | private String docName; // ææ¡£åç§° |
| | | @Excel(name = "ååé
人") |
| | | private String borrower; // åé
人 |
| | | @Excel(name = "åé
æ¶é´", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDateTime borrowDate; // åé
æ¶é´ |
| | | @Excel(name = "å½è¿äºº") |
| | | @NotBlank(message = "å½è¿äººä¸è½ä¸ºç©º!!") |
| | | private String returner; // å½è¿äºº |
| | | @Excel(name = "å½è¿æ¶é´", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDateTime returnDate; // å½è¿æ¶é´ |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.warehouse.pojo.*; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class WarehouseDto extends Warehouse { |
| | | |
| | | private String goodsShelvesName; |
| | | private String category; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | |
| | | import java.util.List; |
| | | |
| | | public class WarehouseGoodsShelvesDto extends WarehouseGoodsShelves { |
| | | private String warehouseName; |
| | | private String docName; |
| | | private String docNumber; |
| | | private String category; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class WarehouseGoodsShelvesRowcolDto extends WarehouseGoodsShelvesRowcol { |
| | | private String warehouseName; |
| | | private String name; |
| | | private List<DocumentationDto> documentationDtoList; |
| | | private String category; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.dto; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class WarehouseTreeDto { |
| | | private Long id; |
| | | private String label; |
| | | private List<WarehouseTreeDto> children; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.warehouse.pojo.DocumentClassification; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocument_classification(ææ¡£å类表)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-15 10:44:23 |
| | | * @Entity com.ruoyi.warehouse.pojo.DocumentClassification |
| | | */ |
| | | @Mapper |
| | | public interface DocumentClassificationMapper extends BaseMapper<DocumentClassification> { |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto; |
| | | import com.ruoyi.warehouse.dto.ReturnExportDto; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation_borrow_management(ææ¡£åé
-å½è¿è¡¨)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-14 15:55:45 |
| | | * @Entity com.ruoyi.warehouse.pojo.DocumentationBorrowManagement |
| | | */ |
| | | @Mapper |
| | | public interface DocumentationBorrowManagementMapper extends BaseMapper<DocumentationBorrowManagement> { |
| | | |
| | | IPage<DocumentationBorrowManagement> listPage(Page page, @Param("documentationBorrowManagement") DocumentationBorrowManagement documentationBorrowManagement); |
| | | |
| | | List<DocumentationBorrowManagementDto> export(@Param("documentationBorrowManagement") DocumentationBorrowManagement documentationBorrowManagement); |
| | | |
| | | List<DocumentationBorrowManagementDto> list(@Param("ew") Wrapper<DocumentationBorrowManagementDto> queryWrapper); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.account.pojo.AccountFile; |
| | | import com.ruoyi.warehouse.pojo.DocumentationFile; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Mapper |
| | | public interface DocumentationFileMapper extends BaseMapper<DocumentationFile> { |
| | | |
| | | List<DocumentationFile> documentationFileListPage(@Param("documentationFile") DocumentationFile documentationFile); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.procurementrecord.dto.ProcurementRecordOutPageDto; |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation(ææ¡£ä¿¡æ¯è¡¨)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-14 14:05:49 |
| | | * @Entity com.ruoyi.warehouse.pojo.Documentation |
| | | */ |
| | | @Mapper |
| | | public interface DocumentationMapper extends BaseMapper<Documentation> { |
| | | |
| | | IPage<DocumentationDto> listPage(Page page, @Param("documentation") Documentation documentation); |
| | | List<DocumentationDto> list(); |
| | | List<DocumentationDto> listByDocumentClassificationId(@Param("documentClassificationId") Long documentClassificationId); |
| | | List<DocumentationDto> listBywarehouseGoodsShelvesRowcolId(@Param("warehouseGoodsShelvesRowcolId") Long warehouseGoodsShelvesRowcolId); |
| | | @Select("select count(*) from documentation") |
| | | Integer countTotalDocs(); |
| | | @Select("select count(distinct document_classification_id) from documentation") |
| | | Integer countCategoryNum(); |
| | | @Select("select count(*) from documentation where doc_status = 'ååº'") |
| | | Integer countBorrowedDocs(); |
| | | @Select("select count(*) from documentation where create_time >= date_format(now(), '%Y-%m-01') and create_time < date_format(now(), '%Y-%m-%d')") |
| | | Integer countMonthlyAddedDocs(); |
| | | |
| | | @Select("select dc.category, count(*) as count from documentation doc left join document_classification dc on doc.document_classification_id = dc.id group by dc.category") |
| | | List<Map<String, Object>> countCategoryDistribution(); |
| | | |
| | | @Select("select doc_status as docStatus, count(*) as count from documentation group by doc_status") |
| | | List<Map<String, Object>> countStatusDistribution(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto; |
| | | import com.ruoyi.warehouse.dto.ReturnExportDto; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.ruoyi.warehouse.pojo.DocumentationReturnManagement; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation_borrow_management(ææ¡£åé
-å½è¿è¡¨)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-14 15:55:45 |
| | | * @Entity com.ruoyi.warehouse.pojo.DocumentationBorrowManagement |
| | | */ |
| | | @Mapper |
| | | public interface DocumentationReturnManagementMapper extends BaseMapper<DocumentationReturnManagement> { |
| | | |
| | | IPage<DocumentationReturnManagement> listPage(Page page, @Param("documentationReturnManagement") DocumentationReturnManagement documentationReturnManagement); |
| | | // |
| | | // List<DocumentationReturnManagementDto> export(@Param("documentationReturnManagement") DocumentationReturnManagement documentationReturnManagement); |
| | | // |
| | | List<ReturnExportDto> exportrevent(@Param("documentationReturnManagement") DocumentationReturnManagement documentationReturnManagement); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * |
| | | * @description é对表ãwarehouse_goods_shelves(ä»åºè´§æ¶è¡¨)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-13 11:49:02 |
| | | * @Entity warehouse.pojo.WarehouseGoodsShelves |
| | | */ |
| | | @Mapper |
| | | public interface WarehouseGoodsShelvesMapper extends BaseMapper<WarehouseGoodsShelves> { |
| | | |
| | | List<WarehouseGoodsShelvesDto> findList(@Param("warehouseGoodsShelves") WarehouseGoodsShelves warehouseGoodsShelves); |
| | | List<WarehouseGoodsShelvesDto> listAll(@Param("warehouseGoodsShelves") WarehouseGoodsShelves warehouseGoodsShelves); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesRowcolDto; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse_goods_shelves_rowcol(ä»åºè´§æ¶å±ï¼å表)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-13 11:49:02 |
| | | * @Entity warehouse.pojo.WarehouseGoodsShelvesRowcol |
| | | */ |
| | | @Mapper |
| | | public interface WarehouseGoodsShelvesRowcolMapper extends BaseMapper<WarehouseGoodsShelvesRowcol> { |
| | | |
| | | List<WarehouseGoodsShelvesRowcolDto> findList(@Param("warehouseGoodsShelvesRowcol") WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.mapper; |
| | | |
| | | |
| | | import com.ruoyi.warehouse.dto.WarehouseDto; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse(ä»åºè¡¨)ãçæ°æ®åºæä½Mapper |
| | | * @createDate 2025-08-13 11:49:02 |
| | | * @Entity warehouse.pojo.Warehouse |
| | | */ |
| | | @Mapper |
| | | public interface WarehouseMapper extends BaseMapper<Warehouse> { |
| | | List<WarehouseDto> findList(@Param("warehouse") Warehouse warehouse); |
| | | List<Warehouse> listAll(@Param("warehouse") Warehouse warehouse); |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ææ¡£å类表 |
| | | * @TableName document_classification |
| | | */ |
| | | @TableName(value ="document_classification") |
| | | @Data |
| | | @ApiModel(value = "ææ¡£å类表") |
| | | public class DocumentClassification implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç±»å«åç§° |
| | | */ |
| | | private String category; |
| | | |
| | | /** |
| | | * ç¶ç±»id |
| | | */ |
| | | private Long parentId; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·id |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ææ¡£ä¿¡æ¯è¡¨ |
| | | * @TableName documentation |
| | | */ |
| | | @TableName(value ="documentation") |
| | | @Data |
| | | @ApiModel(value = "ææ¡£ä¿¡æ¯è¡¨") |
| | | public class Documentation implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "ææ¡£ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ç±»å«åç§°id |
| | | */ |
| | | @Excel(name = "ç±»å«åç§°id") |
| | | @ApiModelProperty(value = "ç±»å«åç§°id") |
| | | private Long documentClassificationId; |
| | | |
| | | /** |
| | | * ææ¡£åç§° |
| | | */ |
| | | @Excel(name = "ææ¡£åç§°") |
| | | @ApiModelProperty(value = "ææ¡£åç§°") |
| | | private String docName; |
| | | |
| | | /** |
| | | * ææ¡£ç¼å· |
| | | */ |
| | | @Excel(name = "ææ¡£ç¼å·") |
| | | @ApiModelProperty(value = "ææ¡£ç¼å·") |
| | | private String docNumber; |
| | | |
| | | /** |
| | | * 年份 |
| | | */ |
| | | @Excel(name = "年份") |
| | | @ApiModelProperty(value = "年份") |
| | | private Long year; |
| | | |
| | | /** |
| | | * 责任人 |
| | | */ |
| | | @Excel(name = "责任人") |
| | | @ApiModelProperty(value = "责任人") |
| | | private String responsiblePerson; |
| | | |
| | | /** |
| | | * ææ¡£æ¾ç½®ä½ç½® |
| | | */ |
| | | @Excel(name = "ææ¡£æ¾ç½®ä½ç½®") |
| | | @ApiModelProperty(value = "ææ¡£æ¾ç½®ä½ç½®") |
| | | private Long warehouseGoodsShelvesRowcolId; |
| | | |
| | | /** |
| | | * ææ¡£æ¥æ |
| | | */ |
| | | |
| | | @Excel(name = "ææ¡£æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @ApiModelProperty(value = "ææ¡£æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime docDate; |
| | | |
| | | /** |
| | | * ä¿ç®¡æé |
| | | */ |
| | | @Excel(name = "ä¿ç®¡æé") |
| | | @ApiModelProperty(value = "ä¿ç®¡æé") |
| | | private Long retentionPeriod; |
| | | |
| | | /** |
| | | * ä¿å¯çº§å« |
| | | */ |
| | | @Excel(name = "ä¿å¯çº§å«") |
| | | @ApiModelProperty(value = "ä¿å¯çº§å«") |
| | | private String securityLevel; |
| | | |
| | | /** |
| | | * ä»½æ° |
| | | */ |
| | | @Excel(name = "份æ°") |
| | | @ApiModelProperty(value = "份æ°") |
| | | private Long copyCount; |
| | | |
| | | /** |
| | | * é¡µæ° |
| | | */ |
| | | @Excel(name = "页æ°") |
| | | @ApiModelProperty(value = "页æ°") |
| | | private Long pageCount; |
| | | |
| | | /** |
| | | * ææ¡£ç±»å« |
| | | */ |
| | | @Excel(name = "ææ¡£ç±»å«") |
| | | @ApiModelProperty(value = "ææ¡£ç±»å«") |
| | | private String docCategory; |
| | | |
| | | /** |
| | | * ææ¡£ç§ç±» |
| | | */ |
| | | @Excel(name = "ææ¡£ç§ç±»") |
| | | @ApiModelProperty(value = "ææ¡£ç§ç±»") |
| | | private String docType; |
| | | |
| | | /** |
| | | * ç´§æ¥ç¨åº¦ |
| | | */ |
| | | @Excel(name = "ç´§æ¥ç¨åº¦") |
| | | @ApiModelProperty(value = "ç´§æ¥ç¨åº¦") |
| | | private String urgencyLevel; |
| | | |
| | | /** |
| | | * ææ¡£ç¶æ |
| | | */ |
| | | @Excel(name = "ææ¡£ç¶æ") |
| | | @ApiModelProperty(value = "ææ¡£ç¶æ") |
| | | private String docStatus; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @Excel(name = "夿³¨") |
| | | @ApiModelProperty(value = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.dto.DateQueryDto; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | /** |
| | | * ææ¡£åé
-å½è¿è¡¨ |
| | | * @TableName documentation_borrow_management |
| | | */ |
| | | @TableName(value ="documentation_borrow_management") |
| | | @Data |
| | | @ApiModel(value = "ææ¡£åé
表") |
| | | public class DocumentationBorrowManagement extends DateQueryDto implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ææ¡£id |
| | | */ |
| | | @ApiModelProperty(value = "ææ¡£id") |
| | | private Long documentationId; |
| | | |
| | | /** |
| | | * åé
人 |
| | | */ |
| | | @ApiModelProperty(value = "åé
人") |
| | | @Excel(name = "åé
人") |
| | | private String borrower; |
| | | /** |
| | | * å½è¿äºº |
| | | */ |
| | | @ApiModelProperty(value = "å½è¿äºº") |
| | | @Excel(name = "å½è¿äºº") |
| | | private String returner; |
| | | |
| | | /** |
| | | * åé
ç®ç |
| | | */ |
| | | @Excel(name = "åé
ç®ç") |
| | | @ApiModelProperty(value = "åé
ç®ç") |
| | | private String borrowPurpose; |
| | | |
| | | /** |
| | | * åé
æ¥æ |
| | | */ |
| | | |
| | | @ApiModelProperty(value = "åé
æ¥æ") |
| | | @Excel(name = "åé
æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate borrowDate; |
| | | |
| | | /** |
| | | * åºå½è¿æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "åºå½è¿æ¥æ") |
| | | @Excel(name = "åºå½è¿æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate dueReturnDate; |
| | | |
| | | /** |
| | | * å®é
å½è¿æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "å®é
å½è¿æ¥æ") |
| | | @Excel(name = "å®é
å½è¿æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate returnDate; |
| | | |
| | | /** |
| | | * åé
ç¶æ |
| | | */ |
| | | @ApiModelProperty(value = "åé
ç¶æ") |
| | | @Excel(name = "åé
ç¶æ") |
| | | private String borrowStatus; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @Excel(name = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·id |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * ææ¡£ä¿¡æ¯è¡¨--éä»¶ |
| | | * documentation_file |
| | | */ |
| | | @TableName(value = "documentation_file") |
| | | @Data |
| | | public class DocumentationFile implements Serializable { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * åºå· |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | @ApiModelProperty(value = "æä»¶åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "æä»¶è·¯å¾") |
| | | private String url; |
| | | |
| | | @ApiModelProperty(value = "æä»¶å¤§å°") |
| | | private Long fileSize; |
| | | |
| | | @ApiModelProperty(value = "ææ¡£ID") |
| | | @NotBlank(message = "ææ¡£idä¸è½ä¸ºç©º!") |
| | | private Long documentationId; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | @ApiModelProperty(value = "åå»ºç¨æ·") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | @ApiModelProperty(value = "ä¿®æ¹ç¨æ·") |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | @ApiModelProperty(value = "ç§æ·ID") |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.dto.DateQueryDto; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * ææ¡£åé
-å½è¿è¡¨ |
| | | * @TableName documentation_return_management |
| | | */ |
| | | @TableName(value ="documentation_return_management") |
| | | @Data |
| | | @ApiModel(value = "ææ¡£å½è¿è¡¨") |
| | | public class DocumentationReturnManagement extends DateQueryDto implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ææ¡£id |
| | | */ |
| | | @ApiModelProperty(value = "ææ¡£id") |
| | | private Long documentationId; |
| | | /** |
| | | * åé
id |
| | | */ |
| | | private Long borrowId; |
| | | /** |
| | | * åé
人 |
| | | */ |
| | | @ApiModelProperty(value = "åé
人") |
| | | @Excel(name = "åé
人") |
| | | private String borrower; |
| | | /** |
| | | * å½è¿äºº |
| | | */ |
| | | @ApiModelProperty(value = "å½è¿äºº") |
| | | @Excel(name = "å½è¿äºº") |
| | | private String returner; |
| | | |
| | | /** |
| | | * åé
ç®ç |
| | | */ |
| | | @Excel(name = "åé
ç®ç") |
| | | @ApiModelProperty(value = "åé
ç®ç") |
| | | private String borrowPurpose; |
| | | |
| | | /** |
| | | * åé
æ¥æ |
| | | */ |
| | | |
| | | @ApiModelProperty(value = "åé
æ¥æ") |
| | | @Excel(name = "åé
æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private LocalDate borrowDate; |
| | | |
| | | /** |
| | | * åºå½è¿æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "åºå½è¿æ¥æ") |
| | | @Excel(name = "åºå½è¿æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate dueReturnDate; |
| | | |
| | | /** |
| | | * å®é
å½è¿æ¥æ |
| | | */ |
| | | @ApiModelProperty(value = "å®é
å½è¿æ¥æ") |
| | | @Excel(name = "å®é
å½è¿æ¥æ", dateFormat = "yyyy-MM-dd", width = 30) |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private LocalDate returnDate; |
| | | |
| | | /** |
| | | * åé
ç¶æ |
| | | */ |
| | | @ApiModelProperty(value = "åé
ç¶æ") |
| | | @Excel(name = "åé
ç¶æ") |
| | | private String borrowStatus; |
| | | |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @Excel(name = "夿³¨") |
| | | private String remark; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·id |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ä»åºè¡¨ |
| | | * @TableName warehouse |
| | | */ |
| | | @TableName(value ="warehouse") |
| | | @Data |
| | | @ApiModel |
| | | public class Warehouse implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * ä»åºåç§° |
| | | */ |
| | | private String warehouseName; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ä»åºè´§æ¶è¡¨ |
| | | * @TableName warehouse_goods_shelves |
| | | */ |
| | | @TableName(value ="warehouse_goods_shelves") |
| | | @Data |
| | | @ApiModel |
| | | public class WarehouseGoodsShelves implements Serializable { |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * è´§æ¶åç§° |
| | | */ |
| | | private String name; |
| | | /** |
| | | * 屿° |
| | | */ |
| | | @TableField("`row`") |
| | | private Long row; |
| | | |
| | | /** |
| | | * åæ° |
| | | */ |
| | | @TableField("`col`") |
| | | private Long col; |
| | | |
| | | /** |
| | | * ä»åºid |
| | | */ |
| | | private Long warehouseId; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.pojo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Date; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * ä»åºè´§æ¶å±ï¼å表 |
| | | * @TableName warehouse_goods_shelves_rowcol |
| | | */ |
| | | @TableName(value ="warehouse_goods_shelves_rowcol") |
| | | @Data |
| | | @ApiModel(value = "ä»åºè´§æ¶å±ï¼å表") |
| | | public class WarehouseGoodsShelvesRowcol implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | /** |
| | | * |
| | | */ |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 屿° |
| | | */ |
| | | @TableField("`row`") |
| | | private Long row; |
| | | |
| | | /** |
| | | * åæ° |
| | | */ |
| | | @TableField("`col`") |
| | | private Long col; |
| | | |
| | | /** |
| | | * è´§æ¶id |
| | | */ |
| | | private Long warehouseGoodsShelvesId; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private LocalDateTime createTime; |
| | | |
| | | /** |
| | | * åå»ºç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer createUser; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT_UPDATE) |
| | | private LocalDateTime updateTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ· |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Integer updateUser; |
| | | |
| | | /** |
| | | * ç§æ·ID |
| | | */ |
| | | @TableField(fill = FieldFill.INSERT) |
| | | private Long tenantId; |
| | | /** |
| | | * 夿³¨ |
| | | */ |
| | | private String remark; |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationDto; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationTreeDto; |
| | | import com.ruoyi.warehouse.pojo.DocumentClassification; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocument_classification(ææ¡£å类表)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-15 10:44:23 |
| | | */ |
| | | public interface DocumentClassificationService extends IService<DocumentClassification> { |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | List<DocumentClassificationTreeDto> selectDocumentClassificationList(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.warehouse.pojo.DocumentationReturnManagement; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation_borrow_management(ææ¡£åé
-å½è¿è¡¨)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-14 15:55:45 |
| | | */ |
| | | public interface DocumentationBorrowManagementService extends IService<DocumentationBorrowManagement> { |
| | | |
| | | IPage<DocumentationBorrowManagement> listPage(Page page, DocumentationBorrowManagement documentationBorrowManagement); |
| | | |
| | | |
| | | boolean add(DocumentationBorrowManagement documentationBorrowManagement); |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | boolean reventdbm(DocumentationReturnManagement documentationReturnManagement); |
| | | |
| | | boolean reventDeleteByIds(List<Long> ids); |
| | | |
| | | void export(HttpServletResponse response, DocumentationBorrowManagement documentationBorrowManagement); |
| | | |
| | | void exportrevent(HttpServletResponse response, DocumentationReturnManagement documentationReturnManagement); |
| | | |
| | | List<DocumentationBorrowManagementDto> listAll(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.account.pojo.AccountFile; |
| | | import com.ruoyi.warehouse.pojo.DocumentationFile; |
| | | |
| | | import java.util.List; |
| | | |
| | | public interface DocumentationFileService extends IService<DocumentationFile> { |
| | | |
| | | List<DocumentationFile> documentationFileListPage(DocumentationFile documentationFile); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation(ææ¡£ä¿¡æ¯è¡¨)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-14 14:05:49 |
| | | */ |
| | | public interface DocumentationService extends IService<Documentation> { |
| | | |
| | | IPage<DocumentationDto> listPage(Page page, Documentation documentation); |
| | | |
| | | void export(HttpServletResponse response,Documentation documentation); |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | List<DocumentationDto> listAll(); |
| | | Integer getTotalDocsCount(); |
| | | |
| | | Integer getCategoryNumCount(); |
| | | |
| | | Integer getBorrowedDocsCount(); |
| | | |
| | | Integer getMonthlyAddedDocsCount(); |
| | | |
| | | |
| | | List<Map<String, Object>> getCategoryDistribution(); |
| | | |
| | | |
| | | List<Map<String, Object>> getStatusDistribution(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesRowcolDto; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse_goods_shelves_rowcol(ä»åºè´§æ¶å±ï¼å表)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | public interface WarehouseGoodsShelvesRowcolService extends IService<WarehouseGoodsShelvesRowcol> { |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | |
| | | List<WarehouseGoodsShelvesRowcolDto> getList(WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol); |
| | | |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse_goods_shelves(ä»åºè´§æ¶è¡¨)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | public interface WarehouseGoodsShelvesService extends IService<WarehouseGoodsShelves> { |
| | | |
| | | |
| | | boolean add(WarehouseGoodsShelves warehouseGoodsShelves); |
| | | |
| | | boolean updateRowcolById(WarehouseGoodsShelves warehouseGoodsShelves); |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | List<WarehouseGoodsShelvesDto> findList(WarehouseGoodsShelves warehouseGoodsShelves); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.warehouse.dto.WarehouseDto; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.dto.WarehouseTreeDto; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse(ä»åºè¡¨)ãçæ°æ®åºæä½Service |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | public interface WarehouseService extends IService<Warehouse> { |
| | | |
| | | boolean deleteByIds(List<Long> ids); |
| | | |
| | | List<Warehouse> findList(Warehouse warehouse); |
| | | |
| | | List<WarehouseTreeDto> findListTree(); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.basic.dto.ProductTreeDto; |
| | | import com.ruoyi.basic.pojo.Product; |
| | | import com.ruoyi.common.utils.bean.BeanUtils; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationDto; |
| | | import com.ruoyi.warehouse.dto.DocumentClassificationTreeDto; |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.mapper.DocumentationMapper; |
| | | import com.ruoyi.warehouse.pojo.DocumentClassification; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.service.DocumentClassificationService; |
| | | import com.ruoyi.warehouse.mapper.DocumentClassificationMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocument_classification(ææ¡£å类表)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-15 10:44:23 |
| | | */ |
| | | @Service |
| | | public class DocumentClassificationServiceImpl extends ServiceImpl<DocumentClassificationMapper, DocumentClassification> |
| | | implements DocumentClassificationService{ |
| | | @Autowired |
| | | private DocumentationMapper documentationMapper; |
| | | @Autowired |
| | | private DocumentClassificationMapper documentClassificationMapper; |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | List<DocumentClassification> list = documentClassificationMapper.selectList(new LambdaQueryWrapper<DocumentClassification>().in(DocumentClassification::getId, ids)); |
| | | for (DocumentClassification documentClassification : list) { |
| | | //妿æ¯é¡¹çç¶id为空ï¼è¯´ææ¯æ ¹èç¹ï¼éè¦å é¤ææ¡£ä¿¡æ¯è¡¨ä¸çæ°æ® |
| | | List<DocumentationDto> documentationDtos = documentationMapper.listByDocumentClassificationId(documentClassification.getId()); |
| | | if (CollectionUtils.isNotEmpty(documentationDtos)){ |
| | | throw new RuntimeException("åå¨ææ¡£ä¿¡æ¯ï¼ä¸è½å é¤"); |
| | | } |
| | | documentClassificationMapper.deleteById(documentClassification.getId()); |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public List<DocumentClassificationTreeDto> selectDocumentClassificationList() { |
| | | // æ¥è¯¢æ ¹èç¹ï¼parentId 为 nullï¼ |
| | | LambdaQueryWrapper<DocumentClassification> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.isNull(DocumentClassification::getParentId); |
| | | |
| | | // æ¥è¯¢æ ¹èç¹å表 |
| | | List<DocumentClassification> rootList = baseMapper.selectList(queryWrapper); |
| | | |
| | | // 转æ¢ä¸ºæ èç¹å¹¶éå½æå»ºåæ |
| | | List<DocumentClassificationTreeDto> tree = new ArrayList<>(); |
| | | for (DocumentClassification documentClassification : rootList) { |
| | | DocumentClassificationTreeDto node = convertToTreeDto(documentClassification); |
| | | node.setChildren(buildDocumentChildrenNodes(documentClassification.getId())); |
| | | tree.add(node); |
| | | } |
| | | return tree; |
| | | } |
| | | // éå½æå»ºåèç¹ |
| | | private List<DocumentClassificationTreeDto> buildDocumentChildrenNodes(Long parentId) { |
| | | // æ¥è¯¢å½åç¶èç¹çåèç¹ |
| | | LambdaQueryWrapper<DocumentClassification> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(DocumentClassification::getParentId, parentId); |
| | | List<DocumentClassification> childList = baseMapper.selectList(queryWrapper); |
| | | |
| | | // 转æ¢åèç¹å¹¶éå½æå»ºå®ä»¬çåæ |
| | | List<DocumentClassificationTreeDto> children = new ArrayList<>(); |
| | | for (DocumentClassification child : childList) { |
| | | DocumentClassificationTreeDto childNode = convertToTreeDto(child); |
| | | childNode.setChildren(buildDocumentChildrenNodes(child.getId())); |
| | | children.add(childNode); |
| | | } |
| | | |
| | | return children; |
| | | } |
| | | // å° DocumentClassification 转æ¢ä¸º DocumentClassificationTreeDto |
| | | private DocumentClassificationTreeDto convertToTreeDto(DocumentClassification documentClassification) { |
| | | DocumentClassificationTreeDto dto = new DocumentClassificationTreeDto(); |
| | | BeanUtils.copyProperties(documentClassification, dto); |
| | | dto.setCategory(documentClassification.getCategory()); // 设置 label 为产ååç§° |
| | | dto.setChildren(new ArrayList<>()); |
| | | return dto; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto; |
| | | import com.ruoyi.warehouse.dto.ReturnExportDto; |
| | | import com.ruoyi.warehouse.mapper.DocumentationReturnManagementMapper; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.ruoyi.warehouse.pojo.DocumentationReturnManagement; |
| | | import com.ruoyi.warehouse.service.DocumentationBorrowManagementService; |
| | | import com.ruoyi.warehouse.mapper.DocumentationBorrowManagementMapper; |
| | | import com.ruoyi.warehouse.service.DocumentationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation_borrow_management(ææ¡£åé
-å½è¿è¡¨)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-14 15:55:45 |
| | | */ |
| | | @Service |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class DocumentationBorrowManagementServiceImpl extends ServiceImpl<DocumentationBorrowManagementMapper, DocumentationBorrowManagement> |
| | | implements DocumentationBorrowManagementService{ |
| | | @Autowired |
| | | private DocumentationBorrowManagementMapper documentationBorrowManagementMapper; |
| | | @Autowired |
| | | private DocumentationReturnManagementMapper documentationReturnManagementMapper; |
| | | @Autowired |
| | | private DocumentationService documentationService; |
| | | @Override |
| | | public IPage<DocumentationBorrowManagement> listPage(Page page, DocumentationBorrowManagement documentationBorrowManagement) { |
| | | IPage<DocumentationBorrowManagement> listPage = documentationBorrowManagementMapper.listPage(page, documentationBorrowManagement); |
| | | return listPage; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public boolean add(DocumentationBorrowManagement documentationBorrowManagement) { |
| | | documentationBorrowManagement.setBorrowStatus("åé
"); |
| | | documentationBorrowManagementMapper.insert(documentationBorrowManagement); |
| | | Documentation documentation = documentationService.getById(documentationBorrowManagement.getDocumentationId()); |
| | | documentation.setDocStatus("ååº"); |
| | | documentationService.updateById(documentation); |
| | | return true; |
| | | } |
| | | @Override |
| | | public boolean reventdbm(DocumentationReturnManagement documentationReturnManagement) { |
| | | // æ´æ°åé
è®°å½ç¶æä¸ºå½è¿ |
| | | DocumentationBorrowManagement documentationBorrowManagement1 = documentationBorrowManagementMapper.selectById(documentationReturnManagement.getBorrowId()); |
| | | |
| | | DocumentationReturnManagement returnManagement = new DocumentationReturnManagement(); |
| | | returnManagement.setDocumentationId(documentationBorrowManagement1.getDocumentationId()); |
| | | returnManagement.setBorrower(documentationBorrowManagement1.getBorrower()); |
| | | returnManagement.setBorrowPurpose(documentationBorrowManagement1.getBorrowPurpose()); |
| | | returnManagement.setBorrowDate(documentationBorrowManagement1.getBorrowDate()); |
| | | returnManagement.setDueReturnDate(documentationBorrowManagement1.getDueReturnDate()); |
| | | returnManagement.setBorrowStatus("å½è¿"); |
| | | returnManagement.setBorrowId(documentationReturnManagement.getBorrowId()); |
| | | returnManagement.setReturner(documentationReturnManagement.getReturner()); |
| | | returnManagement.setReturnDate(LocalDate.now()); |
| | | returnManagement.setRemark(documentationReturnManagement.getRemark()); |
| | | |
| | | documentationReturnManagementMapper.insert(returnManagement); |
| | | documentationBorrowManagement1.setBorrowStatus("å½è¿"); |
| | | documentationBorrowManagement1.setReturner(documentationReturnManagement.getReturner()); |
| | | documentationBorrowManagement1.setReturnDate(LocalDate.now()); |
| | | documentationBorrowManagementMapper.updateById(documentationBorrowManagement1); |
| | | // æ´æ°ææ¡£ç¶æä¸ºæ£å¸¸ |
| | | Documentation documentation = documentationService.getById(documentationBorrowManagement1.getDocumentationId()); |
| | | documentation.setDocStatus("æ£å¸¸"); |
| | | documentationService.updateById(documentation); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public boolean reventDeleteByIds(List<Long> ids) { |
| | | QueryWrapper<DocumentationReturnManagement> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.in("id", ids); |
| | | // queryWrapper.eq("borrow_status", "å½è¿"); |
| | | List<DocumentationReturnManagement> list = documentationReturnManagementMapper.selectList(queryWrapper); |
| | | |
| | | for (DocumentationReturnManagement documentationReturnManagement : list) { |
| | | |
| | | try { |
| | | documentationReturnManagementMapper.deleteById(documentationReturnManagement); |
| | | DocumentationBorrowManagement documentationBorrowManagement = documentationBorrowManagementMapper.selectById(documentationReturnManagement.getBorrowId()); |
| | | documentationBorrowManagement.setBorrowStatus("åé
"); |
| | | documentationBorrowManagement.setReturner(null); |
| | | documentationBorrowManagement.setReturnDate(null); |
| | | documentationBorrowManagementMapper.updateById(documentationBorrowManagement); |
| | | |
| | | Documentation documentation = documentationService.getById(documentationReturnManagement.getDocumentationId()); |
| | | documentation.setDocStatus("ååº"); |
| | | documentationService.updateById(documentation); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException("å é¤å½è¿è®°å½åææ¡£ç¶ææ¶åºé", e); |
| | | } |
| | | } |
| | | // documentationReturnManagementMapper.deleteBatchIds(ids); |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public void export(HttpServletResponse response, DocumentationBorrowManagement documentationBorrowManagement) { |
| | | List<DocumentationBorrowManagementDto> documentationBorrowManagements = documentationBorrowManagementMapper.export(documentationBorrowManagement); |
| | | ExcelUtil<DocumentationBorrowManagementDto> util = new ExcelUtil<>(DocumentationBorrowManagementDto.class); |
| | | util.exportExcel(response, documentationBorrowManagements, "ææ¡£åé
-åé
è®°å½"); |
| | | } |
| | | |
| | | @Override |
| | | public void exportrevent(HttpServletResponse response, DocumentationReturnManagement documentationReturnManagement) { |
| | | List<ReturnExportDto> documentationReturnManagements = documentationReturnManagementMapper.exportrevent(documentationReturnManagement); |
| | | ExcelUtil<ReturnExportDto> util = new ExcelUtil<>(ReturnExportDto.class); |
| | | util.exportExcel(response, documentationReturnManagements, "ææ¡£åé
-å½è¿è®°å½"); |
| | | } |
| | | |
| | | @Override |
| | | public List<DocumentationBorrowManagementDto> listAll() { |
| | | return documentationBorrowManagementMapper.list(new LambdaQueryWrapper<DocumentationBorrowManagementDto>().eq(DocumentationBorrowManagementDto::getBorrowStatus, "åé
")); |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | List<DocumentationBorrowManagement> list = documentationBorrowManagementMapper.selectList(new LambdaQueryWrapper<DocumentationBorrowManagement>().in(DocumentationBorrowManagement::getId, ids)); |
| | | for (DocumentationBorrowManagement documentationBorrowManagement : list) { |
| | | Documentation documentation = documentationService.getById(documentationBorrowManagement.getDocumentationId()); |
| | | documentation.setDocStatus("æ£å¸¸"); |
| | | boolean b = documentationService.updateById(documentation); |
| | | if (!b){ |
| | | throw new RuntimeException("æ´æ°ææ¡£ç¶æå¤±è´¥"); |
| | | } |
| | | } |
| | | documentationBorrowManagementMapper.deleteBatchIds(ids); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.warehouse.mapper.DocumentationFileMapper; |
| | | import com.ruoyi.warehouse.pojo.DocumentationFile; |
| | | import com.ruoyi.warehouse.service.DocumentationFileService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | @AllArgsConstructor |
| | | @Service |
| | | public class DocumentationFileServiceImpl extends ServiceImpl<DocumentationFileMapper, DocumentationFile> implements DocumentationFileService { |
| | | |
| | | private DocumentationFileMapper documentationFileMapper; |
| | | |
| | | |
| | | @Override |
| | | public List<DocumentationFile> documentationFileListPage(DocumentationFile documentationFile) { |
| | | return documentationFileMapper.documentationFileListPage(documentationFile); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.warehouse.dto.DocumentationDto; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.pojo.DocumentationBorrowManagement; |
| | | import com.ruoyi.warehouse.service.DocumentationService; |
| | | import com.ruoyi.warehouse.mapper.DocumentationMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãdocumentation(ææ¡£ä¿¡æ¯è¡¨)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-14 14:05:49 |
| | | */ |
| | | @Service |
| | | public class DocumentationServiceImpl extends ServiceImpl<DocumentationMapper, Documentation> |
| | | implements DocumentationService{ |
| | | @Autowired |
| | | private DocumentationMapper documentationMapper; |
| | | @Override |
| | | public IPage<DocumentationDto> listPage(Page page, Documentation documentation) { |
| | | return documentationMapper.listPage(page, documentation); |
| | | } |
| | | |
| | | @Override |
| | | public void export(HttpServletResponse response,Documentation documentation) { |
| | | IPage<DocumentationDto> list = documentationMapper.listPage(null, documentation); |
| | | ExcelUtil<DocumentationDto> util = new ExcelUtil<>(DocumentationDto.class); |
| | | util.exportExcel(response, list.getRecords(), "ææ¡£ä¿¡æ¯è¡¨"); |
| | | } |
| | | |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | List<Documentation> documentationList = documentationMapper.selectList(new LambdaQueryWrapper<Documentation>().in(Documentation::getId, ids)); |
| | | for (Documentation documentation : documentationList) { |
| | | //å¦æææ¡£ç¶ææ¯å·²ååºï¼ä¸è½å é¤ |
| | | if ("ååº".equals(documentation.getDocStatus()) || "ä½åº".equals(documentation.getDocStatus())) { |
| | | throw new RuntimeException("å½åææ¡£ç¶æä¸º " + documentation.getDocStatus() + "ï¼ä¸æ¯æå é¤"); |
| | | } |
| | | documentationMapper.deleteById(documentation.getId()); |
| | | } |
| | | return true; |
| | | } |
| | | /** |
| | | * åè¡¨ææææ¡£ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DocumentationDto> listAll() { |
| | | List<DocumentationDto> list = documentationMapper.list().stream().filter(documentationDto -> "æ£å¸¸".equals(documentationDto.getDocStatus())).collect(Collectors.toList()); |
| | | return list; |
| | | } |
| | | /** |
| | | * è·åææ¡£æ»æ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer getTotalDocsCount() { |
| | | return documentationMapper.countTotalDocs(); |
| | | } |
| | | /** |
| | | * è·åææ¡£åç±»æ»æ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer getCategoryNumCount() { |
| | | return documentationMapper.countCategoryNum(); |
| | | } |
| | | /** |
| | | * è·åå·²ååºææ¡£æ»æ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer getBorrowedDocsCount() { |
| | | return documentationMapper.countBorrowedDocs(); |
| | | } |
| | | /** |
| | | * è·åæ¯ææ°å¢ææ¡£æ»æ° |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Integer getMonthlyAddedDocsCount() { |
| | | return documentationMapper.countMonthlyAddedDocs(); |
| | | } |
| | | /** |
| | | * è·åææ¡£åç±»åå¸ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getCategoryDistribution() { |
| | | return documentationMapper.countCategoryDistribution(); |
| | | } |
| | | /** |
| | | * è·åææ¡£ç¶æåå¸ |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<Map<String, Object>> getStatusDistribution() { |
| | | return documentationMapper.countStatusDistribution(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.warehouse.mapper.DocumentationMapper; |
| | | import com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesRowcolMapper; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesRowcolDto; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesRowcolService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse_goods_shelves_rowcol(ä»åºè´§æ¶å±ï¼å表)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class WarehouseGoodsShelvesRowcolServiceImpl extends ServiceImpl<WarehouseGoodsShelvesRowcolMapper, WarehouseGoodsShelvesRowcol> |
| | | implements WarehouseGoodsShelvesRowcolService { |
| | | @Autowired |
| | | private WarehouseGoodsShelvesRowcolMapper warehouseGoodsShelvesRowcolMapper; |
| | | @Autowired |
| | | private DocumentationMapper documentationMapper; |
| | | |
| | | @Override |
| | | public List<WarehouseGoodsShelvesRowcolDto> getList(WarehouseGoodsShelvesRowcol warehouseGoodsShelvesRowcol) { |
| | | List<WarehouseGoodsShelvesRowcolDto> list = warehouseGoodsShelvesRowcolMapper.findList(warehouseGoodsShelvesRowcol); |
| | | for (WarehouseGoodsShelvesRowcolDto dto : list) { |
| | | //è·åå±ids |
| | | Long id = dto.getId(); |
| | | //è·åææ¡£ |
| | | dto.setDocumentationDtoList(documentationMapper.listBywarehouseGoodsShelvesRowcolId(id)); |
| | | } |
| | | return list; |
| | | } |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | // 3. æ£æ¥æ¯å¦æåå |
| | | Wrapper<Documentation> queryWrapper = new LambdaQueryWrapper<Documentation>() |
| | | .in(Documentation::getWarehouseGoodsShelvesRowcolId, ids); |
| | | List<Documentation> documentations = documentationMapper.selectList(queryWrapper); |
| | | if (!documentations.isEmpty()) throw new RuntimeException("è´§æ¶ä¸æååï¼ä¸è½å é¤"); |
| | | warehouseGoodsShelvesRowcolMapper.deleteBatchIds(ids); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.core.toolkit.CollectionUtils; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.mapper.DocumentationMapper; |
| | | import com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesMapper; |
| | | import com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesRowcolMapper; |
| | | import com.ruoyi.warehouse.pojo.Documentation; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.ruoyi.warehouse.service.DocumentationService; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesRowcolService; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse_goods_shelves(ä»åºè´§æ¶è¡¨)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public class WarehouseGoodsShelvesServiceImpl extends ServiceImpl<WarehouseGoodsShelvesMapper, WarehouseGoodsShelves> |
| | | implements WarehouseGoodsShelvesService { |
| | | @Autowired |
| | | private WarehouseGoodsShelvesRowcolService warehouseGoodsShelvesRowcolService; |
| | | @Autowired |
| | | private WarehouseGoodsShelvesRowcolMapper warehouseGoodsShelvesRowcolMapper; |
| | | @Autowired |
| | | private WarehouseGoodsShelvesMapper warehouseGoodsShelvesMapper; |
| | | @Autowired |
| | | private DocumentationService documentationService; |
| | | @Autowired |
| | | private DocumentationMapper documentationMapper; |
| | | |
| | | @Override |
| | | public boolean add(WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | WarehouseGoodsShelves one = warehouseGoodsShelvesMapper.selectOne(new LambdaQueryWrapper<WarehouseGoodsShelves>().eq(WarehouseGoodsShelves::getId, warehouseGoodsShelves.getId())); |
| | | // 1. æ£æ¥è´§æ¶åç§°æ¯å¦å·²åå¨ |
| | | if (one == null) { |
| | | if(warehouseGoodsShelves.getRow() == null || warehouseGoodsShelves.getRow() == 0 && warehouseGoodsShelves.getCol() == null || warehouseGoodsShelves.getCol() == 0){ |
| | | throw new IllegalArgumentException("屿°ååæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | | int insert = warehouseGoodsShelvesMapper.insert(warehouseGoodsShelves); |
| | | if (insert <= 0) return false; |
| | | } |
| | | |
| | | Long shelvesId = warehouseGoodsShelves.getId(); |
| | | Long warehouseId = warehouseGoodsShelves.getWarehouseId(); |
| | | // 3. æ¹éå建è¡åè®°å½ |
| | | List<WarehouseGoodsShelvesRowcol> rowcolList = new ArrayList<>(); |
| | | for (long i = 1; i <= warehouseGoodsShelves.getRow(); i++) { |
| | | for (long j = 1; j <= warehouseGoodsShelves.getCol(); j++) { |
| | | WarehouseGoodsShelvesRowcol rowcol = new WarehouseGoodsShelvesRowcol(); |
| | | rowcol.setRow(i); |
| | | rowcol.setCol(j); |
| | | rowcol.setWarehouseGoodsShelvesId(shelvesId); |
| | | rowcolList.add(rowcol); |
| | | } |
| | | } |
| | | // 4. æ¹éæå
¥è¡åè®°å½ |
| | | if (!rowcolList.isEmpty()) { |
| | | try { |
| | | // ä½¿ç¨æ¹éæå
¥æ¹æ³æ¿ä»£å¾ªç¯åæ¡æå
¥ |
| | | warehouseGoodsShelvesRowcolService.saveBatch(rowcolList); |
| | | } catch (Exception e) { |
| | | // æåºå¼å¸¸è§¦åäºå¡åæ» |
| | | throw e; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | /** |
| | | * æ ¹æ®IDæ´æ°è´§æ¶åå
¶è¡åä¿¡æ¯ |
| | | * @param warehouseGoodsShelves è´§æ¶ä¿¡æ¯ |
| | | * @return æ¯å¦æ´æ°æå |
| | | */ |
| | | @Override |
| | | public boolean updateRowcolById(WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | Long shelvesId = warehouseGoodsShelves.getId(); |
| | | |
| | | // æå»ºæ¥è¯¢æ¡ä»¶ï¼æ¥è¯¢è¯¥è´§æ¶ä¸çææè¡åè®°å½ |
| | | Wrapper<WarehouseGoodsShelvesRowcol> queryWrapper = new LambdaQueryWrapper<WarehouseGoodsShelvesRowcol>() |
| | | .eq(WarehouseGoodsShelvesRowcol::getWarehouseGoodsShelvesId, shelvesId); |
| | | List<WarehouseGoodsShelvesRowcol> rowcolList = warehouseGoodsShelvesRowcolService.list(queryWrapper); |
| | | //è·å¾rowcolList䏿æçId |
| | | List<Long> rowcolIds = rowcolList.stream() |
| | | .map(WarehouseGoodsShelvesRowcol::getId) |
| | | .collect(Collectors.toList()); |
| | | // 3. æ£æ¥æ¯å¦æåå |
| | | Wrapper<Documentation> queryWrapper1 = new LambdaQueryWrapper<Documentation>() |
| | | .in(Documentation::getWarehouseGoodsShelvesRowcolId, rowcolIds); |
| | | List<Documentation> documentations = documentationMapper.selectList(queryWrapper1); |
| | | if (!documentations.isEmpty()) throw new RuntimeException("è´§æ¶ä¸æååï¼ä¸è½å é¤"); |
| | | |
| | | // å
æ´æ°è´§æ¶ä¸»ä¿¡æ¯ |
| | | updateById(warehouseGoodsShelves); |
| | | // å 餿§çè¡åè®°å½ |
| | | warehouseGoodsShelvesRowcolService.removeByIds(rowcolIds); |
| | | // æ·»å æ°çè¡åè®°å½ |
| | | add(warehouseGoodsShelves); |
| | | return true; |
| | | } |
| | | /** |
| | | * æ¹éå é¤è´§æ¶åå
¶å
³èçè¡åè®°å½ |
| | | * @param ids è´§æ¶IDå表 |
| | | * @return æ¯å¦å 餿å |
| | | */ |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | // 1. å
æ¥è¯¢ææè¦å é¤çè´§æ¶ä¿¡æ¯ |
| | | List<WarehouseGoodsShelves> shelvesList = warehouseGoodsShelvesMapper.selectBatchIds(ids); |
| | | |
| | | // 2. æ£æ¥ææè´§æ¶æ¯å¦åå¨ååï¼æåååä¸å
许å é¤ï¼ |
| | | for (WarehouseGoodsShelves shelves : shelvesList) { |
| | | Long shelvesId = shelves.getId(); |
| | | // æå»ºæ¥è¯¢æ¡ä»¶ï¼æ¥è¯¢å½åè´§æ¶çææè¡åè®°å½ |
| | | Wrapper<WarehouseGoodsShelvesRowcol> queryWrapper = new LambdaQueryWrapper<WarehouseGoodsShelvesRowcol>() |
| | | .eq(WarehouseGoodsShelvesRowcol::getWarehouseGoodsShelvesId, shelvesId); |
| | | |
| | | List<WarehouseGoodsShelvesRowcol> rowcolList = warehouseGoodsShelvesRowcolService.list(queryWrapper); |
| | | if (CollectionUtils.isEmpty(rowcolList)) { |
| | | continue; // æ å
³èè®°å½ï¼è·³è¿æ£æ¥ |
| | | } |
| | | //è·å¾rowcolList䏿æçId |
| | | List<Long> rowcolIds = rowcolList.stream() |
| | | .map(WarehouseGoodsShelvesRowcol::getId) |
| | | .collect(Collectors.toList()); |
| | | // 3. æ£æ¥æ¯å¦æåå |
| | | Wrapper<Documentation> queryWrapper1 = new LambdaQueryWrapper<Documentation>() |
| | | .in(Documentation::getWarehouseGoodsShelvesRowcolId, rowcolIds); |
| | | List<Documentation> documentations = documentationMapper.selectList(queryWrapper1); |
| | | if (!documentations.isEmpty()) throw new RuntimeException("è´§æ¶ä¸æååï¼ä¸è½å é¤"); // ä»»ä¸è´§æ¶æåååç»æ¢å é¤ |
| | | } |
| | | |
| | | // 3. å
å é¤è´§æ¶ä¸»è®°å½ |
| | | warehouseGoodsShelvesMapper.deleteBatchIds(ids); |
| | | |
| | | // 4. æ¹éå 餿æè¡åè®°å½ |
| | | List<Long> allShelvesIds = shelvesList.stream() |
| | | .map(WarehouseGoodsShelves::getId) |
| | | .collect(Collectors.toList()); |
| | | |
| | | // æå»ºæ¹éå 餿¡ä»¶ |
| | | Wrapper<WarehouseGoodsShelvesRowcol> deleteWrapper = new LambdaQueryWrapper<WarehouseGoodsShelvesRowcol>() |
| | | .in(WarehouseGoodsShelvesRowcol::getWarehouseGoodsShelvesId, allShelvesIds); |
| | | warehouseGoodsShelvesRowcolService.remove(deleteWrapper); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public List<WarehouseGoodsShelvesDto> findList(WarehouseGoodsShelves warehouseGoodsShelves) { |
| | | return warehouseGoodsShelvesMapper.listAll(warehouseGoodsShelves); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.warehouse.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.warehouse.dto.WarehouseDto; |
| | | import com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto; |
| | | import com.ruoyi.warehouse.dto.WarehouseTreeDto; |
| | | import com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesMapper; |
| | | import com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesRowcolMapper; |
| | | import com.ruoyi.warehouse.mapper.WarehouseMapper; |
| | | import com.ruoyi.warehouse.pojo.Warehouse; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelves; |
| | | import com.ruoyi.warehouse.pojo.WarehouseGoodsShelvesRowcol; |
| | | import com.ruoyi.warehouse.service.WarehouseGoodsShelvesService; |
| | | import com.ruoyi.warehouse.service.WarehouseService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.sql.Array; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static org.springframework.beans.BeanUtils.copyProperties; |
| | | |
| | | /** |
| | | * @author 86151 |
| | | * @description é对表ãwarehouse(ä»åºè¡¨)ãçæ°æ®åºæä½Serviceå®ç° |
| | | * @createDate 2025-08-13 11:49:02 |
| | | */ |
| | | @Service |
| | | @Slf4j |
| | | public class WarehouseServiceImpl extends ServiceImpl<WarehouseMapper, Warehouse> |
| | | implements WarehouseService { |
| | | @Autowired |
| | | private WarehouseMapper warehouseMapper; |
| | | @Autowired |
| | | private WarehouseGoodsShelvesService warehouseGoodsShelvesService; |
| | | @Autowired |
| | | private WarehouseGoodsShelvesMapper warehouseGoodsShelvesMapper; |
| | | @Autowired |
| | | private WarehouseGoodsShelvesRowcolMapper warehouseGoodsShelvesRowcolMapper; |
| | | |
| | | @Override |
| | | public boolean deleteByIds(List<Long> ids) { |
| | | // 1. æ£æ¥æ¯å¦æè´§æ¶ |
| | | Wrapper<WarehouseGoodsShelves> queryWrapper = new LambdaQueryWrapper<WarehouseGoodsShelves>() |
| | | .in(WarehouseGoodsShelves::getWarehouseId, ids); |
| | | List<WarehouseGoodsShelves> shelvesList = warehouseGoodsShelvesService.list(queryWrapper); |
| | | //è·å¾shelvesList䏿æçId |
| | | |
| | | List<Long> shelvesIds = shelvesList.stream().map(WarehouseGoodsShelves::getId).collect(Collectors.toList()); |
| | | // 2. å é¤è´§æ¶ |
| | | if (!shelvesIds.isEmpty()) { |
| | | boolean b = warehouseGoodsShelvesService.deleteByIds(shelvesIds); |
| | | if (!b) { |
| | | throw new RuntimeException("å é¤è´§æ¶å¤±è´¥"); |
| | | } |
| | | } |
| | | return removeByIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public List<Warehouse> findList(Warehouse warehouse) { |
| | | return warehouseMapper.listAll(warehouse); |
| | | } |
| | | /** |
| | | * æ¥è¯¢ä»åº-è´§æ¶-å±åä¸çº§æ ç»æ |
| | | */ |
| | | @Override |
| | | public List<WarehouseTreeDto> findListTree() { |
| | | |
| | | // æ¥è¯¢æææ ¹èç¹ï¼ä»åºï¼ |
| | | LambdaQueryWrapper<Warehouse> queryWrapper = new LambdaQueryWrapper<>(); |
| | | // æ¥è¯¢ä»åºå表ï¼ä¸çº§èç¹ï¼ |
| | | List<Warehouse> warehouseList = warehouseMapper.selectList(queryWrapper); |
| | | |
| | | // 转æ¢ä¸ºæ èç¹å¹¶æå»ºåæ |
| | | List<WarehouseTreeDto> tree = new ArrayList<>(); |
| | | for (Warehouse warehouse : warehouseList) { |
| | | WarehouseTreeDto node = convertToWarehouseTreeDto(warehouse); |
| | | // 为æ¯ä¸ªä»åºæ·»å è´§æ¶åèç¹ |
| | | node.setChildren(buildShelfChildrenNodes(warehouse.getId())); |
| | | tree.add(node); |
| | | } |
| | | return tree; |
| | | } |
| | | /** |
| | | * æå»ºè´§æ¶åèç¹ï¼äºçº§èç¹ï¼ |
| | | */ |
| | | private List<WarehouseTreeDto> buildShelfChildrenNodes(Long warehouseId) { |
| | | // æ¥è¯¢æå®ä»åºä¸çææè´§æ¶ |
| | | LambdaQueryWrapper<WarehouseGoodsShelves> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(WarehouseGoodsShelves::getWarehouseId, warehouseId); |
| | | List<WarehouseGoodsShelves> shelfList = warehouseGoodsShelvesMapper.selectList(queryWrapper); |
| | | |
| | | // 转æ¢ä¸ºæ èç¹å¹¶æå»ºå±ååèç¹ |
| | | List<WarehouseTreeDto> shelfNodes = new ArrayList<>(); |
| | | for (WarehouseGoodsShelves shelf : shelfList) { |
| | | WarehouseTreeDto shelfNode = convertToShelfTreeDto(shelf); |
| | | // 为æ¯ä¸ªè´§æ¶æ·»å å±ååèç¹ |
| | | shelfNode.setChildren(buildRowcolChildrenNodes(shelf.getId())); |
| | | shelfNodes.add(shelfNode); |
| | | } |
| | | |
| | | return shelfNodes; |
| | | } |
| | | |
| | | /** |
| | | * æå»ºå±ååèç¹ï¼ä¸çº§èç¹ï¼ |
| | | */ |
| | | private List<WarehouseTreeDto> buildRowcolChildrenNodes(Long shelfId) { |
| | | // æ¥è¯¢æå®è´§æ¶ä¸çææå±å |
| | | LambdaQueryWrapper<WarehouseGoodsShelvesRowcol> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(WarehouseGoodsShelvesRowcol::getWarehouseGoodsShelvesId, shelfId); |
| | | List<WarehouseGoodsShelvesRowcol> rowcolList = warehouseGoodsShelvesRowcolMapper.selectList(queryWrapper); |
| | | |
| | | // 转æ¢ä¸ºæ èç¹ï¼å±å没æåèç¹ï¼ |
| | | List<WarehouseTreeDto> rowcolNodes = new ArrayList<>(); |
| | | for (WarehouseGoodsShelvesRowcol rowcol : rowcolList) { |
| | | WarehouseTreeDto rowcolNode = convertToRowcolTreeDto(rowcol); |
| | | rowcolNodes.add(rowcolNode); |
| | | } |
| | | |
| | | return rowcolNodes; |
| | | } |
| | | |
| | | /** |
| | | * ä»åºå®ä½è½¬æ¢ä¸ºæ èç¹DTO |
| | | */ |
| | | private WarehouseTreeDto convertToWarehouseTreeDto(Warehouse warehouse) { |
| | | WarehouseTreeDto dto = new WarehouseTreeDto(); |
| | | copyProperties(warehouse, dto); |
| | | dto.setLabel(warehouse.getWarehouseName()); |
| | | dto.setChildren(new ArrayList<>()); |
| | | return dto; |
| | | } |
| | | |
| | | /** |
| | | * è´§æ¶å®ä½è½¬æ¢ä¸ºæ èç¹DTO |
| | | */ |
| | | private WarehouseTreeDto convertToShelfTreeDto(WarehouseGoodsShelves shelf) { |
| | | WarehouseTreeDto dto = new WarehouseTreeDto(); |
| | | copyProperties(shelf, dto); |
| | | // dto.setLabel(shelf.getGoodsShelvesName()); |
| | | dto.setLabel(shelf.getName()); |
| | | dto.setChildren(new ArrayList<>()); |
| | | return dto; |
| | | } |
| | | |
| | | /** |
| | | * å±åå®ä½è½¬æ¢ä¸ºæ èç¹DTO |
| | | */ |
| | | private WarehouseTreeDto convertToRowcolTreeDto(WarehouseGoodsShelvesRowcol rowcol) { |
| | | WarehouseTreeDto dto = new WarehouseTreeDto(); |
| | | copyProperties(rowcol, dto); |
| | | // dto.setLabel(rowcol.getStorey() + "-" + rowcol.getArrange()); |
| | | dto.setLabel(rowcol.getRow() + "-" + rowcol.getCol()); |
| | | dto.setChildren(new ArrayList<>()); |
| | | return dto; |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.DocumentClassificationMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.warehouse.pojo.DocumentClassification"> |
| | | <id property="id" column="id" /> |
| | | <result property="category" column="category" /> |
| | | <result property="parentId" column="parent_id" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="createUser" column="create_user" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="updateUser" column="update_user" /> |
| | | <result property="tenantId" column="tenant_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="Base_Column_List"> |
| | | id,category,parent_id, |
| | | create_time,create_user,update_time, |
| | | update_user,tenant_id |
| | | </sql> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.DocumentationBorrowManagementMapper"> |
| | | |
| | | <!-- <resultMap id="BaseResultMap" type="com.ruoyi.warehouse.pojo.DocumentationBorrowManagement">--> |
| | | <!-- <id property="id" column="id"/>--> |
| | | <!-- <result property="documentationId" column="documentation_id" />--> |
| | | <!-- <result property="borrowerId" column="borrower_id" />--> |
| | | <!-- <result property="borrowPurpose" column="borrow_purpose" />--> |
| | | <!-- <result property="borrowDate" column="borrow_date"/>--> |
| | | <!-- <result property="dueReturnDate" column="due_return_date" />--> |
| | | <!-- <result property="returnDate" column="return_date"/>--> |
| | | <!-- <result property="borrowStatus" column="borrow_status" />--> |
| | | <!-- <result property="remark" column="remark"/>--> |
| | | <!-- <result property="createTime" column="create_time"/>--> |
| | | <!-- <result property="createUser" column="create_user"/>--> |
| | | <!-- <result property="updateTime" column="update_time"/>--> |
| | | <!-- <result property="updateUser" column="update_user"/>--> |
| | | <!-- <result property="tenantId" column="tenant_id"/>--> |
| | | <!-- </resultMap>--> |
| | | |
| | | <!-- <sql id="Base_Column_List">--> |
| | | <!-- id,documentation_id,borrower_id,--> |
| | | <!-- borrow_purpose,borrow_date,due_return_date,--> |
| | | <!-- return_date,borrow_status,remark,--> |
| | | <!-- create_time,create_user,update_time,--> |
| | | <!-- update_user,tenant_id--> |
| | | <!-- </sql>--> |
| | | <select id="listPage" resultType="com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_borrow_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | where 1=1 |
| | | <if test="documentationBorrowManagement.borrowStatus != null"> |
| | | and borrow_status = #{documentationBorrowManagement.borrowStatus} |
| | | </if> |
| | | <if test="documentationBorrowManagement.documentationId != null"> |
| | | and documentation_id = #{documentationBorrowManagement.documentationId} |
| | | </if> |
| | | <if test="documentationBorrowManagement.borrower != null"> |
| | | and borrower like concat('%',#{documentationBorrowManagement.borrower},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.returner != null"> |
| | | and returner like concat('%',#{documentationBorrowManagement.returner},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateStart != null and documentationBorrowManagement.entryDateStart != ''"> |
| | | and borrow_date >= DATE_FORMAT(#{documentationBorrowManagement.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateEnd != null and documentationBorrowManagement.entryDateEnd != ''"> |
| | | and borrow_date <= DATE_FORMAT(#{documentationBorrowManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | <select id="export" resultType="com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_borrow_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | where 1=1 |
| | | <if test="documentationBorrowManagement.borrowStatus != null"> |
| | | and borrow_status = #{documentationBorrowManagement.borrowStatus} |
| | | </if> |
| | | <if test="documentationBorrowManagement.documentationId != null"> |
| | | and documentation_id = #{documentationBorrowManagement.documentationId} |
| | | </if> |
| | | <if test="documentationBorrowManagement.borrower != null"> |
| | | and borrower like concat('%',#{documentationBorrowManagement.borrower},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.returner != null"> |
| | | and returner like concat('%',#{documentationBorrowManagement.returner},'%') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateStart != null and documentationBorrowManagement.entryDateStart != ''"> |
| | | and borrow_date >= DATE_FORMAT(#{documentationBorrowManagement.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="documentationBorrowManagement.entryDateEnd != null and documentationBorrowManagement.entryDateEnd != ''"> |
| | | and borrow_date <= DATE_FORMAT(#{documentationBorrowManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | <select id="list" resultType="com.ruoyi.warehouse.dto.DocumentationBorrowManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_borrow_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | <if test="ew != null"> |
| | | ${ew.customSqlSegment} |
| | | </if> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.DocumentationFileMapper"> |
| | | <select id="documentationFileListPage" resultType="com.ruoyi.warehouse.pojo.DocumentationFile"> |
| | | SELECT |
| | | * |
| | | FROM documentation_file |
| | | where |
| | | 1=1 |
| | | <if test="documentationFile.name != null and documentationFile.name != '' "> |
| | | AND name = #{documentationFile.name} |
| | | </if> |
| | | <if test="documentationFile.documentationId != null"> |
| | | AND documentation_id = #{documentationFile.documentationId} |
| | | </if> |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.DocumentationMapper"> |
| | | |
| | | <select id="listPage" resultType="com.ruoyi.warehouse.dto.DocumentationDto"> |
| | | SELECT |
| | | doc.*, |
| | | dc.category, |
| | | CONCAT( |
| | | w.warehouse_name, '-', |
| | | wgs.name, '-', |
| | | wgsr.row, 'å±-', |
| | | wgsr.col, 'å' |
| | | ) AS location_info -- åå¹¶åçåæ®µå |
| | | FROM documentation doc |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | LEFT JOIN warehouse_goods_shelves_rowcol wgsr ON wgsr.id = doc.warehouse_goods_shelves_rowcol_id |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | where 1=1 |
| | | <if test="documentation.documentClassificationId != null"> |
| | | and doc.document_classification_id = #{documentation.documentClassificationId} |
| | | </if> |
| | | <if test="documentation.docName != null"> |
| | | and doc.doc_name = #{documentation.docName} |
| | | </if> |
| | | <if test="documentation.docNumber != null"> |
| | | and doc.doc_number = #{documentation.docNumber} |
| | | </if> |
| | | <if test="documentation.id != null"> |
| | | and doc.id = #{documentation.id} |
| | | </if> |
| | | </select> |
| | | <select id="listByDocumentClassificationId" resultType="com.ruoyi.warehouse.dto.DocumentationDto"> |
| | | SELECT |
| | | doc.*, |
| | | dc.category, |
| | | CONCAT( |
| | | w.warehouse_name, '-', |
| | | wgs.name, '-', |
| | | wgsr.row, 'å±-', |
| | | wgsr.col, 'å' |
| | | ) AS location_info -- åå¹¶åçåæ®µå |
| | | FROM documentation doc |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | LEFT JOIN warehouse_goods_shelves_rowcol wgsr ON wgsr.id = doc.warehouse_goods_shelves_rowcol_id |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | where doc.document_classification_id = #{documentClassificationId} |
| | | </select> |
| | | <select id="list" resultType="com.ruoyi.warehouse.dto.DocumentationDto"> |
| | | SELECT |
| | | doc.*, |
| | | dc.category, |
| | | CONCAT( |
| | | w.warehouse_name, '-', |
| | | wgs.name, '-', |
| | | wgsr.row, 'å±-', |
| | | wgsr.col, 'å' |
| | | ) AS location_info -- åå¹¶åçåæ®µå |
| | | FROM documentation doc |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | LEFT JOIN warehouse_goods_shelves_rowcol wgsr ON wgsr.id = doc.warehouse_goods_shelves_rowcol_id |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | </select> |
| | | <select id="listBywarehouseGoodsShelvesRowcolId" resultType="com.ruoyi.warehouse.dto.DocumentationDto"> |
| | | SELECT |
| | | doc.*, |
| | | dc.category, |
| | | CONCAT( |
| | | w.warehouse_name, '-', |
| | | wgs.name, '-', |
| | | wgsr.row, 'å±-', |
| | | wgsr.col, 'å' |
| | | ) AS location_info -- åå¹¶åçåæ®µå |
| | | FROM documentation doc |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | LEFT JOIN warehouse_goods_shelves_rowcol wgsr ON wgsr.id = doc.warehouse_goods_shelves_rowcol_id |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | where doc.warehouse_goods_shelves_rowcol_id = #{warehouseGoodsShelvesRowcolId} |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.DocumentationReturnManagementMapper"> |
| | | |
| | | |
| | | <select id="listPage" resultType="com.ruoyi.warehouse.dto.DocumentationReturnManagementDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_return_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | where 1=1 |
| | | <if test="documentationReturnManagement.borrowStatus != null"> |
| | | and borrow_status = #{documentationReturnManagement.borrowStatus} |
| | | </if> |
| | | <if test="documentationReturnManagement.documentationId != null"> |
| | | and documentation_id = #{documentationReturnManagement.documentationId} |
| | | </if> |
| | | <if test="documentationReturnManagement.borrower != null"> |
| | | and borrower like concat('%',#{documentationReturnManagement.borrower},'%') |
| | | </if> |
| | | <if test="documentationReturnManagement.returner != null"> |
| | | and returner like concat('%',#{documentationReturnManagement.returner},'%') |
| | | </if> |
| | | <if test="documentationReturnManagement.entryDateStart != null and documentationReturnManagement.entryDateStart != ''"> |
| | | and return_date >= DATE_FORMAT(#{documentationReturnManagement.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="documentationReturnManagement.entryDateEnd != null and documentationReturnManagement.entryDateEnd != ''"> |
| | | and return_date <= DATE_FORMAT(#{documentationReturnManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="exportrevent" resultType="com.ruoyi.warehouse.dto.ReturnExportDto"> |
| | | select dbm.*,doc.doc_name |
| | | from documentation_return_management dbm |
| | | LEFT JOIN documentation doc on doc.id = dbm.documentation_id |
| | | where dbm.returner IS NOT NULL |
| | | <if test="documentationReturnManagement.returnStatus != null"> |
| | | and return_status = #{documentationReturnManagement.returnStatus} |
| | | </if> |
| | | <if test="documentationReturnManagement.documentationId != null"> |
| | | and documentation_id = #{documentationReturnManagement.documentationId} |
| | | </if> |
| | | <if test="documentationReturnManagement.borrower != null"> |
| | | and borrower like concat('%',#{documentationReturnManagement.borrower},'%') |
| | | </if> |
| | | <if test="documentationReturnManagement.returner != null"> |
| | | and returner like concat('%',#{documentationReturnManagement.returner},'%') |
| | | </if> |
| | | <if test="documentationReturnManagement.entryDateStart != null and documentationReturnManagement.entryDateStart != ''"> |
| | | and return_date >= DATE_FORMAT(#{documentationReturnManagement.entryDateStart},'%Y-%m-%d') |
| | | </if> |
| | | <if test="documentationReturnManagement.entryDateEnd != null and documentationReturnManagement.entryDateEnd != ''"> |
| | | and return_date <= DATE_FORMAT(#{documentationReturnManagement.entryDateEnd},'%Y-%m-%d') |
| | | </if> |
| | | </select> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesMapper"> |
| | | |
| | | |
| | | <select id="findList" resultType="com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto"> |
| | | SELECT |
| | | doc.doc_name, |
| | | doc.doc_number, |
| | | wgs.*, |
| | | w.warehouse_name, |
| | | dc.category |
| | | FROM warehouse_goods_shelves_rowcol wgsr |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | LEFT JOIN documentation doc ON doc.warehouse_goods_shelves_rowcol_id = wgsr.id |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | <where> |
| | | 1=1 |
| | | <if test="warehouseGoodsShelves.goodsShelvesName != null and warehouseGoodsShelves.goodsShelvesName != ''"> |
| | | and wgs.goods_shelves_name like concat('%',#{warehouseGoodsShelves.goodsShelvesName},'%') |
| | | </if> |
| | | <if test="warehouseGoodsShelves.warehouseId != null"> |
| | | and wgs.warehouse_id = #{warehouseGoodsShelves.warehouseId} |
| | | </if> |
| | | <if test="warehouseGoodsShelves.id != null"> |
| | | and wgs.id = #{warehouseGoodsShelves.id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="listAll" resultType="com.ruoyi.warehouse.dto.WarehouseGoodsShelvesDto"> |
| | | select wgs.*,w.warehouse_name from warehouse_goods_shelves wgs |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | <where> |
| | | 1=1 |
| | | <if test="warehouseGoodsShelves.goodsShelvesName != null and warehouseGoodsShelves.goodsShelvesName != ''"> |
| | | and goods_shelves_name like concat('%',#{warehouseGoodsShelves.goodsShelvesName},'%') |
| | | </if> |
| | | <if test="warehouseGoodsShelves.warehouseId != null"> |
| | | and warehouse_id = #{warehouseGoodsShelves.warehouseId} |
| | | </if> |
| | | <if test="warehouseGoodsShelves.id != null"> |
| | | and id = #{warehouseGoodsShelves.id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.WarehouseGoodsShelvesRowcolMapper"> |
| | | <select id="findList" resultType="com.ruoyi.warehouse.dto.WarehouseGoodsShelvesRowcolDto"> |
| | | -- SELECT |
| | | -- wgsr.*, |
| | | -- w.warehouse_name, |
| | | -- wgs.name, |
| | | -- dc.category |
| | | -- FROM warehouse_goods_shelves_rowcol wgsr |
| | | -- LEFT JOIN documentation doc ON doc.warehouse_goods_shelves_rowcol_id = wgsr.id |
| | | -- LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | -- LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | -- LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | SELECT |
| | | wgsr.*, |
| | | w.warehouse_name, |
| | | wgs.name |
| | | FROM warehouse_goods_shelves_rowcol wgsr |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | <where> |
| | | 1=1 |
| | | <if test="warehouseGoodsShelvesRowcol.row != null"> |
| | | and wgsr.row = #{warehouseGoodsShelvesRowcol.row} |
| | | </if> |
| | | <if test="warehouseGoodsShelvesRowcol.col != null"> |
| | | and wgsr.col = #{warehouseGoodsShelvesRowcol.col} |
| | | </if> |
| | | <if test="warehouseGoodsShelvesRowcol.warehouseGoodsShelvesId != null"> |
| | | and wgsr.warehouse_goods_shelves_id = #{warehouseGoodsShelvesRowcol.warehouseGoodsShelvesId} |
| | | </if> |
| | | <if test="warehouseGoodsShelvesRowcol.id != null"> |
| | | and wgsr.id = #{warehouseGoodsShelvesRowcol.id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.warehouse.mapper.WarehouseMapper"> |
| | | |
| | | |
| | | <select id="findList" resultType="com.ruoyi.warehouse.dto.WarehouseDto"> |
| | | SELECT |
| | | w.*, |
| | | wgs.name, |
| | | doc.doc_name, |
| | | doc.doc_number, |
| | | dc.category |
| | | FROM warehouse_goods_shelves_rowcol wgsr |
| | | LEFT JOIN warehouse_goods_shelves wgs ON wgs.id = wgsr.warehouse_goods_shelves_id |
| | | LEFT JOIN warehouse w ON w.id = wgs.warehouse_id |
| | | LEFT JOIN documentation doc ON doc.warehouse_goods_shelves_rowcol_id = wgsr.id |
| | | LEFT JOIN document_classification dc ON doc.document_classification_id = dc.id |
| | | <where> |
| | | 1=1 |
| | | <if test="warehouse.warehouseName != null"> |
| | | and w.warehouse_name like concat('%',#{warehouse.warehouseName},'%') |
| | | </if> |
| | | <if test="warehouse.id != null"> |
| | | and w.id = #{warehouse.id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | <select id="listAll" resultType="com.ruoyi.warehouse.pojo.Warehouse"> |
| | | select * from warehouse |
| | | <where> |
| | | 1=1 |
| | | <if test="warehouse.warehouseName != null"> |
| | | and warehouse_name like concat('%',#{warehouse.warehouseName},'%') |
| | | </if> |
| | | <if test="warehouse.id != null"> |
| | | and w.id = #{warehouse.id} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | </mapper> |
| | |
| | | <setting name="defaultExecutorType" value="SIMPLE" />
|
| | | <!-- æå® MyBatis æç¨æ¥å¿çå
·ä½å®ç° -->
|
| | | <setting name="logImpl" value="SLF4J" />
|
| | | <!-- <setting name="logImpl" value="org.apache.ibatis.logging.stdout.StdOutImpl" />-->
|
| | | <!-- 使ç¨é©¼å³°å½åæ³è½¬æ¢å段 -->
|
| | | <!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
|
| | | </settings>
|