Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -19,7 +19,7 @@
|
||||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||||
|
||||
<properties>
|
||||
<revision>3.0.35</revision>
|
||||
<revision>3.0.37</revision>
|
||||
<!-- Maven 相关 -->
|
||||
<java.version>17</java.version>
|
||||
<maven.compiler.source>${java.version}</maven.compiler.source>
|
||||
|
||||
@@ -12,6 +12,14 @@ import com.zt.plat.framework.common.exception.ErrorCode;
|
||||
public interface ErrorCodeConstants {
|
||||
|
||||
// ========== 示例模块 1-001-000-000 ==========
|
||||
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode MATERIAL_OTHER_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode ELEMENT_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode CONTACT_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode MATERIAL_DESTROY_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode MATERIAL_INFOMATION_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode COMPANY_RELATIVITY_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode WAREHOUSE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
ErrorCode FACTORY_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.AccountDO;
|
||||
import com.zt.plat.module.base.service.base.AccountService;
|
||||
|
||||
@Tag(name = "管理后台 - 账户条款")
|
||||
@RestController
|
||||
@RequestMapping("/base/account")
|
||||
@Validated
|
||||
public class AccountController {
|
||||
|
||||
|
||||
@Resource
|
||||
private AccountService accountService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建账户条款")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:create')")
|
||||
public CommonResult<AccountRespVO> createAccount(@Valid @RequestBody AccountSaveReqVO createReqVO) {
|
||||
return success(accountService.createAccount(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新账户条款")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:update')")
|
||||
public CommonResult<Boolean> updateAccount(@Valid @RequestBody AccountSaveReqVO updateReqVO) {
|
||||
accountService.updateAccount(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除账户条款")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:account:delete')")
|
||||
public CommonResult<Boolean> deleteAccount(@RequestParam("id") Long id) {
|
||||
accountService.deleteAccount(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除账户条款")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:delete')")
|
||||
public CommonResult<Boolean> deleteAccountList(@RequestBody BatchDeleteReqVO req) {
|
||||
accountService.deleteAccountListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得账户条款")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:query')")
|
||||
public CommonResult<AccountRespVO> getAccount(@RequestParam("id") Long id) {
|
||||
AccountDO account = accountService.getAccount(id);
|
||||
return success(BeanUtils.toBean(account, AccountRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得账户条款分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:query')")
|
||||
public CommonResult<PageResult<AccountRespVO>> getAccountPage(@Valid AccountPageReqVO pageReqVO) {
|
||||
PageResult<AccountDO> pageResult = accountService.getAccountPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, AccountRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出账户条款 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:account:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportAccountExcel(@Valid AccountPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<AccountDO> list = accountService.getAccountPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "账户条款.xls", "数据", AccountRespVO.class,
|
||||
BeanUtils.toBean(list, AccountRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.CompanyRelativityDO;
|
||||
import com.zt.plat.module.base.service.base.CompanyRelativityService;
|
||||
|
||||
@Tag(name = "管理后台 - 公司关系")
|
||||
@RestController
|
||||
@RequestMapping("/base/company-relativity")
|
||||
@Validated
|
||||
public class CompanyRelativityController {
|
||||
|
||||
|
||||
@Resource
|
||||
private CompanyRelativityService companyRelativityService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建公司关系")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:create')")
|
||||
public CommonResult<CompanyRelativityRespVO> createCompanyRelativity(@Valid @RequestBody CompanyRelativitySaveReqVO createReqVO) {
|
||||
return success(companyRelativityService.createCompanyRelativity(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新公司关系")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:update')")
|
||||
public CommonResult<Boolean> updateCompanyRelativity(@Valid @RequestBody CompanyRelativitySaveReqVO updateReqVO) {
|
||||
companyRelativityService.updateCompanyRelativity(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除公司关系")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:delete')")
|
||||
public CommonResult<Boolean> deleteCompanyRelativity(@RequestParam("id") Long id) {
|
||||
companyRelativityService.deleteCompanyRelativity(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除公司关系")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:delete')")
|
||||
public CommonResult<Boolean> deleteCompanyRelativityList(@RequestBody BatchDeleteReqVO req) {
|
||||
companyRelativityService.deleteCompanyRelativityListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得公司关系")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:query')")
|
||||
public CommonResult<CompanyRelativityRespVO> getCompanyRelativity(@RequestParam("id") Long id) {
|
||||
CompanyRelativityDO companyRelativity = companyRelativityService.getCompanyRelativity(id);
|
||||
return success(BeanUtils.toBean(companyRelativity, CompanyRelativityRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得公司关系分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:query')")
|
||||
public CommonResult<PageResult<CompanyRelativityRespVO>> getCompanyRelativityPage(@Valid CompanyRelativityPageReqVO pageReqVO) {
|
||||
PageResult<CompanyRelativityDO> pageResult = companyRelativityService.getCompanyRelativityPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CompanyRelativityRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出公司关系 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:company-relativity:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportCompanyRelativityExcel(@Valid CompanyRelativityPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<CompanyRelativityDO> list = companyRelativityService.getCompanyRelativityPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "公司关系.xls", "数据", CompanyRelativityRespVO.class,
|
||||
BeanUtils.toBean(list, CompanyRelativityRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ContactDO;
|
||||
import com.zt.plat.module.base.service.base.ContactService;
|
||||
|
||||
@Tag(name = "管理后台 - 联系人信息")
|
||||
@RestController
|
||||
@RequestMapping("/base/contact")
|
||||
@Validated
|
||||
public class ContactController {
|
||||
|
||||
|
||||
@Resource
|
||||
private ContactService contactService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建联系人信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:create')")
|
||||
public CommonResult<ContactRespVO> createContact(@Valid @RequestBody ContactSaveReqVO createReqVO) {
|
||||
return success(contactService.createContact(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新联系人信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:update')")
|
||||
public CommonResult<Boolean> updateContact(@Valid @RequestBody ContactSaveReqVO updateReqVO) {
|
||||
contactService.updateContact(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除联系人信息")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:delete')")
|
||||
public CommonResult<Boolean> deleteContact(@RequestParam("id") Long id) {
|
||||
contactService.deleteContact(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除联系人信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:delete')")
|
||||
public CommonResult<Boolean> deleteContactList(@RequestBody BatchDeleteReqVO req) {
|
||||
contactService.deleteContactListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得联系人信息")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:query')")
|
||||
public CommonResult<ContactRespVO> getContact(@RequestParam("id") Long id) {
|
||||
ContactDO contact = contactService.getContact(id);
|
||||
return success(BeanUtils.toBean(contact, ContactRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得联系人信息分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:query')")
|
||||
public CommonResult<PageResult<ContactRespVO>> getContactPage(@Valid ContactPageReqVO pageReqVO) {
|
||||
PageResult<ContactDO> pageResult = contactService.getContactPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ContactRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出联系人信息 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:contact:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportContactExcel(@Valid ContactPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<ContactDO> list = contactService.getContactPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "联系人信息.xls", "数据", ContactRespVO.class,
|
||||
BeanUtils.toBean(list, ContactRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ElementDO;
|
||||
import com.zt.plat.module.base.service.base.ElementService;
|
||||
|
||||
@Tag(name = "管理后台 - 金属元素")
|
||||
@RestController
|
||||
@RequestMapping("/base/element")
|
||||
@Validated
|
||||
public class ElementController {
|
||||
|
||||
|
||||
@Resource
|
||||
private ElementService elementService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建金属元素")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:create')")
|
||||
public CommonResult<ElementRespVO> createElement(@Valid @RequestBody ElementSaveReqVO createReqVO) {
|
||||
return success(elementService.createElement(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新金属元素")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:update')")
|
||||
public CommonResult<Boolean> updateElement(@Valid @RequestBody ElementSaveReqVO updateReqVO) {
|
||||
elementService.updateElement(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除金属元素")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:element:delete')")
|
||||
public CommonResult<Boolean> deleteElement(@RequestParam("id") Long id) {
|
||||
elementService.deleteElement(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除金属元素")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:delete')")
|
||||
public CommonResult<Boolean> deleteElementList(@RequestBody BatchDeleteReqVO req) {
|
||||
elementService.deleteElementListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得金属元素")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:query')")
|
||||
public CommonResult<ElementRespVO> getElement(@RequestParam("id") Long id) {
|
||||
ElementDO element = elementService.getElement(id);
|
||||
return success(BeanUtils.toBean(element, ElementRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得金属元素分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:query')")
|
||||
public CommonResult<PageResult<ElementRespVO>> getElementPage(@Valid ElementPageReqVO pageReqVO) {
|
||||
PageResult<ElementDO> pageResult = elementService.getElementPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ElementRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出金属元素 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:element:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportElementExcel(@Valid ElementPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<ElementDO> list = elementService.getElementPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "金属元素.xls", "数据", ElementRespVO.class,
|
||||
BeanUtils.toBean(list, ElementRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.FactoryDO;
|
||||
import com.zt.plat.module.base.service.base.FactoryService;
|
||||
|
||||
@Tag(name = "管理后台 - 工厂")
|
||||
@RestController
|
||||
@RequestMapping("/base/factory")
|
||||
@Validated
|
||||
public class FactoryController {
|
||||
|
||||
|
||||
@Resource
|
||||
private FactoryService factoryService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建工厂")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:create')")
|
||||
public CommonResult<FactoryRespVO> createFactory(@Valid @RequestBody FactorySaveReqVO createReqVO) {
|
||||
return success(factoryService.createFactory(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新工厂")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:update')")
|
||||
public CommonResult<Boolean> updateFactory(@Valid @RequestBody FactorySaveReqVO updateReqVO) {
|
||||
factoryService.updateFactory(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除工厂")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:delete')")
|
||||
public CommonResult<Boolean> deleteFactory(@RequestParam("id") Long id) {
|
||||
factoryService.deleteFactory(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除工厂")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:delete')")
|
||||
public CommonResult<Boolean> deleteFactoryList(@RequestBody BatchDeleteReqVO req) {
|
||||
factoryService.deleteFactoryListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得工厂")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:query')")
|
||||
public CommonResult<FactoryRespVO> getFactory(@RequestParam("id") Long id) {
|
||||
FactoryDO factory = factoryService.getFactory(id);
|
||||
return success(BeanUtils.toBean(factory, FactoryRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得工厂分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:query')")
|
||||
public CommonResult<PageResult<FactoryRespVO>> getFactoryPage(@Valid FactoryPageReqVO pageReqVO) {
|
||||
PageResult<FactoryDO> pageResult = factoryService.getFactoryPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, FactoryRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出工厂 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:factory:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportFactoryExcel(@Valid FactoryPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<FactoryDO> list = factoryService.getFactoryPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "工厂.xls", "数据", FactoryRespVO.class,
|
||||
BeanUtils.toBean(list, FactoryRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialDestroyDO;
|
||||
import com.zt.plat.module.base.service.base.MaterialDestroyService;
|
||||
|
||||
@Tag(name = "管理后台 - 物料回收率")
|
||||
@RestController
|
||||
@RequestMapping("/base/material-destroy")
|
||||
@Validated
|
||||
public class MaterialDestroyController {
|
||||
|
||||
|
||||
@Resource
|
||||
private MaterialDestroyService materialDestroyService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建物料回收率")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:create')")
|
||||
public CommonResult<MaterialDestroyRespVO> createMaterialDestroy(@Valid @RequestBody MaterialDestroySaveReqVO createReqVO) {
|
||||
return success(materialDestroyService.createMaterialDestroy(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新物料回收率")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:update')")
|
||||
public CommonResult<Boolean> updateMaterialDestroy(@Valid @RequestBody MaterialDestroySaveReqVO updateReqVO) {
|
||||
materialDestroyService.updateMaterialDestroy(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除物料回收率")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialDestroy(@RequestParam("id") Long id) {
|
||||
materialDestroyService.deleteMaterialDestroy(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除物料回收率")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialDestroyList(@RequestBody BatchDeleteReqVO req) {
|
||||
materialDestroyService.deleteMaterialDestroyListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得物料回收率")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:query')")
|
||||
public CommonResult<MaterialDestroyRespVO> getMaterialDestroy(@RequestParam("id") Long id) {
|
||||
MaterialDestroyDO materialDestroy = materialDestroyService.getMaterialDestroy(id);
|
||||
return success(BeanUtils.toBean(materialDestroy, MaterialDestroyRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得物料回收率分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:query')")
|
||||
public CommonResult<PageResult<MaterialDestroyRespVO>> getMaterialDestroyPage(@Valid MaterialDestroyPageReqVO pageReqVO) {
|
||||
PageResult<MaterialDestroyDO> pageResult = materialDestroyService.getMaterialDestroyPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, MaterialDestroyRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出物料回收率 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-destroy:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportMaterialDestroyExcel(@Valid MaterialDestroyPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<MaterialDestroyDO> list = materialDestroyService.getMaterialDestroyPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "物料回收率.xls", "数据", MaterialDestroyRespVO.class,
|
||||
BeanUtils.toBean(list, MaterialDestroyRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
||||
import com.zt.plat.module.base.service.base.MaterialInfomationService;
|
||||
|
||||
@Tag(name = "管理后台 - 物料信息")
|
||||
@RestController
|
||||
@RequestMapping("/base/material-infomation")
|
||||
@Validated
|
||||
public class MaterialInfomationController {
|
||||
|
||||
|
||||
@Resource
|
||||
private MaterialInfomationService materialInfomationService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建物料信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:create')")
|
||||
public CommonResult<MaterialInfomationRespVO> createMaterialInfomation(@Valid @RequestBody MaterialInfomationSaveReqVO createReqVO) {
|
||||
return success(materialInfomationService.createMaterialInfomation(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新物料信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:update')")
|
||||
public CommonResult<Boolean> updateMaterialInfomation(@Valid @RequestBody MaterialInfomationSaveReqVO updateReqVO) {
|
||||
materialInfomationService.updateMaterialInfomation(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除物料信息")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialInfomation(@RequestParam("id") Long id) {
|
||||
materialInfomationService.deleteMaterialInfomation(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除物料信息")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialInfomationList(@RequestBody BatchDeleteReqVO req) {
|
||||
materialInfomationService.deleteMaterialInfomationListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得物料信息")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:query')")
|
||||
public CommonResult<MaterialInfomationRespVO> getMaterialInfomation(@RequestParam("id") Long id) {
|
||||
MaterialInfomationDO materialInfomation = materialInfomationService.getMaterialInfomation(id);
|
||||
return success(BeanUtils.toBean(materialInfomation, MaterialInfomationRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得物料信息分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:query')")
|
||||
public CommonResult<PageResult<MaterialInfomationRespVO>> getMaterialInfomationPage(@Valid MaterialInfomationPageReqVO pageReqVO) {
|
||||
PageResult<MaterialInfomationDO> pageResult = materialInfomationService.getMaterialInfomationPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, MaterialInfomationRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出物料信息 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-infomation:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportMaterialInfomationExcel(@Valid MaterialInfomationPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<MaterialInfomationDO> list = materialInfomationService.getMaterialInfomationPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "物料信息.xls", "数据", MaterialInfomationRespVO.class,
|
||||
BeanUtils.toBean(list, MaterialInfomationRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialOtherDO;
|
||||
import com.zt.plat.module.base.service.base.MaterialOtherService;
|
||||
|
||||
@Tag(name = "管理后台 - 物料拓展数据")
|
||||
@RestController
|
||||
@RequestMapping("/base/material-other")
|
||||
@Validated
|
||||
public class MaterialOtherController {
|
||||
|
||||
|
||||
@Resource
|
||||
private MaterialOtherService materialOtherService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建物料拓展数据")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:create')")
|
||||
public CommonResult<MaterialOtherRespVO> createMaterialOther(@Valid @RequestBody MaterialOtherSaveReqVO createReqVO) {
|
||||
return success(materialOtherService.createMaterialOther(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新物料拓展数据")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:update')")
|
||||
public CommonResult<Boolean> updateMaterialOther(@Valid @RequestBody MaterialOtherSaveReqVO updateReqVO) {
|
||||
materialOtherService.updateMaterialOther(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除物料拓展数据")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialOther(@RequestParam("id") Long id) {
|
||||
materialOtherService.deleteMaterialOther(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除物料拓展数据")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:delete')")
|
||||
public CommonResult<Boolean> deleteMaterialOtherList(@RequestBody BatchDeleteReqVO req) {
|
||||
materialOtherService.deleteMaterialOtherListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得物料拓展数据")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:query')")
|
||||
public CommonResult<MaterialOtherRespVO> getMaterialOther(@RequestParam("id") Long id) {
|
||||
MaterialOtherDO materialOther = materialOtherService.getMaterialOther(id);
|
||||
return success(BeanUtils.toBean(materialOther, MaterialOtherRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得物料拓展数据分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:query')")
|
||||
public CommonResult<PageResult<MaterialOtherRespVO>> getMaterialOtherPage(@Valid MaterialOtherPageReqVO pageReqVO) {
|
||||
PageResult<MaterialOtherDO> pageResult = materialOtherService.getMaterialOtherPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, MaterialOtherRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出物料拓展数据 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:material-other:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportMaterialOtherExcel(@Valid MaterialOtherPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<MaterialOtherDO> list = materialOtherService.getMaterialOtherPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "物料拓展数据.xls", "数据", MaterialOtherRespVO.class,
|
||||
BeanUtils.toBean(list, MaterialOtherRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package com.zt.plat.module.base.controller.admin.base;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
import jakarta.validation.constraints.*;
|
||||
import jakarta.validation.*;
|
||||
import jakarta.servlet.http.*;
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import static com.zt.plat.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import com.zt.plat.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.WarehouseDO;
|
||||
import com.zt.plat.module.base.service.base.WarehouseService;
|
||||
|
||||
@Tag(name = "管理后台 - 仓库")
|
||||
@RestController
|
||||
@RequestMapping("/base/warehouse")
|
||||
@Validated
|
||||
public class WarehouseController {
|
||||
|
||||
|
||||
@Resource
|
||||
private WarehouseService warehouseService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建仓库")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:create')")
|
||||
public CommonResult<WarehouseRespVO> createWarehouse(@Valid @RequestBody WarehouseSaveReqVO createReqVO) {
|
||||
return success(warehouseService.createWarehouse(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新仓库")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:update')")
|
||||
public CommonResult<Boolean> updateWarehouse(@Valid @RequestBody WarehouseSaveReqVO updateReqVO) {
|
||||
warehouseService.updateWarehouse(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除仓库")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:delete')")
|
||||
public CommonResult<Boolean> deleteWarehouse(@RequestParam("id") Long id) {
|
||||
warehouseService.deleteWarehouse(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除仓库")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:delete')")
|
||||
public CommonResult<Boolean> deleteWarehouseList(@RequestBody BatchDeleteReqVO req) {
|
||||
warehouseService.deleteWarehouseListByIds(req.getIds());
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得仓库")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:query')")
|
||||
public CommonResult<WarehouseRespVO> getWarehouse(@RequestParam("id") Long id) {
|
||||
WarehouseDO warehouse = warehouseService.getWarehouse(id);
|
||||
return success(BeanUtils.toBean(warehouse, WarehouseRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得仓库分页")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:query')")
|
||||
public CommonResult<PageResult<WarehouseRespVO>> getWarehousePage(@Valid WarehousePageReqVO pageReqVO) {
|
||||
PageResult<WarehouseDO> pageResult = warehouseService.getWarehousePage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, WarehouseRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出仓库 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('base:warehouse:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportWarehouseExcel(@Valid WarehousePageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<WarehouseDO> list = warehouseService.getWarehousePage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "仓库.xls", "数据", WarehouseRespVO.class,
|
||||
BeanUtils.toBean(list, WarehouseRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 账户条款分页 Request VO")
|
||||
@Data
|
||||
public class AccountPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "类型", example = "2")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "户名", example = "赵六")
|
||||
private String accountName;
|
||||
|
||||
@Schema(description = "开户行", example = "2834")
|
||||
private String bankAccount;
|
||||
|
||||
@Schema(description = "户号")
|
||||
private String accountNumber;
|
||||
|
||||
@Schema(description = "税号/社会信用代码")
|
||||
private String taxNumber;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 账户条款 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class AccountRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15166")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@ExcelProperty("类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@ExcelProperty("户名")
|
||||
private String accountName;
|
||||
|
||||
@Schema(description = "开户行", requiredMode = Schema.RequiredMode.REQUIRED, example = "2834")
|
||||
@ExcelProperty("开户行")
|
||||
private String bankAccount;
|
||||
|
||||
@Schema(description = "户号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("户号")
|
||||
private String accountNumber;
|
||||
|
||||
@Schema(description = "税号/社会信用代码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("税号/社会信用代码")
|
||||
private String taxNumber;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 账户条款新增/修改 Request VO")
|
||||
@Data
|
||||
public class AccountSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15166")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotEmpty(message = "类型不能为空")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "户名", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||
@NotEmpty(message = "户名不能为空")
|
||||
private String accountName;
|
||||
|
||||
@Schema(description = "开户行", requiredMode = Schema.RequiredMode.REQUIRED, example = "2834")
|
||||
@NotEmpty(message = "开户行不能为空")
|
||||
private String bankAccount;
|
||||
|
||||
@Schema(description = "户号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "户号不能为空")
|
||||
private String accountNumber;
|
||||
|
||||
@Schema(description = "税号/社会信用代码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "税号/社会信用代码不能为空")
|
||||
private String taxNumber;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 公司关系分页 Request VO")
|
||||
@Data
|
||||
public class CompanyRelativityPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "ERP公司编码;一个供应链公司,可以关联多个ERP公司")
|
||||
private String erpNumber;
|
||||
|
||||
@Schema(description = "供应链公司编码")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 公司关系 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class CompanyRelativityRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "12011")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "ERP公司编码;一个供应链公司,可以关联多个ERP公司", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("ERP公司编码;一个供应链公司,可以关联多个ERP公司")
|
||||
private String erpNumber;
|
||||
|
||||
@Schema(description = "供应链公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("供应链公司编码")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 公司关系新增/修改 Request VO")
|
||||
@Data
|
||||
public class CompanyRelativitySaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "12011")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "ERP公司编码;一个供应链公司,可以关联多个ERP公司", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "ERP公司编码;一个供应链公司,可以关联多个ERP公司不能为空")
|
||||
private String erpNumber;
|
||||
|
||||
@Schema(description = "供应链公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应链公司编码不能为空")
|
||||
private String number;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 联系人信息分页 Request VO")
|
||||
@Data
|
||||
public class ContactPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "类型甲方/乙方", example = "2")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "联系人")
|
||||
private String contact;
|
||||
|
||||
@Schema(description = "电话")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "邮箱")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "传真")
|
||||
private String fax;
|
||||
|
||||
@Schema(description = "联系地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 联系人信息 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ContactRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27121")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "类型甲方/乙方", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@ExcelProperty("类型甲方/乙方")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("联系人")
|
||||
private String contact;
|
||||
|
||||
@Schema(description = "电话", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("电话")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "邮箱")
|
||||
@ExcelProperty("邮箱")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "传真")
|
||||
@ExcelProperty("传真")
|
||||
private String fax;
|
||||
|
||||
@Schema(description = "联系地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("联系地址")
|
||||
private String address;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 联系人信息新增/修改 Request VO")
|
||||
@Data
|
||||
public class ContactSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27121")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "类型甲方/乙方", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
|
||||
@NotEmpty(message = "类型甲方/乙方不能为空")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "联系人", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "联系人不能为空")
|
||||
private String contact;
|
||||
|
||||
@Schema(description = "电话", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "电话不能为空")
|
||||
private String tel;
|
||||
|
||||
@Schema(description = "邮箱")
|
||||
private String email;
|
||||
|
||||
@Schema(description = "传真")
|
||||
private String fax;
|
||||
|
||||
@Schema(description = "联系地址", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "联系地址不能为空")
|
||||
private String address;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 金属元素分页 Request VO")
|
||||
@Data
|
||||
public class ElementPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "芋艿")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 金属元素 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class ElementRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21884")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "金属元素缩写", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||
@ExcelProperty("金属元素名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 金属元素新增/修改 Request VO")
|
||||
@Data
|
||||
public class ElementSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21884")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "金属元素缩写", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "金属元素缩写不能为空")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||
@NotEmpty(message = "金属元素名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "金属元素编码不能为空")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "品位单位不能为空")
|
||||
private String gradeUnit;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 工厂分页 Request VO")
|
||||
@Data
|
||||
public class FactoryPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "工厂名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "ERP工厂名称", example = "张三")
|
||||
private String erpName;
|
||||
|
||||
@Schema(description = "ERP工厂编码")
|
||||
private String erpNumber;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 工厂 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class FactoryRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10325")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
@ExcelProperty("公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "工厂名称", example = "赵六")
|
||||
@ExcelProperty("工厂名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
@ExcelProperty("工厂编码")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
@ExcelProperty("是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "ERP工厂名称", example = "张三")
|
||||
@ExcelProperty("ERP工厂名称")
|
||||
private String erpName;
|
||||
|
||||
@Schema(description = "ERP工厂编码")
|
||||
@ExcelProperty("ERP工厂编码")
|
||||
private String erpNumber;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 工厂新增/修改 Request VO")
|
||||
@Data
|
||||
public class FactorySaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10325")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "工厂名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
private String number;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "ERP工厂名称", example = "张三")
|
||||
private String erpName;
|
||||
|
||||
@Schema(description = "ERP工厂编码")
|
||||
private String erpNumber;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 物料回收率分页 Request VO")
|
||||
@Data
|
||||
public class MaterialDestroyPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "原料物料编码")
|
||||
private String upNumber;
|
||||
|
||||
@Schema(description = "返产品物料编码")
|
||||
private String downNumber;
|
||||
|
||||
@Schema(description = "回收率")
|
||||
private BigDecimal ratio;
|
||||
|
||||
@Schema(description = "是否使用该物料核销")
|
||||
private String operation;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "供应商编码")
|
||||
private String supplierNumber;
|
||||
|
||||
@Schema(description = "供应商名称", example = "王五")
|
||||
private String supplierName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物料回收率 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class MaterialDestroyRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23885")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "原料物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("原料物料编码")
|
||||
private String upNumber;
|
||||
|
||||
@Schema(description = "返产品物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("返产品物料编码")
|
||||
private String downNumber;
|
||||
|
||||
@Schema(description = "回收率", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("回收率")
|
||||
private BigDecimal ratio;
|
||||
|
||||
@Schema(description = "是否使用该物料核销")
|
||||
@ExcelProperty("是否使用该物料核销")
|
||||
private String operation;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "供应商编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("供应商编码")
|
||||
private String supplierNumber;
|
||||
|
||||
@Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@ExcelProperty("供应商名称")
|
||||
private String supplierName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
@ExcelProperty("是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 物料回收率新增/修改 Request VO")
|
||||
@Data
|
||||
public class MaterialDestroySaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23885")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "原料物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "原料物料编码不能为空")
|
||||
private String upNumber;
|
||||
|
||||
@Schema(description = "返产品物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "返产品物料编码不能为空")
|
||||
private String downNumber;
|
||||
|
||||
@Schema(description = "回收率", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "回收率不能为空")
|
||||
private BigDecimal ratio;
|
||||
|
||||
@Schema(description = "是否使用该物料核销")
|
||||
private String operation;
|
||||
|
||||
@Schema(description = "供应商编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "供应商编码不能为空")
|
||||
private String supplierNumber;
|
||||
|
||||
@Schema(description = "供应商名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||
@NotEmpty(message = "供应商名称不能为空")
|
||||
private String supplierName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 物料信息分页 Request VO")
|
||||
@Data
|
||||
public class MaterialInfomationPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "物料编码")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "物料名称", example = "张三")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物料信息 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class MaterialInfomationRespVO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3326")
|
||||
@ExcelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("物料编码")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||
@ExcelProperty("物料名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物料信息新增/修改 Request VO")
|
||||
@Data
|
||||
public class MaterialInfomationSaveReqVO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3326")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "物料编码不能为空")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||
@NotEmpty(message = "物料名称不能为空")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "备注不能为空")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 物料拓展数据分页 Request VO")
|
||||
@Data
|
||||
public class MaterialOtherPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "物料编码")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "物料名称", example = "王五")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "ERP物料编码")
|
||||
private String erpMaterialNumber;
|
||||
|
||||
@Schema(description = "ERP物料名称", example = "李四")
|
||||
private String erpMaterialName;
|
||||
|
||||
@Schema(description = "ERP物料计量单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "小数位数")
|
||||
private Long decimal;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物料拓展数据 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class MaterialOtherRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27804")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物料编码")
|
||||
@ExcelProperty("物料编码")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "物料名称", example = "王五")
|
||||
@ExcelProperty("物料名称")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "ERP物料编码")
|
||||
@ExcelProperty("ERP物料编码")
|
||||
private String erpMaterialNumber;
|
||||
|
||||
@Schema(description = "ERP物料名称", example = "李四")
|
||||
@ExcelProperty("ERP物料名称")
|
||||
private String erpMaterialName;
|
||||
|
||||
@Schema(description = "ERP物料计量单位")
|
||||
@ExcelProperty("ERP物料计量单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
@ExcelProperty("金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "赵六")
|
||||
@ExcelProperty("金属元素名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
@ExcelProperty("金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位")
|
||||
@ExcelProperty("品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "小数位数")
|
||||
@ExcelProperty("小数位数")
|
||||
private Long decimal;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
@ExcelProperty("是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 物料拓展数据新增/修改 Request VO")
|
||||
@Data
|
||||
public class MaterialOtherSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27804")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物料编码")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "物料名称", example = "王五")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "ERP物料编码")
|
||||
private String erpMaterialNumber;
|
||||
|
||||
@Schema(description = "ERP物料名称", example = "李四")
|
||||
private String erpMaterialName;
|
||||
|
||||
@Schema(description = "ERP物料计量单位")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
private String abbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "赵六")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "品位单位")
|
||||
private String gradeUnit;
|
||||
|
||||
@Schema(description = "小数位数")
|
||||
private Long decimal;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - 仓库分页 Request VO")
|
||||
@Data
|
||||
public class WarehousePageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
private String factoryNumber;
|
||||
|
||||
@Schema(description = "仓库名称", example = "李四")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
@Schema(description = "工厂名称", example = "李四")
|
||||
private String factoryName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "ERP库位编码")
|
||||
private String erpCoding;
|
||||
|
||||
@Schema(description = "ERP库位名称", example = "赵六")
|
||||
private String erpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - 仓库 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class WarehouseRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18014")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
@ExcelProperty("工厂编码")
|
||||
private String factoryNumber;
|
||||
|
||||
@Schema(description = "仓库名称", example = "李四")
|
||||
@ExcelProperty("仓库名称")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
@ExcelProperty("仓库编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "工厂名称", example = "李四")
|
||||
@ExcelProperty("工厂名称")
|
||||
private String factoryName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
@ExcelProperty("是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
@ExcelProperty("公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "ERP库位编码")
|
||||
@ExcelProperty("ERP库位编码")
|
||||
private String erpCoding;
|
||||
|
||||
@Schema(description = "ERP库位名称", example = "赵六")
|
||||
@ExcelProperty("ERP库位名称")
|
||||
private String erpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.base.controller.admin.base.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import jakarta.validation.constraints.*;
|
||||
|
||||
@Schema(description = "管理后台 - 仓库新增/修改 Request VO")
|
||||
@Data
|
||||
public class WarehouseSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "18014")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "工厂编码")
|
||||
private String factoryNumber;
|
||||
|
||||
@Schema(description = "仓库名称", example = "李四")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "仓库编码")
|
||||
private String coding;
|
||||
|
||||
@Schema(description = "工厂名称", example = "李四")
|
||||
private String factoryName;
|
||||
|
||||
@Schema(description = "是否启用")
|
||||
private String isEnable;
|
||||
|
||||
@Schema(description = "公司编码")
|
||||
private String companyNumber;
|
||||
|
||||
@Schema(description = "ERP库位编码")
|
||||
private String erpCoding;
|
||||
|
||||
@Schema(description = "ERP库位名称", example = "赵六")
|
||||
private String erpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 账户条款 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_acct")
|
||||
@KeySequence("sply_acct_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class AccountDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@TableField("TP")
|
||||
private String type;
|
||||
/**
|
||||
* 户名
|
||||
*/
|
||||
@TableField("ACCT_NAME")
|
||||
private String accountName;
|
||||
/**
|
||||
* 开户行
|
||||
*/
|
||||
@TableField("BNK_ACCT")
|
||||
private String bankAccount;
|
||||
/**
|
||||
* 户号
|
||||
*/
|
||||
@TableField("ACCT_NUM")
|
||||
private String accountNumber;
|
||||
/**
|
||||
* 税号/社会信用代码
|
||||
*/
|
||||
@TableField("TAX_NUM")
|
||||
private String taxNumber;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 公司关系 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_cpn_rel")
|
||||
@KeySequence("sply_cpn_rel_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class CompanyRelativityDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* ERP公司编码;一个供应链公司,可以关联多个ERP公司
|
||||
*/
|
||||
@TableField("ERP_NUM")
|
||||
private String erpNumber;
|
||||
/**
|
||||
* 供应链公司编码
|
||||
*/
|
||||
@TableField("NUM")
|
||||
private String number;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 联系人信息 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_ctct")
|
||||
@KeySequence("sply_ctct_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class ContactDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 类型甲方/乙方
|
||||
*/
|
||||
@TableField("TP")
|
||||
private String type;
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
@TableField("CTCT")
|
||||
private String contact;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
@TableField("TEL")
|
||||
private String tel;
|
||||
/**
|
||||
* 邮箱
|
||||
*/
|
||||
@TableField("EM")
|
||||
private String email;
|
||||
/**
|
||||
* 传真
|
||||
*/
|
||||
@TableField("FAX")
|
||||
private String fax;
|
||||
/**
|
||||
* 联系地址
|
||||
*/
|
||||
@TableField("ADR")
|
||||
private String address;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 金属元素 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_elem")
|
||||
@KeySequence("sply_elem_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class ElementDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 金属元素缩写
|
||||
*/
|
||||
@TableField("ABBR")
|
||||
private String abbreviation;
|
||||
/**
|
||||
* 金属元素名称
|
||||
*/
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
/**
|
||||
* 金属元素编码
|
||||
*/
|
||||
@TableField("CDG")
|
||||
private String coding;
|
||||
/**
|
||||
* 品位单位
|
||||
*/
|
||||
@TableField("GRD_UNT")
|
||||
private String gradeUnit;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 工厂 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_fact")
|
||||
@KeySequence("sply_fact_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class FactoryDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 公司编码
|
||||
*/
|
||||
@TableField("CPN_NUM")
|
||||
private String companyNumber;
|
||||
/**
|
||||
* 工厂名称
|
||||
*/
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
/**
|
||||
* 工厂编码
|
||||
*/
|
||||
@TableField("NUM")
|
||||
private String number;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
/**
|
||||
* ERP工厂名称
|
||||
*/
|
||||
@TableField("ERP_NAME")
|
||||
private String erpName;
|
||||
/**
|
||||
* ERP工厂编码
|
||||
*/
|
||||
@TableField("ERP_NUM")
|
||||
private String erpNumber;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,106 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 物料回收率 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_mtrl_dstr")
|
||||
@KeySequence("sply_mtrl_dstr_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class MaterialDestroyDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 原料物料编码
|
||||
*/
|
||||
@TableField("UP_NUM")
|
||||
private String upNumber;
|
||||
/**
|
||||
* 返产品物料编码
|
||||
*/
|
||||
@TableField("DOWN_NUM")
|
||||
private String downNumber;
|
||||
/**
|
||||
* 回收率
|
||||
*/
|
||||
@TableField("RTIO")
|
||||
private BigDecimal ratio;
|
||||
/**
|
||||
* 是否使用该物料核销
|
||||
*/
|
||||
@TableField("OPTN")
|
||||
private String operation;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
/**
|
||||
* 供应商编码
|
||||
*/
|
||||
@TableField("SPLR_NUM")
|
||||
private String supplierNumber;
|
||||
/**
|
||||
* 供应商名称
|
||||
*/
|
||||
@TableField("SPLR_NAME")
|
||||
private String supplierName;
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 物料信息 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("bse_mtrl_inf")
|
||||
@KeySequence("bse_mtrl_inf_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class MaterialInfomationDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
@TableField("CD")
|
||||
private String code;
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("RMK")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 物料拓展数据 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_mtrl_oth")
|
||||
@KeySequence("sply_mtrl_oth_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class MaterialOtherDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
@TableField("MTRL_NUM")
|
||||
private String materialNumber;
|
||||
/**
|
||||
* 物料名称
|
||||
*/
|
||||
@TableField("MTRL_NAME")
|
||||
private String materialName;
|
||||
/**
|
||||
* ERP物料编码
|
||||
*/
|
||||
@TableField("ERP_MTRL_NUM")
|
||||
private String erpMaterialNumber;
|
||||
/**
|
||||
* ERP物料名称
|
||||
*/
|
||||
@TableField("ERP_MTRL_NAME")
|
||||
private String erpMaterialName;
|
||||
/**
|
||||
* ERP物料计量单位
|
||||
*/
|
||||
@TableField("UNT")
|
||||
private String unit;
|
||||
/**
|
||||
* 金属元素缩写
|
||||
*/
|
||||
@TableField("ABBR")
|
||||
private String abbreviation;
|
||||
/**
|
||||
* 金属元素名称
|
||||
*/
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
/**
|
||||
* 金属元素编码
|
||||
*/
|
||||
@TableField("CDG")
|
||||
private String coding;
|
||||
/**
|
||||
* 品位单位
|
||||
*/
|
||||
@TableField("GRD_UNT")
|
||||
private String gradeUnit;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 小数位数
|
||||
*/
|
||||
@TableField("DEC")
|
||||
private Long decimal;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.zt.plat.module.base.dal.dataobject.base;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
|
||||
/**
|
||||
* 仓库 DO
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@TableName("sply_wrh")
|
||||
@KeySequence("sply_wrh_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
/**
|
||||
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||
*/
|
||||
public class WarehouseDO extends BaseDO {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
private Long id;
|
||||
/**
|
||||
* 工厂编码
|
||||
*/
|
||||
@TableField("FACT_NUM")
|
||||
private String factoryNumber;
|
||||
/**
|
||||
* 仓库名称
|
||||
*/
|
||||
@TableField("NAME")
|
||||
private String name;
|
||||
/**
|
||||
* 仓库编码
|
||||
*/
|
||||
@TableField("CDG")
|
||||
private String coding;
|
||||
/**
|
||||
* 公司编号
|
||||
*/
|
||||
@TableField("COMPANY_ID")
|
||||
private Long companyId;
|
||||
/**
|
||||
* 公司名称
|
||||
*/
|
||||
@TableField("COMPANY_NAME")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编号
|
||||
*/
|
||||
@TableField("DEPT_ID")
|
||||
private Long deptId;
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@TableField("DEPT_NAME")
|
||||
private String deptName;
|
||||
/**
|
||||
* 岗位编号
|
||||
*/
|
||||
@TableField("POST_ID")
|
||||
private Long postId;
|
||||
/**
|
||||
* 创建人名称
|
||||
*/
|
||||
@TableField("CREATOR_NAME")
|
||||
private String creatorName;
|
||||
/**
|
||||
* 更新人名称
|
||||
*/
|
||||
@TableField("UPDATER_NAME")
|
||||
private String updaterName;
|
||||
/**
|
||||
* 工厂名称
|
||||
*/
|
||||
@TableField("FACT_NAME")
|
||||
private String factoryName;
|
||||
/**
|
||||
* 是否启用
|
||||
*/
|
||||
@TableField("IS_ENB")
|
||||
private String isEnable;
|
||||
/**
|
||||
* 公司编码
|
||||
*/
|
||||
@TableField("CPN_NUM")
|
||||
private String companyNumber;
|
||||
/**
|
||||
* ERP库位编码
|
||||
*/
|
||||
@TableField("ERP_CDG")
|
||||
private String erpCoding;
|
||||
/**
|
||||
* ERP库位名称
|
||||
*/
|
||||
@TableField("ERP_NAME")
|
||||
private String erpName;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.AccountPageReqVO;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.AccountDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 账户条款 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface AccountMapper extends BaseMapperX<AccountDO> {
|
||||
|
||||
default PageResult<AccountDO> selectPage(AccountPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<AccountDO>()
|
||||
.eqIfPresent(AccountDO::getType, reqVO.getType())
|
||||
.likeIfPresent(AccountDO::getAccountName, reqVO.getAccountName())
|
||||
.eqIfPresent(AccountDO::getBankAccount, reqVO.getBankAccount())
|
||||
.eqIfPresent(AccountDO::getAccountNumber, reqVO.getAccountNumber())
|
||||
.eqIfPresent(AccountDO::getTaxNumber, reqVO.getTaxNumber())
|
||||
.betweenIfPresent(AccountDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(AccountDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.CompanyRelativityDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 公司关系 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface CompanyRelativityMapper extends BaseMapperX<CompanyRelativityDO> {
|
||||
|
||||
default PageResult<CompanyRelativityDO> selectPage(CompanyRelativityPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<CompanyRelativityDO>()
|
||||
.eqIfPresent(CompanyRelativityDO::getErpNumber, reqVO.getErpNumber())
|
||||
.eqIfPresent(CompanyRelativityDO::getNumber, reqVO.getNumber())
|
||||
.betweenIfPresent(CompanyRelativityDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(CompanyRelativityDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ContactDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 联系人信息 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface ContactMapper extends BaseMapperX<ContactDO> {
|
||||
|
||||
default PageResult<ContactDO> selectPage(ContactPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<ContactDO>()
|
||||
.eqIfPresent(ContactDO::getType, reqVO.getType())
|
||||
.eqIfPresent(ContactDO::getContact, reqVO.getContact())
|
||||
.eqIfPresent(ContactDO::getTel, reqVO.getTel())
|
||||
.eqIfPresent(ContactDO::getEmail, reqVO.getEmail())
|
||||
.eqIfPresent(ContactDO::getFax, reqVO.getFax())
|
||||
.eqIfPresent(ContactDO::getAddress, reqVO.getAddress())
|
||||
.betweenIfPresent(ContactDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(ContactDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ElementDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 金属元素 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface ElementMapper extends BaseMapperX<ElementDO> {
|
||||
|
||||
default PageResult<ElementDO> selectPage(ElementPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<ElementDO>()
|
||||
.eqIfPresent(ElementDO::getAbbreviation, reqVO.getAbbreviation())
|
||||
.likeIfPresent(ElementDO::getName, reqVO.getName())
|
||||
.eqIfPresent(ElementDO::getCoding, reqVO.getCoding())
|
||||
.eqIfPresent(ElementDO::getGradeUnit, reqVO.getGradeUnit())
|
||||
.betweenIfPresent(ElementDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(ElementDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.FactoryDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 工厂 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface FactoryMapper extends BaseMapperX<FactoryDO> {
|
||||
|
||||
default PageResult<FactoryDO> selectPage(FactoryPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<FactoryDO>()
|
||||
.eqIfPresent(FactoryDO::getCompanyNumber, reqVO.getCompanyNumber())
|
||||
.likeIfPresent(FactoryDO::getName, reqVO.getName())
|
||||
.eqIfPresent(FactoryDO::getNumber, reqVO.getNumber())
|
||||
.betweenIfPresent(FactoryDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(FactoryDO::getIsEnable, reqVO.getIsEnable())
|
||||
.likeIfPresent(FactoryDO::getErpName, reqVO.getErpName())
|
||||
.eqIfPresent(FactoryDO::getErpNumber, reqVO.getErpNumber())
|
||||
.orderByDesc(FactoryDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialDestroyDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 物料回收率 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaterialDestroyMapper extends BaseMapperX<MaterialDestroyDO> {
|
||||
|
||||
default PageResult<MaterialDestroyDO> selectPage(MaterialDestroyPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<MaterialDestroyDO>()
|
||||
.eqIfPresent(MaterialDestroyDO::getUpNumber, reqVO.getUpNumber())
|
||||
.eqIfPresent(MaterialDestroyDO::getDownNumber, reqVO.getDownNumber())
|
||||
.eqIfPresent(MaterialDestroyDO::getRatio, reqVO.getRatio())
|
||||
.eqIfPresent(MaterialDestroyDO::getOperation, reqVO.getOperation())
|
||||
.betweenIfPresent(MaterialDestroyDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(MaterialDestroyDO::getSupplierNumber, reqVO.getSupplierNumber())
|
||||
.likeIfPresent(MaterialDestroyDO::getSupplierName, reqVO.getSupplierName())
|
||||
.eqIfPresent(MaterialDestroyDO::getIsEnable, reqVO.getIsEnable())
|
||||
.orderByDesc(MaterialDestroyDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 物料信息 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaterialInfomationMapper extends BaseMapperX<MaterialInfomationDO> {
|
||||
|
||||
default PageResult<MaterialInfomationDO> selectPage(MaterialInfomationPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<MaterialInfomationDO>()
|
||||
.eqIfPresent(MaterialInfomationDO::getCode, reqVO.getCode())
|
||||
.likeIfPresent(MaterialInfomationDO::getName, reqVO.getName())
|
||||
.eqIfPresent(MaterialInfomationDO::getRemark, reqVO.getRemark())
|
||||
.betweenIfPresent(MaterialInfomationDO::getCreateTime, reqVO.getCreateTime())
|
||||
.orderByDesc(MaterialInfomationDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialOtherDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 物料拓展数据 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface MaterialOtherMapper extends BaseMapperX<MaterialOtherDO> {
|
||||
|
||||
default PageResult<MaterialOtherDO> selectPage(MaterialOtherPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<MaterialOtherDO>()
|
||||
.eqIfPresent(MaterialOtherDO::getMaterialNumber, reqVO.getMaterialNumber())
|
||||
.likeIfPresent(MaterialOtherDO::getMaterialName, reqVO.getMaterialName())
|
||||
.eqIfPresent(MaterialOtherDO::getErpMaterialNumber, reqVO.getErpMaterialNumber())
|
||||
.likeIfPresent(MaterialOtherDO::getErpMaterialName, reqVO.getErpMaterialName())
|
||||
.eqIfPresent(MaterialOtherDO::getUnit, reqVO.getUnit())
|
||||
.eqIfPresent(MaterialOtherDO::getAbbreviation, reqVO.getAbbreviation())
|
||||
.likeIfPresent(MaterialOtherDO::getName, reqVO.getName())
|
||||
.eqIfPresent(MaterialOtherDO::getCoding, reqVO.getCoding())
|
||||
.eqIfPresent(MaterialOtherDO::getGradeUnit, reqVO.getGradeUnit())
|
||||
.betweenIfPresent(MaterialOtherDO::getCreateTime, reqVO.getCreateTime())
|
||||
.eqIfPresent(MaterialOtherDO::getDecimal, reqVO.getDecimal())
|
||||
.eqIfPresent(MaterialOtherDO::getIsEnable, reqVO.getIsEnable())
|
||||
.orderByDesc(MaterialOtherDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package com.zt.plat.module.base.dal.mysql.base;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.WarehouseDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
|
||||
/**
|
||||
* 仓库 Mapper
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Mapper
|
||||
public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
|
||||
|
||||
default PageResult<WarehouseDO> selectPage(WarehousePageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<WarehouseDO>()
|
||||
.eqIfPresent(WarehouseDO::getFactoryNumber, reqVO.getFactoryNumber())
|
||||
.likeIfPresent(WarehouseDO::getName, reqVO.getName())
|
||||
.eqIfPresent(WarehouseDO::getCoding, reqVO.getCoding())
|
||||
.betweenIfPresent(WarehouseDO::getCreateTime, reqVO.getCreateTime())
|
||||
.likeIfPresent(WarehouseDO::getFactoryName, reqVO.getFactoryName())
|
||||
.eqIfPresent(WarehouseDO::getIsEnable, reqVO.getIsEnable())
|
||||
.eqIfPresent(WarehouseDO::getCompanyNumber, reqVO.getCompanyNumber())
|
||||
.eqIfPresent(WarehouseDO::getErpCoding, reqVO.getErpCoding())
|
||||
.likeIfPresent(WarehouseDO::getErpName, reqVO.getErpName())
|
||||
.orderByDesc(WarehouseDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.AccountDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 账户条款 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface AccountService {
|
||||
|
||||
/**
|
||||
* 创建账户条款
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
AccountRespVO createAccount(@Valid AccountSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新账户条款
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateAccount(@Valid AccountSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除账户条款
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteAccount(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除账户条款
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteAccountListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得账户条款
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 账户条款
|
||||
*/
|
||||
AccountDO getAccount(Long id);
|
||||
|
||||
/**
|
||||
* 获得账户条款分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 账户条款分页
|
||||
*/
|
||||
PageResult<AccountDO> getAccountPage(AccountPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.AccountDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.AccountMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 账户条款 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class AccountServiceImpl implements AccountService {
|
||||
|
||||
@Resource
|
||||
private AccountMapper accountMapper;
|
||||
|
||||
@Override
|
||||
public AccountRespVO createAccount(AccountSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
AccountDO account = BeanUtils.toBean(createReqVO, AccountDO.class);
|
||||
accountMapper.insert(account);
|
||||
// 返回
|
||||
return BeanUtils.toBean(account, AccountRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateAccount(AccountSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateAccountExists(updateReqVO.getId());
|
||||
// 更新
|
||||
AccountDO updateObj = BeanUtils.toBean(updateReqVO, AccountDO.class);
|
||||
accountMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteAccount(Long id) {
|
||||
// 校验存在
|
||||
validateAccountExists(id);
|
||||
// 删除
|
||||
accountMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteAccountListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateAccountExists(ids);
|
||||
// 删除
|
||||
accountMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateAccountExists(List<Long> ids) {
|
||||
List<AccountDO> list = accountMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(ACCOUNT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateAccountExists(Long id) {
|
||||
if (accountMapper.selectById(id) == null) {
|
||||
throw exception(ACCOUNT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public AccountDO getAccount(Long id) {
|
||||
return accountMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<AccountDO> getAccountPage(AccountPageReqVO pageReqVO) {
|
||||
return accountMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.CompanyRelativityDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 公司关系 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface CompanyRelativityService {
|
||||
|
||||
/**
|
||||
* 创建公司关系
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
CompanyRelativityRespVO createCompanyRelativity(@Valid CompanyRelativitySaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新公司关系
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateCompanyRelativity(@Valid CompanyRelativitySaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除公司关系
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteCompanyRelativity(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除公司关系
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteCompanyRelativityListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得公司关系
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 公司关系
|
||||
*/
|
||||
CompanyRelativityDO getCompanyRelativity(Long id);
|
||||
|
||||
/**
|
||||
* 获得公司关系分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 公司关系分页
|
||||
*/
|
||||
PageResult<CompanyRelativityDO> getCompanyRelativityPage(CompanyRelativityPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.CompanyRelativityDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.CompanyRelativityMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 公司关系 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class CompanyRelativityServiceImpl implements CompanyRelativityService {
|
||||
|
||||
@Resource
|
||||
private CompanyRelativityMapper companyRelativityMapper;
|
||||
|
||||
@Override
|
||||
public CompanyRelativityRespVO createCompanyRelativity(CompanyRelativitySaveReqVO createReqVO) {
|
||||
// 插入
|
||||
CompanyRelativityDO companyRelativity = BeanUtils.toBean(createReqVO, CompanyRelativityDO.class);
|
||||
companyRelativityMapper.insert(companyRelativity);
|
||||
// 返回
|
||||
return BeanUtils.toBean(companyRelativity, CompanyRelativityRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateCompanyRelativity(CompanyRelativitySaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateCompanyRelativityExists(updateReqVO.getId());
|
||||
// 更新
|
||||
CompanyRelativityDO updateObj = BeanUtils.toBean(updateReqVO, CompanyRelativityDO.class);
|
||||
companyRelativityMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCompanyRelativity(Long id) {
|
||||
// 校验存在
|
||||
validateCompanyRelativityExists(id);
|
||||
// 删除
|
||||
companyRelativityMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCompanyRelativityListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateCompanyRelativityExists(ids);
|
||||
// 删除
|
||||
companyRelativityMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateCompanyRelativityExists(List<Long> ids) {
|
||||
List<CompanyRelativityDO> list = companyRelativityMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(COMPANY_RELATIVITY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateCompanyRelativityExists(Long id) {
|
||||
if (companyRelativityMapper.selectById(id) == null) {
|
||||
throw exception(COMPANY_RELATIVITY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompanyRelativityDO getCompanyRelativity(Long id) {
|
||||
return companyRelativityMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<CompanyRelativityDO> getCompanyRelativityPage(CompanyRelativityPageReqVO pageReqVO) {
|
||||
return companyRelativityMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ContactDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 联系人信息 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface ContactService {
|
||||
|
||||
/**
|
||||
* 创建联系人信息
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
ContactRespVO createContact(@Valid ContactSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新联系人信息
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateContact(@Valid ContactSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除联系人信息
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteContact(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除联系人信息
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteContactListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得联系人信息
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 联系人信息
|
||||
*/
|
||||
ContactDO getContact(Long id);
|
||||
|
||||
/**
|
||||
* 获得联系人信息分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 联系人信息分页
|
||||
*/
|
||||
PageResult<ContactDO> getContactPage(ContactPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ContactDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.ContactMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 联系人信息 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class ContactServiceImpl implements ContactService {
|
||||
|
||||
@Resource
|
||||
private ContactMapper contactMapper;
|
||||
|
||||
@Override
|
||||
public ContactRespVO createContact(ContactSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
ContactDO contact = BeanUtils.toBean(createReqVO, ContactDO.class);
|
||||
contactMapper.insert(contact);
|
||||
// 返回
|
||||
return BeanUtils.toBean(contact, ContactRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateContact(ContactSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateContactExists(updateReqVO.getId());
|
||||
// 更新
|
||||
ContactDO updateObj = BeanUtils.toBean(updateReqVO, ContactDO.class);
|
||||
contactMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteContact(Long id) {
|
||||
// 校验存在
|
||||
validateContactExists(id);
|
||||
// 删除
|
||||
contactMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteContactListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateContactExists(ids);
|
||||
// 删除
|
||||
contactMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateContactExists(List<Long> ids) {
|
||||
List<ContactDO> list = contactMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(CONTACT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateContactExists(Long id) {
|
||||
if (contactMapper.selectById(id) == null) {
|
||||
throw exception(CONTACT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ContactDO getContact(Long id) {
|
||||
return contactMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<ContactDO> getContactPage(ContactPageReqVO pageReqVO) {
|
||||
return contactMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ElementDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 金属元素 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface ElementService {
|
||||
|
||||
/**
|
||||
* 创建金属元素
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
ElementRespVO createElement(@Valid ElementSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新金属元素
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateElement(@Valid ElementSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除金属元素
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteElement(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除金属元素
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteElementListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得金属元素
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 金属元素
|
||||
*/
|
||||
ElementDO getElement(Long id);
|
||||
|
||||
/**
|
||||
* 获得金属元素分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 金属元素分页
|
||||
*/
|
||||
PageResult<ElementDO> getElementPage(ElementPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.ElementDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.ElementMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 金属元素 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class ElementServiceImpl implements ElementService {
|
||||
|
||||
@Resource
|
||||
private ElementMapper elementMapper;
|
||||
|
||||
@Override
|
||||
public ElementRespVO createElement(ElementSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
ElementDO element = BeanUtils.toBean(createReqVO, ElementDO.class);
|
||||
elementMapper.insert(element);
|
||||
// 返回
|
||||
return BeanUtils.toBean(element, ElementRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateElement(ElementSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateElementExists(updateReqVO.getId());
|
||||
// 更新
|
||||
ElementDO updateObj = BeanUtils.toBean(updateReqVO, ElementDO.class);
|
||||
elementMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteElement(Long id) {
|
||||
// 校验存在
|
||||
validateElementExists(id);
|
||||
// 删除
|
||||
elementMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteElementListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateElementExists(ids);
|
||||
// 删除
|
||||
elementMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateElementExists(List<Long> ids) {
|
||||
List<ElementDO> list = elementMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(ELEMENT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateElementExists(Long id) {
|
||||
if (elementMapper.selectById(id) == null) {
|
||||
throw exception(ELEMENT_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ElementDO getElement(Long id) {
|
||||
return elementMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<ElementDO> getElementPage(ElementPageReqVO pageReqVO) {
|
||||
return elementMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.FactoryDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 工厂 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface FactoryService {
|
||||
|
||||
/**
|
||||
* 创建工厂
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
FactoryRespVO createFactory(@Valid FactorySaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新工厂
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateFactory(@Valid FactorySaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除工厂
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteFactory(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除工厂
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteFactoryListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得工厂
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 工厂
|
||||
*/
|
||||
FactoryDO getFactory(Long id);
|
||||
|
||||
/**
|
||||
* 获得工厂分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 工厂分页
|
||||
*/
|
||||
PageResult<FactoryDO> getFactoryPage(FactoryPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.FactoryDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.FactoryMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 工厂 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class FactoryServiceImpl implements FactoryService {
|
||||
|
||||
@Resource
|
||||
private FactoryMapper factoryMapper;
|
||||
|
||||
@Override
|
||||
public FactoryRespVO createFactory(FactorySaveReqVO createReqVO) {
|
||||
// 插入
|
||||
FactoryDO factory = BeanUtils.toBean(createReqVO, FactoryDO.class);
|
||||
factoryMapper.insert(factory);
|
||||
// 返回
|
||||
return BeanUtils.toBean(factory, FactoryRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFactory(FactorySaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateFactoryExists(updateReqVO.getId());
|
||||
// 更新
|
||||
FactoryDO updateObj = BeanUtils.toBean(updateReqVO, FactoryDO.class);
|
||||
factoryMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteFactory(Long id) {
|
||||
// 校验存在
|
||||
validateFactoryExists(id);
|
||||
// 删除
|
||||
factoryMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteFactoryListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateFactoryExists(ids);
|
||||
// 删除
|
||||
factoryMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateFactoryExists(List<Long> ids) {
|
||||
List<FactoryDO> list = factoryMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(FACTORY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateFactoryExists(Long id) {
|
||||
if (factoryMapper.selectById(id) == null) {
|
||||
throw exception(FACTORY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public FactoryDO getFactory(Long id) {
|
||||
return factoryMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<FactoryDO> getFactoryPage(FactoryPageReqVO pageReqVO) {
|
||||
return factoryMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialDestroyDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 物料回收率 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface MaterialDestroyService {
|
||||
|
||||
/**
|
||||
* 创建物料回收率
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
MaterialDestroyRespVO createMaterialDestroy(@Valid MaterialDestroySaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新物料回收率
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateMaterialDestroy(@Valid MaterialDestroySaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除物料回收率
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteMaterialDestroy(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除物料回收率
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteMaterialDestroyListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得物料回收率
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 物料回收率
|
||||
*/
|
||||
MaterialDestroyDO getMaterialDestroy(Long id);
|
||||
|
||||
/**
|
||||
* 获得物料回收率分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 物料回收率分页
|
||||
*/
|
||||
PageResult<MaterialDestroyDO> getMaterialDestroyPage(MaterialDestroyPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialDestroyDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.MaterialDestroyMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 物料回收率 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class MaterialDestroyServiceImpl implements MaterialDestroyService {
|
||||
|
||||
@Resource
|
||||
private MaterialDestroyMapper materialDestroyMapper;
|
||||
|
||||
@Override
|
||||
public MaterialDestroyRespVO createMaterialDestroy(MaterialDestroySaveReqVO createReqVO) {
|
||||
// 插入
|
||||
MaterialDestroyDO materialDestroy = BeanUtils.toBean(createReqVO, MaterialDestroyDO.class);
|
||||
materialDestroyMapper.insert(materialDestroy);
|
||||
// 返回
|
||||
return BeanUtils.toBean(materialDestroy, MaterialDestroyRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMaterialDestroy(MaterialDestroySaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateMaterialDestroyExists(updateReqVO.getId());
|
||||
// 更新
|
||||
MaterialDestroyDO updateObj = BeanUtils.toBean(updateReqVO, MaterialDestroyDO.class);
|
||||
materialDestroyMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialDestroy(Long id) {
|
||||
// 校验存在
|
||||
validateMaterialDestroyExists(id);
|
||||
// 删除
|
||||
materialDestroyMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialDestroyListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateMaterialDestroyExists(ids);
|
||||
// 删除
|
||||
materialDestroyMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateMaterialDestroyExists(List<Long> ids) {
|
||||
List<MaterialDestroyDO> list = materialDestroyMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(MATERIAL_DESTROY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateMaterialDestroyExists(Long id) {
|
||||
if (materialDestroyMapper.selectById(id) == null) {
|
||||
throw exception(MATERIAL_DESTROY_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaterialDestroyDO getMaterialDestroy(Long id) {
|
||||
return materialDestroyMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<MaterialDestroyDO> getMaterialDestroyPage(MaterialDestroyPageReqVO pageReqVO) {
|
||||
return materialDestroyMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 物料信息 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface MaterialInfomationService {
|
||||
|
||||
/**
|
||||
* 创建物料信息
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
MaterialInfomationRespVO createMaterialInfomation(@Valid MaterialInfomationSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新物料信息
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateMaterialInfomation(@Valid MaterialInfomationSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除物料信息
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteMaterialInfomation(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除物料信息
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteMaterialInfomationListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得物料信息
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 物料信息
|
||||
*/
|
||||
MaterialInfomationDO getMaterialInfomation(Long id);
|
||||
|
||||
/**
|
||||
* 获得物料信息分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 物料信息分页
|
||||
*/
|
||||
PageResult<MaterialInfomationDO> getMaterialInfomationPage(MaterialInfomationPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.MaterialInfomationMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 物料信息 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class MaterialInfomationServiceImpl implements MaterialInfomationService {
|
||||
|
||||
@Resource
|
||||
private MaterialInfomationMapper materialInfomationMapper;
|
||||
|
||||
@Override
|
||||
public MaterialInfomationRespVO createMaterialInfomation(MaterialInfomationSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
MaterialInfomationDO materialInfomation = BeanUtils.toBean(createReqVO, MaterialInfomationDO.class);
|
||||
materialInfomationMapper.insert(materialInfomation);
|
||||
// 返回
|
||||
return BeanUtils.toBean(materialInfomation, MaterialInfomationRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMaterialInfomation(MaterialInfomationSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateMaterialInfomationExists(updateReqVO.getId());
|
||||
// 更新
|
||||
MaterialInfomationDO updateObj = BeanUtils.toBean(updateReqVO, MaterialInfomationDO.class);
|
||||
materialInfomationMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialInfomation(Long id) {
|
||||
// 校验存在
|
||||
validateMaterialInfomationExists(id);
|
||||
// 删除
|
||||
materialInfomationMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialInfomationListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateMaterialInfomationExists(ids);
|
||||
// 删除
|
||||
materialInfomationMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateMaterialInfomationExists(List<Long> ids) {
|
||||
List<MaterialInfomationDO> list = materialInfomationMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(MATERIAL_INFOMATION_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateMaterialInfomationExists(Long id) {
|
||||
if (materialInfomationMapper.selectById(id) == null) {
|
||||
throw exception(MATERIAL_INFOMATION_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaterialInfomationDO getMaterialInfomation(Long id) {
|
||||
return materialInfomationMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<MaterialInfomationDO> getMaterialInfomationPage(MaterialInfomationPageReqVO pageReqVO) {
|
||||
return materialInfomationMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialOtherDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 物料拓展数据 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface MaterialOtherService {
|
||||
|
||||
/**
|
||||
* 创建物料拓展数据
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
MaterialOtherRespVO createMaterialOther(@Valid MaterialOtherSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新物料拓展数据
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateMaterialOther(@Valid MaterialOtherSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除物料拓展数据
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteMaterialOther(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除物料拓展数据
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteMaterialOtherListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得物料拓展数据
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 物料拓展数据
|
||||
*/
|
||||
MaterialOtherDO getMaterialOther(Long id);
|
||||
|
||||
/**
|
||||
* 获得物料拓展数据分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 物料拓展数据分页
|
||||
*/
|
||||
PageResult<MaterialOtherDO> getMaterialOtherPage(MaterialOtherPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialOtherDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.MaterialOtherMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 物料拓展数据 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class MaterialOtherServiceImpl implements MaterialOtherService {
|
||||
|
||||
@Resource
|
||||
private MaterialOtherMapper materialOtherMapper;
|
||||
|
||||
@Override
|
||||
public MaterialOtherRespVO createMaterialOther(MaterialOtherSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
MaterialOtherDO materialOther = BeanUtils.toBean(createReqVO, MaterialOtherDO.class);
|
||||
materialOtherMapper.insert(materialOther);
|
||||
// 返回
|
||||
return BeanUtils.toBean(materialOther, MaterialOtherRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateMaterialOther(MaterialOtherSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateMaterialOtherExists(updateReqVO.getId());
|
||||
// 更新
|
||||
MaterialOtherDO updateObj = BeanUtils.toBean(updateReqVO, MaterialOtherDO.class);
|
||||
materialOtherMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialOther(Long id) {
|
||||
// 校验存在
|
||||
validateMaterialOtherExists(id);
|
||||
// 删除
|
||||
materialOtherMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteMaterialOtherListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateMaterialOtherExists(ids);
|
||||
// 删除
|
||||
materialOtherMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateMaterialOtherExists(List<Long> ids) {
|
||||
List<MaterialOtherDO> list = materialOtherMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(MATERIAL_OTHER_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateMaterialOtherExists(Long id) {
|
||||
if (materialOtherMapper.selectById(id) == null) {
|
||||
throw exception(MATERIAL_OTHER_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public MaterialOtherDO getMaterialOther(Long id) {
|
||||
return materialOtherMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<MaterialOtherDO> getMaterialOtherPage(MaterialOtherPageReqVO pageReqVO) {
|
||||
return materialOtherMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import java.util.*;
|
||||
import jakarta.validation.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.WarehouseDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* 仓库 Service 接口
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
public interface WarehouseService {
|
||||
|
||||
/**
|
||||
* 创建仓库
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
WarehouseRespVO createWarehouse(@Valid WarehouseSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新仓库
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateWarehouse(@Valid WarehouseSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除仓库
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteWarehouse(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除仓库
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteWarehouseListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得仓库
|
||||
*
|
||||
* @param id 编号
|
||||
* @return 仓库
|
||||
*/
|
||||
WarehouseDO getWarehouse(Long id);
|
||||
|
||||
/**
|
||||
* 获得仓库分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return 仓库分页
|
||||
*/
|
||||
PageResult<WarehouseDO> getWarehousePage(WarehousePageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.zt.plat.module.base.service.base;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import com.zt.plat.module.base.controller.admin.base.vo.*;
|
||||
import com.zt.plat.module.base.dal.dataobject.base.WarehouseDO;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
|
||||
import com.zt.plat.module.base.dal.mysql.base.WarehouseMapper;
|
||||
|
||||
import static com.zt.plat.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static com.zt.plat.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static com.zt.plat.module.base.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* 仓库 Service 实现类
|
||||
*
|
||||
* @author 后台管理
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class WarehouseServiceImpl implements WarehouseService {
|
||||
|
||||
@Resource
|
||||
private WarehouseMapper warehouseMapper;
|
||||
|
||||
@Override
|
||||
public WarehouseRespVO createWarehouse(WarehouseSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
WarehouseDO warehouse = BeanUtils.toBean(createReqVO, WarehouseDO.class);
|
||||
warehouseMapper.insert(warehouse);
|
||||
// 返回
|
||||
return BeanUtils.toBean(warehouse, WarehouseRespVO.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateWarehouse(WarehouseSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateWarehouseExists(updateReqVO.getId());
|
||||
// 更新
|
||||
WarehouseDO updateObj = BeanUtils.toBean(updateReqVO, WarehouseDO.class);
|
||||
warehouseMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteWarehouse(Long id) {
|
||||
// 校验存在
|
||||
validateWarehouseExists(id);
|
||||
// 删除
|
||||
warehouseMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteWarehouseListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateWarehouseExists(ids);
|
||||
// 删除
|
||||
warehouseMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateWarehouseExists(List<Long> ids) {
|
||||
List<WarehouseDO> list = warehouseMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
throw exception(WAREHOUSE_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
private void validateWarehouseExists(Long id) {
|
||||
if (warehouseMapper.selectById(id) == null) {
|
||||
throw exception(WAREHOUSE_NOT_EXISTS);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public WarehouseDO getWarehouse(Long id) {
|
||||
return warehouseMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<WarehouseDO> getWarehousePage(WarehousePageReqVO pageReqVO) {
|
||||
return warehouseMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.AccountMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.CompanyRelativityMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.ContactMapper">
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.ElementMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.FactoryMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.MaterialDestroyMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.MaterialInfomationMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.MaterialOtherMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.zt.plat.module.base.dal.mysql.base.WarehouseMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@@ -15,4 +15,5 @@ public interface ErrorCodeConstants {
|
||||
ErrorCode CONTRACT_NUM_TRANSFINITE = new ErrorCode(1_027_000_000, "系统合同编号超限,最大合同编号:999999");
|
||||
ErrorCode CONTRACT_NAME_EXISTS = new ErrorCode(1_027_000_001, "合同名已存在");
|
||||
ErrorCode CONTRACT_PAPER_NUMBER_EXISTS = new ErrorCode(1_027_000_002, "合同编号已存在");
|
||||
ErrorCode CONTRACT_NOT_EXISTS = new ErrorCode(1_027_000_003, "合同不存在");
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
<dependency>
|
||||
<groupId>com.zt.plat</groupId>
|
||||
<artifactId>zt-module-base-server</artifactId>
|
||||
<version>3.0.35</version>
|
||||
<version>3.0.37</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
@@ -4,12 +4,14 @@ import com.zt.plat.framework.business.interceptor.BusinessControllerMarker;
|
||||
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||
import com.zt.plat.framework.common.pojo.PageResult;
|
||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton.ContractPageReqVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton.ContractRespVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton.ContractSaveReqVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.contract.ContractPageReqVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.contract.ContractRespVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.contract.ContractSaveReqVO;
|
||||
import com.zt.plat.module.contractorder.controller.admin.contract.vo.contract.ContractViewRespVO;
|
||||
import com.zt.plat.module.contractorder.dal.dataobject.contract.ContractMainDO;
|
||||
import com.zt.plat.module.contractorder.service.contract.ContractService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.validation.Valid;
|
||||
@@ -32,17 +34,92 @@ public class ContractController implements BusinessControllerMarker {
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得合同分页列表")
|
||||
@PreAuthorize("@ss.hasPermission('base:contract-main:query')")
|
||||
public CommonResult<PageResult<ContractRespVO>> getContractPage(@Valid ContractPageReqVO pageReqVO) {
|
||||
@PreAuthorize("@ss.hasPermission('base:contract:query')")
|
||||
public CommonResult<PageResult<ContractRespVO>> getPage(@Valid ContractPageReqVO pageReqVO) {
|
||||
PageResult<ContractMainDO> pageResult = contractService.getContractPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, ContractRespVO.class));
|
||||
}
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "新增合同")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract-main:create')")
|
||||
public CommonResult<Long> createContract(@Valid @RequestBody ContractSaveReqVO reqVO) {
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:create')")
|
||||
public CommonResult<Long> create(@Valid @RequestBody ContractSaveReqVO reqVO) {
|
||||
Long id = contractService.createContract(reqVO);
|
||||
return success(id);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得合同详情")
|
||||
@Parameter(name = "id", description = "合同ID", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:get')")
|
||||
public CommonResult<ContractViewRespVO> get(@RequestParam("id") Long id) {
|
||||
ContractViewRespVO contractViewRespVO = contractService.get(id);
|
||||
return success(contractViewRespVO);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PutMapping("update")
|
||||
@Operation(summary = "修改合同")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:update')")
|
||||
public CommonResult<Boolean> update(@Valid @RequestBody ContractSaveReqVO reqVO) {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除合同")
|
||||
@Parameter(name = "ids", description = "合同ID集合", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:delete')")
|
||||
public CommonResult<Boolean> delete(@RequestParam("ids") Long[] ids) {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/download")
|
||||
@Operation(summary = "下载文件")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:download')")
|
||||
public void download() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/preview")
|
||||
@Operation(summary = "预览文件")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:preview')")
|
||||
public void preview() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/complete")
|
||||
@Operation(summary = "完结")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:complete')")
|
||||
public void complete() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/archive")
|
||||
@Operation(summary = "归档")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:archive')")
|
||||
public void archive() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/submit/approval")
|
||||
@Operation(summary = "提交审批")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:approval')")
|
||||
public void submitApproval() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/view/approval")
|
||||
@Operation(summary = "查看审批")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:approval')")
|
||||
public void viewApproval() {
|
||||
}
|
||||
|
||||
// TODO
|
||||
@PostMapping("/submit/ERP")
|
||||
@Operation(summary = "提交ERP")
|
||||
@PreAuthorize("@ss.hasPermission('system:contract:erp')")
|
||||
public void submitERP() {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@@ -33,7 +33,7 @@ public class ContractFormulaSaveReqVO {
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "计算小数位")
|
||||
private Long decimal;
|
||||
private Long decimalBit;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String elementNumber;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import com.zt.plat.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@@ -49,5 +49,5 @@ public class ContractPriceSaveReqVO {
|
||||
private String averageType;
|
||||
|
||||
@Schema(description = "网价小数位")
|
||||
private BigDecimal decimal;
|
||||
private BigDecimal decimalBit;
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
@@ -1,4 +1,4 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.preparaton;
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.zt.plat.module.base.controller.admin.templtp.vo.TemplateInstanceDataSaveReqVO;
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 基础系数配置 Response VO")
|
||||
@Data
|
||||
public class ContractViewCoefficientRespVO {
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31657")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "配置主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "6534")
|
||||
private Long parameterId;
|
||||
|
||||
@Schema(description = "条款主键", example = "29652")
|
||||
private Long formulaId;
|
||||
|
||||
@Schema(description = "金属元素编码")
|
||||
private String elementNumber;
|
||||
|
||||
@Schema(description = "金属元素缩写")
|
||||
private String elementAbbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "芋艿")
|
||||
private String elementName;
|
||||
|
||||
@Schema(description = "系数值")
|
||||
private String settlementCoefficient;
|
||||
|
||||
@Schema(description = "系数上限")
|
||||
private BigDecimal coefficientUp;
|
||||
|
||||
@Schema(description = "系数下限")
|
||||
private BigDecimal coefficientDown;
|
||||
|
||||
@Schema(description = "是否包含上限")
|
||||
private String isInUp;
|
||||
|
||||
@Schema(description = "是否包含下限")
|
||||
private String isInDown;
|
||||
|
||||
@Schema(description = "是否省内", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "是否省内不能为空")
|
||||
private String inState;
|
||||
|
||||
@Schema(description = "类型", example = "1")
|
||||
private String type;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Schema(description = "管理后台 - 调整价配置 Response VO")
|
||||
@Data
|
||||
public class ContractViewDeductRespVO {
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25312")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "配置主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "21114")
|
||||
@NotNull(message = "配置主键不能为空")
|
||||
private Long parameterId;
|
||||
|
||||
@Schema(description = "条款主键", example = "29909")
|
||||
private Long formulaId;
|
||||
|
||||
@Schema(description = "物料编码;推送ERP")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "物料名称", example = "张三")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "上限", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "上限不能为空")
|
||||
private BigDecimal gradeUp;
|
||||
|
||||
@Schema(description = "下限")
|
||||
private BigDecimal gradeDown;
|
||||
|
||||
@Schema(description = "是否包含上限")
|
||||
private String isInUp;
|
||||
|
||||
@Schema(description = "是否包含下限")
|
||||
private String isInDown;
|
||||
|
||||
@Schema(description = "方式")
|
||||
private String way;
|
||||
|
||||
@Schema(description = "类型", example = "1")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "是否省内", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "是否省内不能为空")
|
||||
private String inState;
|
||||
|
||||
@Schema(description = "调整价")
|
||||
private BigDecimal gradeAmount;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.zt.plat.module.contractorder.controller.admin.contract.vo.contract;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Schema(description = "管理后台 - 合同明细 Response VO")
|
||||
@Data
|
||||
public class ContractViewDetailRespVO {
|
||||
@Schema(description = "主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "物料名称", example = "物料名称")
|
||||
private String materialName;
|
||||
|
||||
@Schema(description = "物料编码", example = "物料编码")
|
||||
private String materialNumber;
|
||||
|
||||
@Schema(description = "数量")
|
||||
private BigDecimal quantity;
|
||||
|
||||
@Schema(description = "计量单位", example = "吨")
|
||||
private String unit;
|
||||
|
||||
@Schema(description = "含税单价", example = "28579")
|
||||
private BigDecimal inTaxUnitPrice;
|
||||
|
||||
@Schema(description = "金属元素缩写", example = "金属元素缩写")
|
||||
private String elementAbbreviation;
|
||||
|
||||
@Schema(description = "金属元素名称", example = "金属元素名称")
|
||||
private String elementName;
|
||||
|
||||
@Schema(description = "金属元素编码", example = "金属元素编码")
|
||||
private String elementNumber;
|
||||
|
||||
// 交货计划
|
||||
private List<ContractViewPlanRespVO> plans;
|
||||
|
||||
// 价款结算条款
|
||||
private List<ContractViewFormulaRespVO> formulas;
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user