| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywmaterial:create', 'æ°å»ºè¿ç»´èµäº§ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywmaterial:delete', 'å é¤è¿ç»´èµäº§ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywmaterial:update', 'ä¿®æ¹è¿ç»´èµäº§ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywmaterial:query', 'æ¥è¯¢è¿ç»´èµäº§ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywmaterial:exportExcel', '导åºè¿ç»´èµäº§ä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywoutinbound:create', 'æ°å»ºè¿ç»´åºå
¥åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywoutinbound:delete', 'å é¤è¿ç»´åºå
¥åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywoutinbound:update', 'ä¿®æ¹è¿ç»´åºå
¥åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywoutinbound:query', 'æ¥è¯¢è¿ç»´åºå
¥åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywoutinbound:exportExcel', '导åºè¿ç»´åºå
¥åºä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywproblem:create', 'æ°å»ºè¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywproblem:delete', 'å é¤è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywproblem:update', 'ä¿®æ¹è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywproblem:query', 'æ¥è¯¢è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywproblem:exportExcel', '导åºè¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstock:create', 'æ°å»ºè¿ç»´åºåä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstock:delete', 'å é¤è¿ç»´åºåä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstock:update', 'ä¿®æ¹è¿ç»´åºåä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstock:query', 'æ¥è¯¢è¿ç»´åºåä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstock:exportExcel', '导åºè¿ç»´åºåä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktaking:create', 'æ°å»ºè¿ç»´çç¹ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktaking:delete', 'å é¤è¿ç»´çç¹ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktaking:update', 'ä¿®æ¹è¿ç»´çç¹ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktaking:query', 'æ¥è¯¢è¿ç»´çç¹ä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktaking:exportExcel', '导åºè¿ç»´çç¹ä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktakingrecord:create', 'æ°å»ºè¿ç»´çç¹æç»è®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktakingrecord:delete', 'å é¤è¿ç»´çç¹æç»è®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktakingrecord:update', 'ä¿®æ¹è¿ç»´çç¹æç»è®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktakingrecord:query', 'æ¥è¯¢è¿ç»´çç¹æç»è®°å½è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywstocktakingrecord:exportExcel', '导åºè¿ç»´çç¹æç»è®°å½è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywwarehouse:create', 'æ°å»ºè¿ç»´ä»åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywwarehouse:delete', 'å é¤è¿ç»´ä»åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywwarehouse:update', 'ä¿®æ¹è¿ç»´ä»åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywwarehouse:query', 'æ¥è¯¢è¿ç»´ä»åºä¿¡æ¯è¡¨', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | INSERT INTO `SYSTEM_PERMISSION`(`CODE`, `NAME`, `REMARK`, `FIXED`, `CREATE_USER`, `CREATE_TIME`, `UPDATE_USER`, `UPDATE_TIME`, `DELETED`) VALUES ('business:ywwarehouse:exportExcel', '导åºè¿ç»´ä»åºä¿¡æ¯è¡¨(Excel)', '', 0, 1, CURRENT_TIMESTAMP, NULL, NULL, 0); |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwMaterial; |
| | | import com.doumee.service.business.YwMaterialService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´èµäº§ä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywMaterial") |
| | | public class YwMaterialController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwMaterialService ywMaterialService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywmaterial:create") |
| | | public ApiResponse create(@RequestBody YwMaterial ywMaterial) { |
| | | return ApiResponse.success(ywMaterialService.create(ywMaterial)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywmaterial:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywMaterialService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywmaterial:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywMaterialService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywmaterial:update") |
| | | public ApiResponse updateById(@RequestBody YwMaterial ywMaterial) { |
| | | ywMaterialService.updateById(ywMaterial); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywmaterial:query") |
| | | public ApiResponse<PageData<YwMaterial>> findPage (@RequestBody PageWrap<YwMaterial> pageWrap) { |
| | | return ApiResponse.success(ywMaterialService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywmaterial:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwMaterial> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwMaterial.class).export(ywMaterialService.findPage(pageWrap).getRecords(), "è¿ç»´èµäº§ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywmaterial:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywMaterialService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwOutinbound; |
| | | import com.doumee.service.business.YwOutinboundService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´åºå
¥åºä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywOutinbound") |
| | | public class YwOutinboundController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwOutinboundService ywOutinboundService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywoutinbound:create") |
| | | public ApiResponse create(@RequestBody YwOutinbound ywOutinbound) { |
| | | return ApiResponse.success(ywOutinboundService.create(ywOutinbound)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywoutinbound:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywOutinboundService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywoutinbound:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywOutinboundService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywoutinbound:update") |
| | | public ApiResponse updateById(@RequestBody YwOutinbound ywOutinbound) { |
| | | ywOutinboundService.updateById(ywOutinbound); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywoutinbound:query") |
| | | public ApiResponse<PageData<YwOutinbound>> findPage (@RequestBody PageWrap<YwOutinbound> pageWrap) { |
| | | return ApiResponse.success(ywOutinboundService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywoutinbound:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwOutinbound> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwOutinbound.class).export(ywOutinboundService.findPage(pageWrap).getRecords(), "è¿ç»´åºå
¥åºä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywoutinbound:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywOutinboundService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwProblem; |
| | | import com.doumee.service.business.YwProblemService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywProblem") |
| | | public class YwProblemController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwProblemService ywProblemService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywproblem:create") |
| | | public ApiResponse create(@RequestBody YwProblem ywProblem) { |
| | | return ApiResponse.success(ywProblemService.create(ywProblem)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywproblem:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywProblemService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywproblem:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywProblemService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywproblem:update") |
| | | public ApiResponse updateById(@RequestBody YwProblem ywProblem) { |
| | | ywProblemService.updateById(ywProblem); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywproblem:query") |
| | | public ApiResponse<PageData<YwProblem>> findPage (@RequestBody PageWrap<YwProblem> pageWrap) { |
| | | return ApiResponse.success(ywProblemService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywproblem:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwProblem> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwProblem.class).export(ywProblemService.findPage(pageWrap).getRecords(), "è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywproblem:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywProblemService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwStock; |
| | | import com.doumee.service.business.YwStockService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´åºåä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywStock") |
| | | public class YwStockController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwStockService ywStockService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywstock:create") |
| | | public ApiResponse create(@RequestBody YwStock ywStock) { |
| | | return ApiResponse.success(ywStockService.create(ywStock)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywstock:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywStockService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywstock:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywStockService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywstock:update") |
| | | public ApiResponse updateById(@RequestBody YwStock ywStock) { |
| | | ywStockService.updateById(ywStock); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywstock:query") |
| | | public ApiResponse<PageData<YwStock>> findPage (@RequestBody PageWrap<YwStock> pageWrap) { |
| | | return ApiResponse.success(ywStockService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywstock:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwStock> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwStock.class).export(ywStockService.findPage(pageWrap).getRecords(), "è¿ç»´åºåä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywstock:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywStockService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwStocktaking; |
| | | import com.doumee.service.business.YwStocktakingService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´çç¹ä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywStocktaking") |
| | | public class YwStocktakingController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwStocktakingService ywStocktakingService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywstocktaking:create") |
| | | public ApiResponse create(@RequestBody YwStocktaking ywStocktaking) { |
| | | return ApiResponse.success(ywStocktakingService.create(ywStocktaking)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywstocktaking:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywStocktakingService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywstocktaking:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywStocktakingService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywstocktaking:update") |
| | | public ApiResponse updateById(@RequestBody YwStocktaking ywStocktaking) { |
| | | ywStocktakingService.updateById(ywStocktaking); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywstocktaking:query") |
| | | public ApiResponse<PageData<YwStocktaking>> findPage (@RequestBody PageWrap<YwStocktaking> pageWrap) { |
| | | return ApiResponse.success(ywStocktakingService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywstocktaking:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwStocktaking> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwStocktaking.class).export(ywStocktakingService.findPage(pageWrap).getRecords(), "è¿ç»´çç¹ä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywstocktaking:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywStocktakingService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwStocktakingRecord; |
| | | import com.doumee.service.business.YwStocktakingRecordService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´çç¹æç»è®°å½è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywStocktakingRecord") |
| | | public class YwStocktakingRecordController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwStocktakingRecordService ywStocktakingRecordService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:create") |
| | | public ApiResponse create(@RequestBody YwStocktakingRecord ywStocktakingRecord) { |
| | | return ApiResponse.success(ywStocktakingRecordService.create(ywStocktakingRecord)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywStocktakingRecordService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywStocktakingRecordService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:update") |
| | | public ApiResponse updateById(@RequestBody YwStocktakingRecord ywStocktakingRecord) { |
| | | ywStocktakingRecordService.updateById(ywStocktakingRecord); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:query") |
| | | public ApiResponse<PageData<YwStocktakingRecord>> findPage (@RequestBody PageWrap<YwStocktakingRecord> pageWrap) { |
| | | return ApiResponse.success(ywStocktakingRecordService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwStocktakingRecord> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwStocktakingRecord.class).export(ywStocktakingRecordService.findPage(pageWrap).getRecords(), "è¿ç»´çç¹æç»è®°å½è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywstocktakingrecord:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywStocktakingRecordService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.admin; |
| | | |
| | | import com.doumee.api.BaseController; |
| | | import com.doumee.config.annotation.CloudRequiredPermission; |
| | | import com.doumee.core.annotation.excel.ExcelExporter; |
| | | import com.doumee.core.annotation.pr.PreventRepeat; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.business.model.YwWarehouse; |
| | | import com.doumee.service.business.YwWarehouseService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Api(tags = "è¿ç»´ä»åºä¿¡æ¯è¡¨") |
| | | @RestController |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/business/ywWarehouse") |
| | | public class YwWarehouseController extends BaseController { |
| | | |
| | | @Autowired |
| | | private YwWarehouseService ywWarehouseService; |
| | | |
| | | @PreventRepeat |
| | | @ApiOperation("æ°å»º") |
| | | @PostMapping("/create") |
| | | @CloudRequiredPermission("business:ywwarehouse:create") |
| | | public ApiResponse create(@RequestBody YwWarehouse ywWarehouse) { |
| | | return ApiResponse.success(ywWarehouseService.create(ywWarehouse)); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDå é¤") |
| | | @GetMapping("/delete/{id}") |
| | | @CloudRequiredPermission("business:ywwarehouse:delete") |
| | | public ApiResponse deleteById(@PathVariable Integer id) { |
| | | ywWarehouseService.deleteById(id); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ¹éå é¤") |
| | | @GetMapping("/delete/batch") |
| | | @CloudRequiredPermission("business:ywwarehouse:delete") |
| | | public ApiResponse deleteByIdInBatch(@RequestParam String ids) { |
| | | String [] idArray = ids.split(","); |
| | | List<Integer> idList = new ArrayList<>(); |
| | | for (String id : idArray) { |
| | | idList.add(Integer.valueOf(id)); |
| | | } |
| | | ywWarehouseService.deleteByIdInBatch(idList); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDä¿®æ¹") |
| | | @PostMapping("/updateById") |
| | | @CloudRequiredPermission("business:ywwarehouse:update") |
| | | public ApiResponse updateById(@RequestBody YwWarehouse ywWarehouse) { |
| | | ywWarehouseService.updateById(ywWarehouse); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | @ApiOperation("å页æ¥è¯¢") |
| | | @PostMapping("/page") |
| | | @CloudRequiredPermission("business:ywwarehouse:query") |
| | | public ApiResponse<PageData<YwWarehouse>> findPage (@RequestBody PageWrap<YwWarehouse> pageWrap) { |
| | | return ApiResponse.success(ywWarehouseService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导åºExcel") |
| | | @PostMapping("/exportExcel") |
| | | @CloudRequiredPermission("business:ywwarehouse:exportExcel") |
| | | public void exportExcel (@RequestBody PageWrap<YwWarehouse> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(YwWarehouse.class).export(ywWarehouseService.findPage(pageWrap).getRecords(), "è¿ç»´ä»åºä¿¡æ¯è¡¨", response); |
| | | } |
| | | |
| | | @ApiOperation("æ ¹æ®IDæ¥è¯¢") |
| | | @GetMapping("/{id}") |
| | | @CloudRequiredPermission("business:ywwarehouse:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(ywWarehouseService.findById(id)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwMaterial; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwMaterialMapper extends BaseMapper<YwMaterial> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwOutinbound; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwOutinboundMapper extends BaseMapper<YwOutinbound> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwProblem; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwProblemMapper extends BaseMapper<YwProblem> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwStock; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStockMapper extends BaseMapper<YwStock> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwStocktaking; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStocktakingMapper extends BaseMapper<YwStocktaking> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwStocktakingRecord; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStocktakingRecordMapper extends BaseMapper<YwStocktakingRecord> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.doumee.dao.business.model.YwWarehouse; |
| | | |
| | | /** |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwWarehouseMapper extends BaseMapper<YwWarehouse> { |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿ç»´èµäº§ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´èµäº§ä¿¡æ¯è¡¨") |
| | | @TableName("`yw_material`") |
| | | public class YwMaterial { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | @ExcelColumn(name="åç§°") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date name; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¯ç¨ 1ç¦ç¨", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¯ç¨ 1ç¦ç¨") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @ExcelColumn(name="ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "æå±ä¸çº§åç±»ç¼ç ï¼å
³ècategory)", example = "1") |
| | | @ExcelColumn(name="æå±ä¸çº§åç±»ç¼ç ï¼å
³ècategory)") |
| | | private Integer parentCateId; |
| | | |
| | | @ApiModelProperty(value = "æå±äºçº§åç±»ç¼ç (å
³ècategoryï¼", example = "1") |
| | | @ExcelColumn(name="æå±äºçº§åç±»ç¼ç (å
³ècategoryï¼") |
| | | private Integer cateId; |
| | | |
| | | @ApiModelProperty(value = "æ¡ç ") |
| | | @ExcelColumn(name="æ¡ç ") |
| | | private String qrcode; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | | @ExcelColumn(name="æåºç ") |
| | | private Integer sortnum; |
| | | |
| | | @ApiModelProperty(value = "åç") |
| | | @ExcelColumn(name="åç") |
| | | private String brand; |
| | | |
| | | @ApiModelProperty(value = "è§æ ¼åå·") |
| | | @ExcelColumn(name="è§æ ¼åå·") |
| | | private String attr; |
| | | |
| | | @ApiModelProperty(value = "å®å
¨åºåï¼ä¸éï¼", example = "1") |
| | | @ExcelColumn(name="å®å
¨åºåï¼ä¸éï¼") |
| | | private BigDecimal minStock; |
| | | |
| | | @ApiModelProperty(value = "å®å
¨åºåï¼ä¸éï¼", example = "1") |
| | | @ExcelColumn(name="å®å
¨åºåï¼ä¸éï¼") |
| | | private BigDecimal maxStock; |
| | | |
| | | @ApiModelProperty(value = "åä½") |
| | | @ExcelColumn(name="åä½") |
| | | private String unitName; |
| | | |
| | | @ApiModelProperty(value = "æå±æ¿æºç¼ç (å
³èyw_room)", example = "1") |
| | | @ExcelColumn(name="æå±æ¿æºç¼ç (å
³èyw_room)") |
| | | private Integer roomId; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿ç»´åºå
¥åºä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´åºå
¥åºä¿¡æ¯è¡¨") |
| | | @TableName("`yw_outinbound`") |
| | | public class YwOutinbound { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ä»åºç¼ç (å
³èyw_warehouse)") |
| | | @ExcelColumn(name="ä»åºç¼ç (å
³èyw_warehouse)") |
| | | private String warehouseId; |
| | | |
| | | @ApiModelProperty(value = "ç©èµç¼ç ï¼å
³èyw_material)", example = "1") |
| | | @ExcelColumn(name="ç©èµç¼ç ï¼å
³èyw_material)") |
| | | private Integer materialId; |
| | | |
| | | @ApiModelProperty(value = "æ°é", example = "1") |
| | | @ExcelColumn(name="æ°é") |
| | | private BigDecimal stock; |
| | | |
| | | @ApiModelProperty(value = "ç±»å 0éè´å
¥åº 1é¢ç¨éå 2åºåè°æ´ 3å
¶ä»å
¥åº 4ççå
¥åº 5é¢ç¨åºåº 6ä»åºåºåº 7è°æ´åºåº 8éè´åºåº 9å
¶ä»åºåº 10çäºåºåº", example = "1") |
| | | @ExcelColumn(name="ç±»å 0éè´å
¥åº 1é¢ç¨éå 2åºåè°æ´ 3å
¶ä»å
¥åº 4ççå
¥åº 5é¢ç¨åºåº 6ä»åºåºåº 7è°æ´åºåº 8éè´åºåº 9å
¶ä»åºåº 10çäºåºåº") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "æ¥æº 0æå¨å½å
¥ 1ç³»ç»çæ", example = "1") |
| | | @ExcelColumn(name="æ¥æº 0æå¨å½å
¥ 1ç³»ç»çæ") |
| | | private Integer origin; |
| | | |
| | | @ApiModelProperty(value = "说æ") |
| | | @ExcelColumn(name="说æ") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "åºå
¥åºæ¥æ") |
| | | @ExcelColumn(name="åºå
¥åºæ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date doneDate; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0æ£å¸¸", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0æ£å¸¸") |
| | | private Integer status; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨") |
| | | @TableName("`yw_problem`") |
| | | public class YwProblem { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "ä½ç½®") |
| | | @ExcelColumn(name="ä½ç½®") |
| | | private String position; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¯ç¨ 1ç¦ç¨", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¯ç¨ 1ç¦ç¨") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "æ
åµè¯´æ") |
| | | @ExcelColumn(name="æ
åµè¯´æ") |
| | | private String content; |
| | | |
| | | @ApiModelProperty(value = "䏿¥äººå§å") |
| | | @ExcelColumn(name="䏿¥äººå§å") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date name; |
| | | |
| | | @ApiModelProperty(value = "èç³»çµè¯") |
| | | @ExcelColumn(name="èç³»çµè¯") |
| | | private String phone; |
| | | |
| | | @ApiModelProperty(value = "ææ¥æ¶é´") |
| | | @ExcelColumn(name="ææ¥æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date submitDate; |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @ExcelColumn(name="ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "å¤çç¶æ 0å¾
å¤ç 1已转工å 2å·²å
³é", example = "1") |
| | | @ExcelColumn(name="å¤çç¶æ 0å¾
å¤ç 1已转工å 2å·²å
³é") |
| | | private Integer dealStatus; |
| | | |
| | | @ApiModelProperty(value = "å¤ç人ç¼ç (å
³èsystem_user)", example = "1") |
| | | @ExcelColumn(name="å¤ç人ç¼ç (å
³èsystem_user)") |
| | | private Integer dealUserId; |
| | | |
| | | @ApiModelProperty(value = "å¤çæ¶é´") |
| | | @ExcelColumn(name="å¤çæ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date dealDate; |
| | | |
| | | @ApiModelProperty(value = "å¤ç夿³¨") |
| | | @ExcelColumn(name="å¤ç夿³¨") |
| | | private String dealInfo; |
| | | |
| | | @ApiModelProperty(value = "å¤çæ¹å¼ 0转工å 1å
³é", example = "1") |
| | | @ExcelColumn(name="å¤çæ¹å¼ 0转工å 1å
³é") |
| | | private Integer dealType; |
| | | |
| | | @ApiModelProperty(value = "å
³èå·¥åç¼ç ï¼å
³èyw_workorder)", example = "1") |
| | | @ExcelColumn(name="å
³èå·¥åç¼ç ï¼å
³èyw_workorder)") |
| | | private Integer workorderId; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿ç»´åºåä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´åºåä¿¡æ¯è¡¨") |
| | | @TableName("`yw_stock`") |
| | | public class YwStock { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ä»åºç¼ç (å
³èyw_warehouse)") |
| | | @ExcelColumn(name="ä»åºç¼ç (å
³èyw_warehouse)") |
| | | private String warehouseId; |
| | | |
| | | @ApiModelProperty(value = "ç©èµç¼ç ï¼å
³èyw_material)", example = "1") |
| | | @ExcelColumn(name="ç©èµç¼ç ï¼å
³èyw_material)") |
| | | private Integer materialId; |
| | | |
| | | @ApiModelProperty(value = "æ°é", example = "1") |
| | | @ExcelColumn(name="æ°é") |
| | | private BigDecimal stock; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹ä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´çç¹ä¿¡æ¯è¡¨") |
| | | @TableName("`yw_stocktaking`") |
| | | public class YwStocktaking { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "ä½ç½®") |
| | | @ExcelColumn(name="ä½ç½®") |
| | | private String position; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0æªå¼å§ 1è¿è¡ä¸ 2已宿 3已忶", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0æªå¼å§ 1è¿è¡ä¸ 2已宿 3已忶") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "çç¹åç¼ç (å
³èsystem_user)") |
| | | @ExcelColumn(name="çç¹åç¼ç (å
³èsystem_user)") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "çç¹æ¶é´") |
| | | @ExcelColumn(name="çç¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date planDate; |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @ExcelColumn(name="ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "å¼å§å¤ç人(å
³èsystem_user)", example = "1") |
| | | @ExcelColumn(name="å¼å§å¤ç人(å
³èsystem_user)") |
| | | private Integer dealUserId; |
| | | |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | @ExcelColumn(name="å¼å§æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date dealDate; |
| | | |
| | | @ApiModelProperty(value = "å¼å§å¤æ³¨") |
| | | @ExcelColumn(name="å¼å§å¤æ³¨") |
| | | private String dealInfo; |
| | | |
| | | @ApiModelProperty(value = "å·²çç¹ç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="å·²çç¹ç©èµæ°é") |
| | | private Integer doneNum; |
| | | |
| | | @ApiModelProperty(value = "æªçç¹ç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="æªçç¹ç©èµæ°é") |
| | | private Integer waitNum; |
| | | |
| | | @ApiModelProperty(value = "æ»ç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="æ»ç©èµæ°é") |
| | | private Integer totalNum; |
| | | |
| | | @ApiModelProperty(value = "ççç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="ççç©èµæ°é") |
| | | private Integer profitNum; |
| | | |
| | | @ApiModelProperty(value = "çäºç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="çäºç©èµæ°é") |
| | | private Integer lossNum; |
| | | |
| | | @ApiModelProperty(value = "è´¦å®ç¸ç¬¦ç©èµæ°é", example = "1") |
| | | @ExcelColumn(name="è´¦å®ç¸ç¬¦ç©èµæ°é") |
| | | private Integer equalNum; |
| | | |
| | | @ApiModelProperty(value = "宿å¤ç人(å
³èsystem_user)", example = "1") |
| | | @ExcelColumn(name="宿å¤ç人(å
³èsystem_user)") |
| | | private Integer doneUserId; |
| | | |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | @ExcelColumn(name="宿æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date doneDate; |
| | | |
| | | @ApiModelProperty(value = "宿夿³¨") |
| | | @ExcelColumn(name="宿夿³¨") |
| | | private String doneInfo; |
| | | |
| | | @ApiModelProperty(value = "åæ¶å¤ç人(å
³èsystem_user)", example = "1") |
| | | @ExcelColumn(name="åæ¶å¤ç人(å
³èsystem_user)") |
| | | private Integer cancelUserId; |
| | | |
| | | @ApiModelProperty(value = "åæ¶æ¶é´") |
| | | @ExcelColumn(name="åæ¶æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date cancelDate; |
| | | |
| | | @ApiModelProperty(value = "忶夿³¨") |
| | | @ExcelColumn(name="忶夿³¨") |
| | | private String cancelInfo; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹æç»è®°å½è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´çç¹æç»è®°å½è¡¨") |
| | | @TableName("`yw_stocktaking_record`") |
| | | public class YwStocktakingRecord { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0æªå¼å§ 1å·²çç¹", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0æªå¼å§ 1å·²çç¹") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "çç¹åç¼ç (å
³èsystem_user)") |
| | | @ExcelColumn(name="çç¹åç¼ç (å
³èsystem_user)") |
| | | private String userId; |
| | | |
| | | @ApiModelProperty(value = "çç¹æ¶é´") |
| | | @ExcelColumn(name="çç¹æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date planDate; |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @ExcelColumn(name="ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "ç©èµç¼ç ï¼å
³èyw_material)", example = "1") |
| | | @ExcelColumn(name="ç©èµç¼ç ï¼å
³èyw_material)") |
| | | private Integer materialId; |
| | | |
| | | @ApiModelProperty(value = "è´¦é¢æ°é", example = "1") |
| | | @ExcelColumn(name="è´¦é¢æ°é") |
| | | private BigDecimal stock; |
| | | |
| | | @ApiModelProperty(value = "å®é
çç¹åºåé", example = "1") |
| | | @ExcelColumn(name="å®é
çç¹åºåé") |
| | | private BigDecimal actStock; |
| | | |
| | | @ApiModelProperty(value = "çç¹ 0è´¦å®ç¸ç¬¦ 1çäº 2çç", example = "1") |
| | | @ExcelColumn(name="çç¹ 0è´¦å®ç¸ç¬¦ 1çäº 2çç") |
| | | private Integer type; |
| | | |
| | | @ApiModelProperty(value = "çç¹è®¡åç¼ç (å
³èyw_stocktaking)", example = "1") |
| | | @ExcelColumn(name="çç¹è®¡åç¼ç (å
³èyw_stocktaking)") |
| | | private Integer stocktakingId; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.model; |
| | | |
| | | import com.doumee.core.annotation.excel.ExcelColumn; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import lombok.Data; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * è¿ç»´ä»åºä¿¡æ¯è¡¨ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Data |
| | | @ApiModel("è¿ç»´ä»åºä¿¡æ¯è¡¨") |
| | | @TableName("`yw_warehouse`") |
| | | public class YwWarehouse { |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "å建人ç¼ç ", example = "1") |
| | | @ExcelColumn(name="å建人ç¼ç ") |
| | | private Integer creator; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | @ExcelColumn(name="å建æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createDate; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°äººç¼ç ", example = "1") |
| | | @ExcelColumn(name="æ´æ°äººç¼ç ") |
| | | private Integer editor; |
| | | |
| | | @ApiModelProperty(value = "æ´æ°æ¶é´") |
| | | @ExcelColumn(name="æ´æ°æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date editDate; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å é¤0å¦ 1æ¯", example = "1") |
| | | @ExcelColumn(name="æ¯å¦å é¤0å¦ 1æ¯") |
| | | private Integer isdeleted; |
| | | |
| | | @ApiModelProperty(value = "夿³¨") |
| | | @ExcelColumn(name="夿³¨") |
| | | private String remark; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 0å¯ç¨ 1ç¦ç¨", example = "1") |
| | | @ExcelColumn(name="ç¶æ 0å¯ç¨ 1ç¦ç¨") |
| | | private Integer status; |
| | | |
| | | @ApiModelProperty(value = "åç§°") |
| | | @ExcelColumn(name="åç§°") |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date name; |
| | | |
| | | @ApiModelProperty(value = "ä½ç½®") |
| | | @ExcelColumn(name="ä½ç½®") |
| | | private String position; |
| | | |
| | | @ApiModelProperty(value = "ç¼å·") |
| | | @ExcelColumn(name="ç¼å·") |
| | | private String code; |
| | | |
| | | @ApiModelProperty(value = "è´è´£äººç¼ç (å
³èsystem_user)", example = "1") |
| | | @ExcelColumn(name="è´è´£äººç¼ç (å
³èsystem_user)") |
| | | private Integer userId; |
| | | |
| | | @ApiModelProperty(value = "æåºç ", example = "1") |
| | | @ExcelColumn(name="æåºç ") |
| | | private Integer sortnum; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwMaterial; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´èµäº§ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwMaterialService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwMaterial ywMaterial); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwMaterial ywMaterial); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwMaterial ywMaterial); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywMaterials å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwMaterial> ywMaterials); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwMaterial |
| | | */ |
| | | YwMaterial findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | * @return YwMaterial |
| | | */ |
| | | YwMaterial findOne(YwMaterial ywMaterial); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | * @return List<YwMaterial> |
| | | */ |
| | | List<YwMaterial> findList(YwMaterial ywMaterial); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwMaterial> |
| | | */ |
| | | PageData<YwMaterial> findPage(PageWrap<YwMaterial> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywMaterial å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwMaterial ywMaterial); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwOutinbound; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´åºå
¥åºä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwOutinboundService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwOutinbound ywOutinbound); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwOutinbound ywOutinbound); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwOutinbound ywOutinbound); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywOutinbounds å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwOutinbound> ywOutinbounds); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwOutinbound |
| | | */ |
| | | YwOutinbound findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | * @return YwOutinbound |
| | | */ |
| | | YwOutinbound findOne(YwOutinbound ywOutinbound); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | * @return List<YwOutinbound> |
| | | */ |
| | | List<YwOutinbound> findList(YwOutinbound ywOutinbound); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwOutinbound> |
| | | */ |
| | | PageData<YwOutinbound> findPage(PageWrap<YwOutinbound> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywOutinbound å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwOutinbound ywOutinbound); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwProblem; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwProblemService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwProblem ywProblem); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwProblem ywProblem); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwProblem ywProblem); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywProblems å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwProblem> ywProblems); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwProblem |
| | | */ |
| | | YwProblem findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | * @return YwProblem |
| | | */ |
| | | YwProblem findOne(YwProblem ywProblem); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | * @return List<YwProblem> |
| | | */ |
| | | List<YwProblem> findList(YwProblem ywProblem); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwProblem> |
| | | */ |
| | | PageData<YwProblem> findPage(PageWrap<YwProblem> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywProblem å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwProblem ywProblem); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwStock; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´åºåä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStockService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwStock ywStock); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwStock ywStock); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwStock ywStock); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywStocks å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwStock> ywStocks); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwStock |
| | | */ |
| | | YwStock findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | * @return YwStock |
| | | */ |
| | | YwStock findOne(YwStock ywStock); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | * @return List<YwStock> |
| | | */ |
| | | List<YwStock> findList(YwStock ywStock); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwStock> |
| | | */ |
| | | PageData<YwStock> findPage(PageWrap<YwStock> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywStock å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwStock ywStock); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwStocktakingRecord; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹æç»è®°å½è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStocktakingRecordService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwStocktakingRecord ywStocktakingRecord); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwStocktakingRecord ywStocktakingRecord); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwStocktakingRecord ywStocktakingRecord); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywStocktakingRecords å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwStocktakingRecord> ywStocktakingRecords); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwStocktakingRecord |
| | | */ |
| | | YwStocktakingRecord findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | * @return YwStocktakingRecord |
| | | */ |
| | | YwStocktakingRecord findOne(YwStocktakingRecord ywStocktakingRecord); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | * @return List<YwStocktakingRecord> |
| | | */ |
| | | List<YwStocktakingRecord> findList(YwStocktakingRecord ywStocktakingRecord); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwStocktakingRecord> |
| | | */ |
| | | PageData<YwStocktakingRecord> findPage(PageWrap<YwStocktakingRecord> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywStocktakingRecord å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwStocktakingRecord ywStocktakingRecord); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwStocktaking; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹ä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwStocktakingService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwStocktaking ywStocktaking); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwStocktaking ywStocktaking); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwStocktaking ywStocktaking); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywStocktakings å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwStocktaking> ywStocktakings); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwStocktaking |
| | | */ |
| | | YwStocktaking findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | * @return YwStocktaking |
| | | */ |
| | | YwStocktaking findOne(YwStocktaking ywStocktaking); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | * @return List<YwStocktaking> |
| | | */ |
| | | List<YwStocktaking> findList(YwStocktaking ywStocktaking); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwStocktaking> |
| | | */ |
| | | PageData<YwStocktaking> findPage(PageWrap<YwStocktaking> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywStocktaking å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwStocktaking ywStocktaking); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.YwWarehouse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´ä»åºä¿¡æ¯è¡¨Serviceå®ä¹ |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | public interface YwWarehouseService { |
| | | |
| | | /** |
| | | * å建 |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | * @return Integer |
| | | */ |
| | | Integer create(YwWarehouse ywWarehouse); |
| | | |
| | | /** |
| | | * 主é®å é¤ |
| | | * |
| | | * @param id ä¸»é® |
| | | */ |
| | | void deleteById(Integer id); |
| | | |
| | | /** |
| | | * å é¤ |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | */ |
| | | void delete(YwWarehouse ywWarehouse); |
| | | |
| | | /** |
| | | * æ¹é主é®å é¤ |
| | | * |
| | | * @param ids 主é®é |
| | | */ |
| | | void deleteByIdInBatch(List<Integer> ids); |
| | | |
| | | /** |
| | | * 䏻鮿´æ° |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | */ |
| | | void updateById(YwWarehouse ywWarehouse); |
| | | |
| | | /** |
| | | * æ¹é䏻鮿´æ° |
| | | * |
| | | * @param ywWarehouses å®ä½é |
| | | */ |
| | | void updateByIdInBatch(List<YwWarehouse> ywWarehouses); |
| | | |
| | | /** |
| | | * 䏻鮿¥è¯¢ |
| | | * |
| | | * @param id ä¸»é® |
| | | * @return YwWarehouse |
| | | */ |
| | | YwWarehouse findById(Integer id); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢åæ¡è®°å½ |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | * @return YwWarehouse |
| | | */ |
| | | YwWarehouse findOne(YwWarehouse ywWarehouse); |
| | | |
| | | /** |
| | | * æ¡ä»¶æ¥è¯¢ |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | * @return List<YwWarehouse> |
| | | */ |
| | | List<YwWarehouse> findList(YwWarehouse ywWarehouse); |
| | | |
| | | /** |
| | | * å页æ¥è¯¢ |
| | | * |
| | | * @param pageWrap å页对象 |
| | | * @return PageData<YwWarehouse> |
| | | */ |
| | | PageData<YwWarehouse> findPage(PageWrap<YwWarehouse> pageWrap); |
| | | |
| | | /** |
| | | * æ¡ä»¶ç»è®¡ |
| | | * |
| | | * @param ywWarehouse å®ä½å¯¹è±¡ |
| | | * @return long |
| | | */ |
| | | long count(YwWarehouse ywWarehouse); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwMaterialMapper; |
| | | import com.doumee.dao.business.model.YwMaterial; |
| | | import com.doumee.service.business.YwMaterialService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´èµäº§ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwMaterialServiceImpl implements YwMaterialService { |
| | | |
| | | @Autowired |
| | | private YwMaterialMapper ywMaterialMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwMaterial ywMaterial) { |
| | | ywMaterialMapper.insert(ywMaterial); |
| | | return ywMaterial.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywMaterialMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwMaterial ywMaterial) { |
| | | UpdateWrapper<YwMaterial> deleteWrapper = new UpdateWrapper<>(ywMaterial); |
| | | ywMaterialMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywMaterialMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwMaterial ywMaterial) { |
| | | ywMaterialMapper.updateById(ywMaterial); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwMaterial> ywMaterials) { |
| | | if (CollectionUtils.isEmpty(ywMaterials)) { |
| | | return; |
| | | } |
| | | for (YwMaterial ywMaterial: ywMaterials) { |
| | | this.updateById(ywMaterial); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwMaterial findById(Integer id) { |
| | | return ywMaterialMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwMaterial findOne(YwMaterial ywMaterial) { |
| | | QueryWrapper<YwMaterial> wrapper = new QueryWrapper<>(ywMaterial); |
| | | return ywMaterialMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwMaterial> findList(YwMaterial ywMaterial) { |
| | | QueryWrapper<YwMaterial> wrapper = new QueryWrapper<>(ywMaterial); |
| | | return ywMaterialMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwMaterial> findPage(PageWrap<YwMaterial> pageWrap) { |
| | | IPage<YwMaterial> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwMaterial> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwMaterial::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwMaterial::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwMaterial::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwMaterial::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getName() != null) { |
| | | queryWrapper.lambda().ge(YwMaterial::getName, Utils.Date.getStart(pageWrap.getModel().getName())); |
| | | queryWrapper.lambda().le(YwMaterial::getName, Utils.Date.getEnd(pageWrap.getModel().getName())); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getParentCateId() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getParentCateId, pageWrap.getModel().getParentCateId()); |
| | | } |
| | | if (pageWrap.getModel().getCateId() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getCateId, pageWrap.getModel().getCateId()); |
| | | } |
| | | if (pageWrap.getModel().getQrcode() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getQrcode, pageWrap.getModel().getQrcode()); |
| | | } |
| | | if (pageWrap.getModel().getSortnum() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getSortnum, pageWrap.getModel().getSortnum()); |
| | | } |
| | | if (pageWrap.getModel().getBrand() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getBrand, pageWrap.getModel().getBrand()); |
| | | } |
| | | if (pageWrap.getModel().getAttr() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getAttr, pageWrap.getModel().getAttr()); |
| | | } |
| | | if (pageWrap.getModel().getMinStock() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getMinStock, pageWrap.getModel().getMinStock()); |
| | | } |
| | | if (pageWrap.getModel().getMaxStock() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getMaxStock, pageWrap.getModel().getMaxStock()); |
| | | } |
| | | if (pageWrap.getModel().getUnitName() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getUnitName, pageWrap.getModel().getUnitName()); |
| | | } |
| | | if (pageWrap.getModel().getRoomId() != null) { |
| | | queryWrapper.lambda().eq(YwMaterial::getRoomId, pageWrap.getModel().getRoomId()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywMaterialMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwMaterial ywMaterial) { |
| | | QueryWrapper<YwMaterial> wrapper = new QueryWrapper<>(ywMaterial); |
| | | return ywMaterialMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwOutinboundMapper; |
| | | import com.doumee.dao.business.model.YwOutinbound; |
| | | import com.doumee.service.business.YwOutinboundService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´åºå
¥åºä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwOutinboundServiceImpl implements YwOutinboundService { |
| | | |
| | | @Autowired |
| | | private YwOutinboundMapper ywOutinboundMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwOutinbound ywOutinbound) { |
| | | ywOutinboundMapper.insert(ywOutinbound); |
| | | return ywOutinbound.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywOutinboundMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwOutinbound ywOutinbound) { |
| | | UpdateWrapper<YwOutinbound> deleteWrapper = new UpdateWrapper<>(ywOutinbound); |
| | | ywOutinboundMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywOutinboundMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwOutinbound ywOutinbound) { |
| | | ywOutinboundMapper.updateById(ywOutinbound); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwOutinbound> ywOutinbounds) { |
| | | if (CollectionUtils.isEmpty(ywOutinbounds)) { |
| | | return; |
| | | } |
| | | for (YwOutinbound ywOutinbound: ywOutinbounds) { |
| | | this.updateById(ywOutinbound); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwOutinbound findById(Integer id) { |
| | | return ywOutinboundMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwOutinbound findOne(YwOutinbound ywOutinbound) { |
| | | QueryWrapper<YwOutinbound> wrapper = new QueryWrapper<>(ywOutinbound); |
| | | return ywOutinboundMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwOutinbound> findList(YwOutinbound ywOutinbound) { |
| | | QueryWrapper<YwOutinbound> wrapper = new QueryWrapper<>(ywOutinbound); |
| | | return ywOutinboundMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwOutinbound> findPage(PageWrap<YwOutinbound> pageWrap) { |
| | | IPage<YwOutinbound> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwOutinbound> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwOutinbound::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwOutinbound::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwOutinbound::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwOutinbound::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getWarehouseId() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getWarehouseId, pageWrap.getModel().getWarehouseId()); |
| | | } |
| | | if (pageWrap.getModel().getMaterialId() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getMaterialId, pageWrap.getModel().getMaterialId()); |
| | | } |
| | | if (pageWrap.getModel().getStock() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getStock, pageWrap.getModel().getStock()); |
| | | } |
| | | if (pageWrap.getModel().getType() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getType, pageWrap.getModel().getType()); |
| | | } |
| | | if (pageWrap.getModel().getOrigin() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getOrigin, pageWrap.getModel().getOrigin()); |
| | | } |
| | | if (pageWrap.getModel().getContent() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getContent, pageWrap.getModel().getContent()); |
| | | } |
| | | if (pageWrap.getModel().getDoneDate() != null) { |
| | | queryWrapper.lambda().ge(YwOutinbound::getDoneDate, Utils.Date.getStart(pageWrap.getModel().getDoneDate())); |
| | | queryWrapper.lambda().le(YwOutinbound::getDoneDate, Utils.Date.getEnd(pageWrap.getModel().getDoneDate())); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwOutinbound::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywOutinboundMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwOutinbound ywOutinbound) { |
| | | QueryWrapper<YwOutinbound> wrapper = new QueryWrapper<>(ywOutinbound); |
| | | return ywOutinboundMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwProblemMapper; |
| | | import com.doumee.dao.business.model.YwProblem; |
| | | import com.doumee.service.business.YwProblemService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´é®é¢ä¸æ¥ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwProblemServiceImpl implements YwProblemService { |
| | | |
| | | @Autowired |
| | | private YwProblemMapper ywProblemMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwProblem ywProblem) { |
| | | ywProblemMapper.insert(ywProblem); |
| | | return ywProblem.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywProblemMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwProblem ywProblem) { |
| | | UpdateWrapper<YwProblem> deleteWrapper = new UpdateWrapper<>(ywProblem); |
| | | ywProblemMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywProblemMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwProblem ywProblem) { |
| | | ywProblemMapper.updateById(ywProblem); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwProblem> ywProblems) { |
| | | if (CollectionUtils.isEmpty(ywProblems)) { |
| | | return; |
| | | } |
| | | for (YwProblem ywProblem: ywProblems) { |
| | | this.updateById(ywProblem); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwProblem findById(Integer id) { |
| | | return ywProblemMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwProblem findOne(YwProblem ywProblem) { |
| | | QueryWrapper<YwProblem> wrapper = new QueryWrapper<>(ywProblem); |
| | | return ywProblemMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwProblem> findList(YwProblem ywProblem) { |
| | | QueryWrapper<YwProblem> wrapper = new QueryWrapper<>(ywProblem); |
| | | return ywProblemMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwProblem> findPage(PageWrap<YwProblem> pageWrap) { |
| | | IPage<YwProblem> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwProblem> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwProblem::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwProblem::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwProblem::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwProblem::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getPosition() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getPosition, pageWrap.getModel().getPosition()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getContent() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getContent, pageWrap.getModel().getContent()); |
| | | } |
| | | if (pageWrap.getModel().getName() != null) { |
| | | queryWrapper.lambda().ge(YwProblem::getName, Utils.Date.getStart(pageWrap.getModel().getName())); |
| | | queryWrapper.lambda().le(YwProblem::getName, Utils.Date.getEnd(pageWrap.getModel().getName())); |
| | | } |
| | | if (pageWrap.getModel().getPhone() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getPhone, pageWrap.getModel().getPhone()); |
| | | } |
| | | if (pageWrap.getModel().getSubmitDate() != null) { |
| | | queryWrapper.lambda().ge(YwProblem::getSubmitDate, Utils.Date.getStart(pageWrap.getModel().getSubmitDate())); |
| | | queryWrapper.lambda().le(YwProblem::getSubmitDate, Utils.Date.getEnd(pageWrap.getModel().getSubmitDate())); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getDealStatus() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getDealStatus, pageWrap.getModel().getDealStatus()); |
| | | } |
| | | if (pageWrap.getModel().getDealUserId() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getDealUserId, pageWrap.getModel().getDealUserId()); |
| | | } |
| | | if (pageWrap.getModel().getDealDate() != null) { |
| | | queryWrapper.lambda().ge(YwProblem::getDealDate, Utils.Date.getStart(pageWrap.getModel().getDealDate())); |
| | | queryWrapper.lambda().le(YwProblem::getDealDate, Utils.Date.getEnd(pageWrap.getModel().getDealDate())); |
| | | } |
| | | if (pageWrap.getModel().getDealInfo() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getDealInfo, pageWrap.getModel().getDealInfo()); |
| | | } |
| | | if (pageWrap.getModel().getDealType() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getDealType, pageWrap.getModel().getDealType()); |
| | | } |
| | | if (pageWrap.getModel().getWorkorderId() != null) { |
| | | queryWrapper.lambda().eq(YwProblem::getWorkorderId, pageWrap.getModel().getWorkorderId()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywProblemMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwProblem ywProblem) { |
| | | QueryWrapper<YwProblem> wrapper = new QueryWrapper<>(ywProblem); |
| | | return ywProblemMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwStockMapper; |
| | | import com.doumee.dao.business.model.YwStock; |
| | | import com.doumee.service.business.YwStockService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´åºåä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwStockServiceImpl implements YwStockService { |
| | | |
| | | @Autowired |
| | | private YwStockMapper ywStockMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwStock ywStock) { |
| | | ywStockMapper.insert(ywStock); |
| | | return ywStock.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywStockMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwStock ywStock) { |
| | | UpdateWrapper<YwStock> deleteWrapper = new UpdateWrapper<>(ywStock); |
| | | ywStockMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywStockMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwStock ywStock) { |
| | | ywStockMapper.updateById(ywStock); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwStock> ywStocks) { |
| | | if (CollectionUtils.isEmpty(ywStocks)) { |
| | | return; |
| | | } |
| | | for (YwStock ywStock: ywStocks) { |
| | | this.updateById(ywStock); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwStock findById(Integer id) { |
| | | return ywStockMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwStock findOne(YwStock ywStock) { |
| | | QueryWrapper<YwStock> wrapper = new QueryWrapper<>(ywStock); |
| | | return ywStockMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwStock> findList(YwStock ywStock) { |
| | | QueryWrapper<YwStock> wrapper = new QueryWrapper<>(ywStock); |
| | | return ywStockMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwStock> findPage(PageWrap<YwStock> pageWrap) { |
| | | IPage<YwStock> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwStock> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwStock::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwStock::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwStock::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwStock::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getWarehouseId() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getWarehouseId, pageWrap.getModel().getWarehouseId()); |
| | | } |
| | | if (pageWrap.getModel().getMaterialId() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getMaterialId, pageWrap.getModel().getMaterialId()); |
| | | } |
| | | if (pageWrap.getModel().getStock() != null) { |
| | | queryWrapper.lambda().eq(YwStock::getStock, pageWrap.getModel().getStock()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywStockMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwStock ywStock) { |
| | | QueryWrapper<YwStock> wrapper = new QueryWrapper<>(ywStock); |
| | | return ywStockMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwStocktakingRecordMapper; |
| | | import com.doumee.dao.business.model.YwStocktakingRecord; |
| | | import com.doumee.service.business.YwStocktakingRecordService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹æç»è®°å½è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwStocktakingRecordServiceImpl implements YwStocktakingRecordService { |
| | | |
| | | @Autowired |
| | | private YwStocktakingRecordMapper ywStocktakingRecordMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwStocktakingRecord ywStocktakingRecord) { |
| | | ywStocktakingRecordMapper.insert(ywStocktakingRecord); |
| | | return ywStocktakingRecord.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywStocktakingRecordMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwStocktakingRecord ywStocktakingRecord) { |
| | | UpdateWrapper<YwStocktakingRecord> deleteWrapper = new UpdateWrapper<>(ywStocktakingRecord); |
| | | ywStocktakingRecordMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywStocktakingRecordMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwStocktakingRecord ywStocktakingRecord) { |
| | | ywStocktakingRecordMapper.updateById(ywStocktakingRecord); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwStocktakingRecord> ywStocktakingRecords) { |
| | | if (CollectionUtils.isEmpty(ywStocktakingRecords)) { |
| | | return; |
| | | } |
| | | for (YwStocktakingRecord ywStocktakingRecord: ywStocktakingRecords) { |
| | | this.updateById(ywStocktakingRecord); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwStocktakingRecord findById(Integer id) { |
| | | return ywStocktakingRecordMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwStocktakingRecord findOne(YwStocktakingRecord ywStocktakingRecord) { |
| | | QueryWrapper<YwStocktakingRecord> wrapper = new QueryWrapper<>(ywStocktakingRecord); |
| | | return ywStocktakingRecordMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwStocktakingRecord> findList(YwStocktakingRecord ywStocktakingRecord) { |
| | | QueryWrapper<YwStocktakingRecord> wrapper = new QueryWrapper<>(ywStocktakingRecord); |
| | | return ywStocktakingRecordMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwStocktakingRecord> findPage(PageWrap<YwStocktakingRecord> pageWrap) { |
| | | IPage<YwStocktakingRecord> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwStocktakingRecord> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktakingRecord::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwStocktakingRecord::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktakingRecord::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwStocktakingRecord::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getUserId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getUserId, pageWrap.getModel().getUserId()); |
| | | } |
| | | if (pageWrap.getModel().getPlanDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktakingRecord::getPlanDate, Utils.Date.getStart(pageWrap.getModel().getPlanDate())); |
| | | queryWrapper.lambda().le(YwStocktakingRecord::getPlanDate, Utils.Date.getEnd(pageWrap.getModel().getPlanDate())); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getMaterialId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getMaterialId, pageWrap.getModel().getMaterialId()); |
| | | } |
| | | if (pageWrap.getModel().getStock() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getStock, pageWrap.getModel().getStock()); |
| | | } |
| | | if (pageWrap.getModel().getActStock() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getActStock, pageWrap.getModel().getActStock()); |
| | | } |
| | | if (pageWrap.getModel().getType() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getType, pageWrap.getModel().getType()); |
| | | } |
| | | if (pageWrap.getModel().getStocktakingId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktakingRecord::getStocktakingId, pageWrap.getModel().getStocktakingId()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywStocktakingRecordMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwStocktakingRecord ywStocktakingRecord) { |
| | | QueryWrapper<YwStocktakingRecord> wrapper = new QueryWrapper<>(ywStocktakingRecord); |
| | | return ywStocktakingRecordMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwStocktakingMapper; |
| | | import com.doumee.dao.business.model.YwStocktaking; |
| | | import com.doumee.service.business.YwStocktakingService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´çç¹ä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwStocktakingServiceImpl implements YwStocktakingService { |
| | | |
| | | @Autowired |
| | | private YwStocktakingMapper ywStocktakingMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwStocktaking ywStocktaking) { |
| | | ywStocktakingMapper.insert(ywStocktaking); |
| | | return ywStocktaking.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywStocktakingMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwStocktaking ywStocktaking) { |
| | | UpdateWrapper<YwStocktaking> deleteWrapper = new UpdateWrapper<>(ywStocktaking); |
| | | ywStocktakingMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywStocktakingMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwStocktaking ywStocktaking) { |
| | | ywStocktakingMapper.updateById(ywStocktaking); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwStocktaking> ywStocktakings) { |
| | | if (CollectionUtils.isEmpty(ywStocktakings)) { |
| | | return; |
| | | } |
| | | for (YwStocktaking ywStocktaking: ywStocktakings) { |
| | | this.updateById(ywStocktaking); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwStocktaking findById(Integer id) { |
| | | return ywStocktakingMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwStocktaking findOne(YwStocktaking ywStocktaking) { |
| | | QueryWrapper<YwStocktaking> wrapper = new QueryWrapper<>(ywStocktaking); |
| | | return ywStocktakingMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwStocktaking> findList(YwStocktaking ywStocktaking) { |
| | | QueryWrapper<YwStocktaking> wrapper = new QueryWrapper<>(ywStocktaking); |
| | | return ywStocktakingMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwStocktaking> findPage(PageWrap<YwStocktaking> pageWrap) { |
| | | IPage<YwStocktaking> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwStocktaking> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getPosition() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getPosition, pageWrap.getModel().getPosition()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getUserId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getUserId, pageWrap.getModel().getUserId()); |
| | | } |
| | | if (pageWrap.getModel().getPlanDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getPlanDate, Utils.Date.getStart(pageWrap.getModel().getPlanDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getPlanDate, Utils.Date.getEnd(pageWrap.getModel().getPlanDate())); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getDealUserId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getDealUserId, pageWrap.getModel().getDealUserId()); |
| | | } |
| | | if (pageWrap.getModel().getDealDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getDealDate, Utils.Date.getStart(pageWrap.getModel().getDealDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getDealDate, Utils.Date.getEnd(pageWrap.getModel().getDealDate())); |
| | | } |
| | | if (pageWrap.getModel().getDealInfo() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getDealInfo, pageWrap.getModel().getDealInfo()); |
| | | } |
| | | if (pageWrap.getModel().getDoneNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getDoneNum, pageWrap.getModel().getDoneNum()); |
| | | } |
| | | if (pageWrap.getModel().getWaitNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getWaitNum, pageWrap.getModel().getWaitNum()); |
| | | } |
| | | if (pageWrap.getModel().getTotalNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getTotalNum, pageWrap.getModel().getTotalNum()); |
| | | } |
| | | if (pageWrap.getModel().getProfitNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getProfitNum, pageWrap.getModel().getProfitNum()); |
| | | } |
| | | if (pageWrap.getModel().getLossNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getLossNum, pageWrap.getModel().getLossNum()); |
| | | } |
| | | if (pageWrap.getModel().getEqualNum() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getEqualNum, pageWrap.getModel().getEqualNum()); |
| | | } |
| | | if (pageWrap.getModel().getDoneUserId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getDoneUserId, pageWrap.getModel().getDoneUserId()); |
| | | } |
| | | if (pageWrap.getModel().getDoneDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getDoneDate, Utils.Date.getStart(pageWrap.getModel().getDoneDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getDoneDate, Utils.Date.getEnd(pageWrap.getModel().getDoneDate())); |
| | | } |
| | | if (pageWrap.getModel().getDoneInfo() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getDoneInfo, pageWrap.getModel().getDoneInfo()); |
| | | } |
| | | if (pageWrap.getModel().getCancelUserId() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getCancelUserId, pageWrap.getModel().getCancelUserId()); |
| | | } |
| | | if (pageWrap.getModel().getCancelDate() != null) { |
| | | queryWrapper.lambda().ge(YwStocktaking::getCancelDate, Utils.Date.getStart(pageWrap.getModel().getCancelDate())); |
| | | queryWrapper.lambda().le(YwStocktaking::getCancelDate, Utils.Date.getEnd(pageWrap.getModel().getCancelDate())); |
| | | } |
| | | if (pageWrap.getModel().getCancelInfo() != null) { |
| | | queryWrapper.lambda().eq(YwStocktaking::getCancelInfo, pageWrap.getModel().getCancelInfo()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywStocktakingMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwStocktaking ywStocktaking) { |
| | | QueryWrapper<YwStocktaking> wrapper = new QueryWrapper<>(ywStocktaking); |
| | | return ywStocktakingMapper.selectCount(wrapper); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.service.business.impl; |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.YwWarehouseMapper; |
| | | import com.doumee.dao.business.model.YwWarehouse; |
| | | import com.doumee.service.business.YwWarehouseService; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¿ç»´ä»åºä¿¡æ¯è¡¨Serviceå®ç° |
| | | * @author æ±è¹è¹ |
| | | * @date 2025/01/06 11:05 |
| | | */ |
| | | @Service |
| | | public class YwWarehouseServiceImpl implements YwWarehouseService { |
| | | |
| | | @Autowired |
| | | private YwWarehouseMapper ywWarehouseMapper; |
| | | |
| | | @Override |
| | | public Integer create(YwWarehouse ywWarehouse) { |
| | | ywWarehouseMapper.insert(ywWarehouse); |
| | | return ywWarehouse.getId(); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteById(Integer id) { |
| | | ywWarehouseMapper.deleteById(id); |
| | | } |
| | | |
| | | @Override |
| | | public void delete(YwWarehouse ywWarehouse) { |
| | | UpdateWrapper<YwWarehouse> deleteWrapper = new UpdateWrapper<>(ywWarehouse); |
| | | ywWarehouseMapper.delete(deleteWrapper); |
| | | } |
| | | |
| | | @Override |
| | | public void deleteByIdInBatch(List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return; |
| | | } |
| | | ywWarehouseMapper.deleteBatchIds(ids); |
| | | } |
| | | |
| | | @Override |
| | | public void updateById(YwWarehouse ywWarehouse) { |
| | | ywWarehouseMapper.updateById(ywWarehouse); |
| | | } |
| | | |
| | | @Override |
| | | public void updateByIdInBatch(List<YwWarehouse> ywWarehouses) { |
| | | if (CollectionUtils.isEmpty(ywWarehouses)) { |
| | | return; |
| | | } |
| | | for (YwWarehouse ywWarehouse: ywWarehouses) { |
| | | this.updateById(ywWarehouse); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public YwWarehouse findById(Integer id) { |
| | | return ywWarehouseMapper.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public YwWarehouse findOne(YwWarehouse ywWarehouse) { |
| | | QueryWrapper<YwWarehouse> wrapper = new QueryWrapper<>(ywWarehouse); |
| | | return ywWarehouseMapper.selectOne(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public List<YwWarehouse> findList(YwWarehouse ywWarehouse) { |
| | | QueryWrapper<YwWarehouse> wrapper = new QueryWrapper<>(ywWarehouse); |
| | | return ywWarehouseMapper.selectList(wrapper); |
| | | } |
| | | |
| | | @Override |
| | | public PageData<YwWarehouse> findPage(PageWrap<YwWarehouse> pageWrap) { |
| | | IPage<YwWarehouse> page = new Page<>(pageWrap.getPage(), pageWrap.getCapacity()); |
| | | QueryWrapper<YwWarehouse> queryWrapper = new QueryWrapper<>(); |
| | | Utils.MP.blankToNull(pageWrap.getModel()); |
| | | if (pageWrap.getModel().getId() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getId, pageWrap.getModel().getId()); |
| | | } |
| | | if (pageWrap.getModel().getCreator() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getCreator, pageWrap.getModel().getCreator()); |
| | | } |
| | | if (pageWrap.getModel().getCreateDate() != null) { |
| | | queryWrapper.lambda().ge(YwWarehouse::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate())); |
| | | queryWrapper.lambda().le(YwWarehouse::getCreateDate, Utils.Date.getEnd(pageWrap.getModel().getCreateDate())); |
| | | } |
| | | if (pageWrap.getModel().getEditor() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getEditor, pageWrap.getModel().getEditor()); |
| | | } |
| | | if (pageWrap.getModel().getEditDate() != null) { |
| | | queryWrapper.lambda().ge(YwWarehouse::getEditDate, Utils.Date.getStart(pageWrap.getModel().getEditDate())); |
| | | queryWrapper.lambda().le(YwWarehouse::getEditDate, Utils.Date.getEnd(pageWrap.getModel().getEditDate())); |
| | | } |
| | | if (pageWrap.getModel().getIsdeleted() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getIsdeleted, pageWrap.getModel().getIsdeleted()); |
| | | } |
| | | if (pageWrap.getModel().getRemark() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getRemark, pageWrap.getModel().getRemark()); |
| | | } |
| | | if (pageWrap.getModel().getStatus() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getStatus, pageWrap.getModel().getStatus()); |
| | | } |
| | | if (pageWrap.getModel().getName() != null) { |
| | | queryWrapper.lambda().ge(YwWarehouse::getName, Utils.Date.getStart(pageWrap.getModel().getName())); |
| | | queryWrapper.lambda().le(YwWarehouse::getName, Utils.Date.getEnd(pageWrap.getModel().getName())); |
| | | } |
| | | if (pageWrap.getModel().getPosition() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getPosition, pageWrap.getModel().getPosition()); |
| | | } |
| | | if (pageWrap.getModel().getCode() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getCode, pageWrap.getModel().getCode()); |
| | | } |
| | | if (pageWrap.getModel().getUserId() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getUserId, pageWrap.getModel().getUserId()); |
| | | } |
| | | if (pageWrap.getModel().getSortnum() != null) { |
| | | queryWrapper.lambda().eq(YwWarehouse::getSortnum, pageWrap.getModel().getSortnum()); |
| | | } |
| | | for(PageWrap.SortData sortData: pageWrap.getSorts()) { |
| | | if (sortData.getDirection().equalsIgnoreCase(PageWrap.DESC)) { |
| | | queryWrapper.orderByDesc(sortData.getProperty()); |
| | | } else { |
| | | queryWrapper.orderByAsc(sortData.getProperty()); |
| | | } |
| | | } |
| | | return PageData.from(ywWarehouseMapper.selectPage(page, queryWrapper)); |
| | | } |
| | | |
| | | @Override |
| | | public long count(YwWarehouse ywWarehouse) { |
| | | QueryWrapper<YwWarehouse> wrapper = new QueryWrapper<>(ywWarehouse); |
| | | return ywWarehouseMapper.selectCount(wrapper); |
| | | } |
| | | } |