busUser
schry 2 years ago
parent a0436b8452
commit 33fce4854a

@ -4,7 +4,9 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.annotation.RepeatSubmit;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.business.StockOrderDetailEntity;
@ -68,6 +70,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "新增申购单",businessType = BusinessType.INSERT)
@RepeatSubmit()
@AuthRuleAnnotation("")
@PostMapping("/purchase/apply/postOrder")
@ -106,6 +109,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "查询申购单列表")
@GetMapping("/purchase/apply/list")
public BaseResponse list(PurApplyRequest purApplyRequest) {
@ -127,6 +131,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "查询申购单列表")
@GetMapping("/purchase/apply/auditList")
public BaseResponse auditList(PurApplyRequest purApplyRequest) {
@ -148,6 +153,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "审核申购单",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/apply/auditOrder")
public BaseResponse auditOrder(@RequestBody PurApplyRequest purApplyRequest) {
@ -194,6 +200,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "新增申购单",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/apply")
public BaseResponse add(@RequestBody PurApplyEntity purApplyRequest) {
@ -205,6 +212,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "修改申购单",businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping("/purchase/apply")
public BaseResponse edit(@RequestBody PurApplyEntity purApplyRequest) {
@ -217,6 +225,7 @@ public class PurApplyController {
*
* @param ids
*/
@Log(title = "删除申购单",businessType = BusinessType.DELETE)
@DeleteMapping("/purchase/apply/{ids}")
public BaseResponse remove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {
@ -236,6 +245,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "查询申购单列表")
@GetMapping("/purchase/apply/list/detail")
public BaseResponse detailList(PurApplyDetailRequest purApplyDetailRequest) {
@ -252,6 +262,7 @@ public class PurApplyController {
/**
*
*/
@Log(title = "新增申购单",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/apply/detail")
public BaseResponse detailAdd(@RequestBody PurApplyDetailEntity purApplyDetailRequest) {
@ -263,11 +274,12 @@ public class PurApplyController {
/**
*
*/
@Log(title = "修改申购单",businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping("/purchase/apply/detail")
public BaseResponse detailEdit(@RequestBody PurApplyDetailEntity purApplyDetailRequest) {
purApplyDetailService.update(purApplyDetailRequest);
return ResultVOUtils.success("删除成功");
return ResultVOUtils.success("修改成功");
}
/**
@ -275,6 +287,7 @@ public class PurApplyController {
*
* @param ids
*/
@Log(title = "删除申购单",businessType = BusinessType.DELETE)
@DeleteMapping("/purchase/apply/detail/{ids}")
public BaseResponse detailRemove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {

@ -4,7 +4,9 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.annotation.RepeatSubmit;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.basic.*;
@ -78,6 +80,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "新增采购计划",businessType = BusinessType.INSERT)
@RepeatSubmit()
@AuthRuleAnnotation("")
@PostMapping("/purchase/plan/postOrder")
@ -120,6 +123,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "查询采购计划列表")
@GetMapping("/purchase/plan/list")
public BaseResponse list(PurPlanRequest purApplyRequest) {
@ -141,6 +145,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "查询采购计划列表")
@GetMapping("/purchase/plan/auditList")
public BaseResponse auditList(PurPlanRequest purApplyRequest) {
@ -161,6 +166,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "审核采购计划",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/plan/auditOrder")
public BaseResponse auditOrder(@RequestBody PostPurPlanRequest postPurPlanRequest) {
@ -247,6 +253,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "新增采购计划",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/plan")
public BaseResponse add(@RequestBody PurPlanEntity purApplyRequest) {
@ -258,6 +265,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "修改采购计划",businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping("/purchase/plan")
public BaseResponse edit(@RequestBody PurPlanEntity purApplyRequest) {
@ -269,6 +277,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "查询采购计划列表")
@GetMapping("/purchase/plan/list/detail")
public BaseResponse detailList(PurPlanDetailRequest purApplyDetailRequest) {
@ -288,6 +297,7 @@ public class PurPlanController {
*
* @param ids
*/
@Log(title = "删除采购计划",businessType = BusinessType.DELETE)
@DeleteMapping("/purchase/plan/{ids}")
public BaseResponse remove(@NotEmpty(message = "主键不能为空")
@PathVariable Integer[] ids) {
@ -308,6 +318,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "新增采购计划",businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/purchase/plan/detail")
public BaseResponse detailAdd(@RequestBody PurPlanDetailEntity purPlanDetailRequest) {
@ -319,6 +330,7 @@ public class PurPlanController {
/**
*
*/
@Log(title = "修改采购计划",businessType = BusinessType.UPDATE)
@RepeatSubmit()
@PutMapping("/purchase/plan/detail")
public BaseResponse detailEdit(@RequestBody PurPlanDetailEntity purPlanDetailRequest) {
@ -331,6 +343,7 @@ public class PurPlanController {
*
* @param ids
*/
@Log(title = "删除采购计划",businessType = BusinessType.DELETE)
@DeleteMapping("/purchase/plan/detail/{ids}")
public BaseResponse detailRemove(@NotEmpty(message = "主键不能为空")
@PathVariable Long[] ids) {

@ -4,6 +4,8 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.auth.AuthAdmin;
import com.glxp.api.admin.entity.purchase.*;
@ -49,6 +51,7 @@ public class SupCertController {
@Value("${file_path}")
private String filePath;
@Log(title = "获取供应商资质列表信息")
@AuthRuleAnnotation("")
@GetMapping("/sup/company/cert/filter")
public BaseResponse filterCompanyCert(FilterSupCertRequest filterSupCertRequest,
@ -66,7 +69,7 @@ public class SupCertController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "选入所有供应商资质",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sup/info/selectAllCert")
public BaseResponse selectAllCert(@RequestBody PostSelCertRequest postSelCertRequest) {
@ -97,7 +100,7 @@ public class SupCertController {
return ResultVOUtils.success("成功");
}
@Log(title = "获取企业资质信息")
@AuthRuleAnnotation("")
@GetMapping("/sale/info/getCompanyCert")
public BaseResponse getCompanyCert(FilterSupCertRequest filterSupCertRequest) {
@ -110,6 +113,7 @@ public class SupCertController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加企业资质信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sup/info/insertCompanyCert")
public BaseResponse insertCompanyCert(@RequestBody SupCertEntity supCertEntity) {
@ -119,7 +123,7 @@ public class SupCertController {
return ResultVOUtils.success("成功");
}
@Log(title = "审核供应商资质",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sale/sup/cert/audit")
public BaseResponse auditSupCert(@RequestBody SupCertEntity supCertEntity) {
@ -136,6 +140,7 @@ public class SupCertController {
@Resource
SupProductService supProductService;
@Log(title = "更新企业资质",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sup/info/updateCompanyCert")
public BaseResponse updateCompanyCert(@RequestBody PostSupCertRequest postSupCertRequest) {
@ -168,6 +173,7 @@ public class SupCertController {
return ResultVOUtils.success("修改成功");
}
@Log(title = "删除企业资质",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/sup/info/deleteCompanyCert")
public BaseResponse deleteCompanyCert(@RequestBody DeleteCompanyFileRequest deleteCompanyFileRequest, BindingResult bindingResult) {

@ -3,6 +3,8 @@ package com.glxp.api.admin.controller.purchase;
import cn.hutool.core.collection.CollUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.purchase.SupCertSetEntity;
import com.glxp.api.admin.req.inout.DeleteRequest;
import com.glxp.api.admin.req.purchase.FilterCertSetsRequest;
@ -28,7 +30,7 @@ public class SupCertSetController {
@Resource
private SupCertSetService supCertSetService;
@Log(title = "获取供应商资质设置信息列表")
@AuthRuleAnnotation("")
@GetMapping("/sup/cert/set/filter")
public BaseResponse filterCertSet(FilterCertSetsRequest filterCertSetsRequest,
@ -47,7 +49,7 @@ public class SupCertSetController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加资质设置",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sup/cert/set/add")
public BaseResponse addCertSet(@RequestBody SupCertSetEntity supCertSetEntity) {
@ -73,7 +75,7 @@ public class SupCertSetController {
return ResultVOUtils.success("添加成功!");
}
@Log(title = "更新资质设置",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sup/cert/set/update")
public BaseResponse updateCertSet(@RequestBody SupCertSetEntity supCertSetEntity) {
@ -86,12 +88,12 @@ public class SupCertSetController {
filterCertSetsRequest.setType(supCertSetEntity.getType());
filterCertSetsRequest.setName(supCertSetEntity.getName());
List<SupCertSetEntity> supCertEntityList = supCertSetService.filterCertSets(filterCertSetsRequest);
boolean b = supCertSetService.updateCertSet(supCertSetEntity);
return ResultVOUtils.success("修改成功");
}
@Log(title = "删除资质设置",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/sup/cert/set/delete")
public BaseResponse deleteCertSet(@RequestBody DeleteRequest deleteRequest) {

@ -5,6 +5,8 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.extra.pinyin.PinyinUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.auth.AuthAdmin;
import com.glxp.api.admin.entity.basic.BasicUnitMaintainEntity;
@ -62,6 +64,7 @@ public class SupCompanyController {
@Resource
SupCertSetService supCertSetService;
@Log(title = "获取供应商企业信息列表")
@AuthRuleAnnotation("")
@GetMapping("/api/pur/getSupComapnys")
public BaseResponse getSupComapnys(FilterSupCompanyRequest companyRequest) {
@ -73,7 +76,7 @@ public class SupCompanyController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加企业信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/api/pur/addCompany")
public BaseResponse insertCompany(@RequestBody SupCompanyEntity companyEntity) {
@ -98,7 +101,7 @@ public class SupCompanyController {
return ResultVOUtils.success("修改成功");
}
@Log(title = "修改企业信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/api/pur/modifyCompany")
public BaseResponse modifyCompany(@RequestBody SupCompanyEntity companyEntity) {
@ -156,7 +159,7 @@ public class SupCompanyController {
return ResultVOUtils.success("修改成功");
}
@Log(title = "审核企业")
@AuthRuleAnnotation("")
@PostMapping("/api/pur/auditCompany")
public BaseResponse auditCompany(@RequestBody SupCompanyEntity companyEntity) {
@ -243,7 +246,7 @@ public class SupCompanyController {
return ResultVOUtils.success("修改成功");
}
@Log(title = "选入绑定")
@AuthRuleAnnotation("")
@PostMapping("/sup/company/selectBind")
public BaseResponse selectBind(@RequestBody SelectCorpBindRequest selectCorpBindRequest) {
@ -259,7 +262,7 @@ public class SupCompanyController {
return ResultVOUtils.success(supCompanyEntity);
}
@Log(title = "删除供应商企业",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("api/pur/supCompany/delete")
public BaseResponse deleteSupCompany(@RequestBody DeleteRequest deleteRequest) {

@ -3,6 +3,8 @@ package com.glxp.api.admin.controller.purchase;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.purchase.CustomerContactEntity;
import com.glxp.api.admin.req.inout.DeleteRequest;
import com.glxp.api.admin.req.purchase.CustomerContactFilterRequest;
@ -24,6 +26,7 @@ public class SupContactController {
@Resource
private CustomerContactService customerContactService;
@Log(title = "获取供应商联系信息列表")
@AuthRuleAnnotation("")
@GetMapping("salewarehouse/customerContact/list")
public BaseResponse filterList(CustomerContactFilterRequest customerFilterRequest) {
@ -36,6 +39,7 @@ public class SupContactController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加联系信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@GetMapping("salewarehouse/customerContact/add")
public BaseResponse addContact(CustomerContactEntity customerContactEntity) {
@ -49,6 +53,7 @@ public class SupContactController {
}
@Log(title = "删除联系信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@GetMapping("salewarehouse/customerContact/delete")
public BaseResponse deleteContact(DeleteRequest deleteRequest) {

@ -4,6 +4,8 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.auth.AuthAdmin;
import com.glxp.api.admin.entity.purchase.SupCertEntity;
@ -55,6 +57,7 @@ public class SupManufacturerController {
@Resource
private CompanyService companyService;
@Log(title = "获取企业信息")
@AuthRuleAnnotation("")
@GetMapping("/sup/manufacturer/getCompanyInfo")
public BaseResponse getCompanyInfo(FilterSupManufacturerRequest filterSupManufacturerRequest) {
@ -65,6 +68,7 @@ public class SupManufacturerController {
return ResultVOUtils.error(500, "企业信息为空");
}
@Log(title = "获取企业信息列表")
@AuthRuleAnnotation("")
@GetMapping("/sup/manufacturer/getCompanyList")
public BaseResponse getCompanyList(FilterSupManufacturerRequest filterSupManufacturerRequest) {
@ -76,6 +80,7 @@ public class SupManufacturerController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "根据供应商获取企业信息")
@AuthRuleAnnotation("")
@GetMapping("/sup/manufacturer/getCompanyBySup")
public BaseResponse getCompanyBySup(FilterSupManufacturerRequest filterSupManufacturerRequest) {
@ -88,7 +93,7 @@ public class SupManufacturerController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加企业信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sup/manufacturer/addCompany")
public BaseResponse addCompany(@RequestBody SupManufacturerEntity supManufacturerEntity) {
@ -184,6 +189,7 @@ public class SupManufacturerController {
}
}
@Log(title = "修改企业信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sup/manufacturer/modifyCompany")
public BaseResponse modifyCompany(@RequestBody SupManufacturerEntity supManufacturerEntity) {
@ -287,7 +293,7 @@ public class SupManufacturerController {
}
}
@Log(title = "审核生产厂商信息")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/sup/manufacturer/audit")
public BaseResponse auditMmanufacturer(@RequestBody SupManufacturerEntity supManufacturerEntity) {
@ -379,7 +385,7 @@ public class SupManufacturerController {
}
}
@Log(title = "根据id删除生产厂商信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@GetMapping("/sup/manufacturer/basic/delete")
public BaseResponse deleteContact(DeleteRequest deleteRequest) {

@ -4,6 +4,8 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.auth.AuthAdmin;
import com.glxp.api.admin.entity.basic.BasicThirdSysEntity;
@ -80,6 +82,7 @@ public class SupProductController {
@Resource
SupCertSetService supCertSetService;
@Log(title = "获取注册信息")
@AuthRuleAnnotation("")
@GetMapping("/sup/product/getRegistrationInfo")
public BaseResponse getRegistrationInfo(FilterPoductRequest filterPoductRequest) {
@ -90,6 +93,7 @@ public class SupProductController {
return ResultVOUtils.error(500, "企业信息为空");
}
@Log(title = "获取注册信息列表")
@AuthRuleAnnotation("")
@GetMapping("/sup/product/getRegistrationList")
public BaseResponse getRegistrationList(FilterPoductRequest filterPoductRequest) {
@ -101,6 +105,7 @@ public class SupProductController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "添加注册信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sup/product/addRegistration")
public BaseResponse addRegistration(@RequestBody SupProductEntity supProductEntity) {
@ -163,7 +168,7 @@ public class SupProductController {
}
}
@Log(title = "选入绑定")
@AuthRuleAnnotation("")
@PostMapping("/sup/product/selectBind")
public BaseResponse selectBind(@RequestBody SelectProductBindRequest selectProductBindRequest) {
@ -197,7 +202,7 @@ public class SupProductController {
// }
}
@Log(title = "修改注册信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sup/product/modifyRegistration")
public BaseResponse modifyRegistration(@RequestBody SupProductEntity supProductEntity) {
@ -273,7 +278,7 @@ public class SupProductController {
}
}
@Log(title = "审核产品信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/udiwms/pur/suppliers/product/audit")
public BaseResponse auditProduct(@RequestBody SupProductEntity supProductEntity) {
@ -432,6 +437,7 @@ public class SupProductController {
@AuthRuleAnnotation("")
@Log(title = "删除供应商产品信息",businessType = BusinessType.DELETE)
@GetMapping("/sup/product/delete")
public BaseResponse delete(DeleteCompanyFileRequest deleteCompanyFileRequest) {
boolean b = supProductService.deleteById(deleteCompanyFileRequest.getId());

@ -2,6 +2,8 @@ package com.glxp.api.admin.controller.purchase;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.auth.AuthAdmin;
import com.glxp.api.admin.entity.purchase.CompanySalesmanEntity;
import com.glxp.api.admin.exception.JsonException;
@ -39,6 +41,7 @@ public class SupSalesmanController {
@Value("${file_path}")
private String filePath;
@Log(title = "获取企业销售人信息列表")
@AuthRuleAnnotation("")
@GetMapping("/sale/info/company/salesman/filter")
public BaseResponse filterCompanySalesman(FilterCompanySalesmanRequest filterCompanySalesmanRequest,
@ -56,6 +59,7 @@ public class SupSalesmanController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取企业销售人信息")
@AuthRuleAnnotation("")
@GetMapping("/sale/info/companySalesman")
public BaseResponse getCompanySalesmanInfo(CompanyRequest companyRequest) {
@ -66,6 +70,7 @@ public class SupSalesmanController {
return ResultVOUtils.error(500, "空");
}
@Log(title = "获取企业销售人信息列表")
@AuthRuleAnnotation("")
@GetMapping("/sale/info/getCompanySalesman")
public BaseResponse getCompanySalesman(FilterCompanySalesmanRequest filterCompanySalesmanRequest) {
@ -78,6 +83,7 @@ public class SupSalesmanController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "新增企业销售人信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/sale/info/insertCompanySalesman")
public BaseResponse insertCompanySalesman(@RequestBody CompanySalesmanEntity companySalesmanEntity) {
@ -88,6 +94,7 @@ public class SupSalesmanController {
return ResultVOUtils.success("成功");
}
@Log(title = "更新企业销售人信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/sale/info/updateCompanySalesman")
public BaseResponse updateCompanySalesman(@RequestBody CompanySalesmanEntity companySalesmanEntity) {
@ -117,6 +124,7 @@ public class SupSalesmanController {
return ResultVOUtils.success("修改成功");
}
@Log(title = "删除企业销售人信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/sale/info/deleteCompanySalesman")
public BaseResponse deleteCompanySalesman(@RequestBody DeleteCompanyFileRequest deleteCompanyFileRequest, BindingResult bindingResult) {

@ -1,7 +1,9 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.entity.basic.BasicThirdSysDetailEntity;
import com.glxp.api.admin.entity.thrsys.*;
@ -55,6 +57,7 @@ public class ThrCorpExportLogController {
@Resource
private ErpBasicClient erpBasicClient;
@Log(title = "获取第三方往来单位导出日志信息列表")
@GetMapping("/udiwms/thrCorp/exportLog/filter")
public BaseResponse filter(FilterUdiEpLogRequest filterUdiEpLogReques,
BindingResult bindingResult) {
@ -72,6 +75,7 @@ public class ThrCorpExportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方往来单位导出日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrCorp/exportLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -84,6 +88,7 @@ public class ThrCorpExportLogController {
}
//往来单位excel文件下载
@Log(title = "往来单位excel文件下载",businessType = BusinessType.UPDATE)
@GetMapping("/udiwms/thrCorp/exportLog/download")
public void download(FilterUdiEpLogRequest filterUdiEpLogRequest, HttpServletResponse res) {
@ -120,6 +125,7 @@ public class ThrCorpExportLogController {
}
//往来单位导出生成Excel并创建生成记录
@Log(title = "往来单位导出生成Excel并创建生成记录")
@PostMapping("/udiwms/thrCorp/importLog/export")
public BaseResponse excelDownload(@RequestBody ThrCorpExportRequest thrCorpExportRequest) {
@ -151,6 +157,7 @@ public class ThrCorpExportLogController {
//往来单位导出生成Excel并创建生成记录
@Log(title = "往来单位导出生成Excel并创建生成记录")
@PostMapping("/udiwms/thrCorp/importLog/upload")
public BaseResponse uploadSmp(@RequestBody ThrCorpExportRequest thrCorpExportRequest) {
@ -180,6 +187,7 @@ public class ThrCorpExportLogController {
//第三方往来单位接口下载(第三方使用)
@Log(title = "第三方往来单位接口下载(第三方使用)")
@GetMapping("/udiwms/thrsys/thrCorp/download")
public BaseResponse downloadThrCorps(BasicUnitMaintainFilterRequest unitMaintainFilterRequest,
BindingResult bindingResult) {

@ -1,6 +1,8 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrCorpImportLogEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity;
@ -32,6 +34,7 @@ public class ThrCorpImportLogController {
@Resource
ThrCorpImportDetailService thrCorpImportDetailService;
@Log(title = "获取第三方数据往来单位导入日志信息列表")
@GetMapping("/udiwms/thrCorp/importLog/filter")
public BaseResponse filter(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -49,6 +52,7 @@ public class ThrCorpImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方数据往来单位导入日志信息详情列表")
@GetMapping("/udiwms/thrCorp/importLog/filterDetail")
public BaseResponse filterDetail(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -66,6 +70,7 @@ public class ThrCorpImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方数据往来单位导入日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrCorp/importLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {

@ -2,7 +2,9 @@ package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.entity.thrsys.*;
import com.glxp.api.admin.req.basic.BasicUnitMaintainFilterRequest;
@ -37,6 +39,7 @@ public class ThrCorpsController {
@Resource
private ThrCorpImportLogService thrCorpImportLogService;
@Log(title = "获取第三方数据往来单位信息列表")
@GetMapping("/udiwms/thrsys/getCorps")
public BaseResponse getCorps(FilterThrCorpRequest filterThrCorpRequest,
BindingResult bindingResult) {
@ -54,6 +57,7 @@ public class ThrCorpsController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方数据往来单位信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/delCorps")
public BaseResponse delCorps(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -66,6 +70,7 @@ public class ThrCorpsController {
return ResultVOUtils.success("删除成功");
}
@Log(title = "删除所有第三方数据往来单位信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/corp/delAll")
public BaseResponse delAll() {
@ -75,6 +80,7 @@ public class ThrCorpsController {
//第三方服务上传(包括文件导入后上传)
@Log(title = "第三方服务上传(包括文件导入后上传)",businessType = BusinessType.INSERT)
@PostMapping("/udiwms/thrsys/postCorps")
public BaseResponse postCorps(@RequestBody PostThrCorpRequest postThrCorpRequest,
BindingResult bindingResult) {
@ -108,6 +114,7 @@ public class ThrCorpsController {
}
//接口一键全部
@Log(title = "接口一键全部")
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/corp/downloadAll")
public BaseResponse downloadAll(FilterThrCorpRequest filterThrProductsRequest) {
@ -133,6 +140,7 @@ public class ThrCorpsController {
}
//选中或者下载全部
@Log(title = "选中或者下载全部")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/corp/corpsDlAll")
public BaseResponse corpsDlAll(@RequestBody BasicUnitMaintainFilterRequest filterThrCorpRequest) {

@ -1,7 +1,9 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsEntity;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportLogEntity;
@ -38,6 +40,7 @@ public class ThrInvProductsController {
@Resource
private ThrInvProductsImportLogService thrInvProductsImportLogService;
@Log(title = "获取第三方产品信息列表")
@GetMapping("/udiwms/thrsys/getInvProducts")
public BaseResponse getInvProducts(FilterThrInvProductsRequest filterThrInvProductsRequest,
BindingResult bindingResult) {
@ -57,6 +60,7 @@ public class ThrInvProductsController {
//第三方服务上传(包括文件导入后上传)
@Log(title = "第三方服务上传(包括文件导入后上传)")
@PostMapping("/udiwms/thrsys/postInvProducts")
public BaseResponse postInvProducts(@RequestBody PostThrInvProductsRequest postThrInvProductsRequest,
BindingResult bindingResult) {
@ -95,6 +99,7 @@ public class ThrInvProductsController {
return ResultVOUtils.error(500, "上传数据为空");
}
@Log(title = "删除第三方产品信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrsys/delInvProducts")
public BaseResponse delInvProducts(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -108,13 +113,14 @@ public class ThrInvProductsController {
else return ResultVOUtils.error(500, "无法删除!");
}
@Log(title = "删除所有第三方产品信息",businessType = BusinessType.DELETE)
@RequestMapping("/udiwms/thrsys/invProducts/delAll")
public BaseResponse delAll() {
thrInvProductsService.deleteAll();
return ResultVOUtils.success("删除成功");
}
@Log(title = "下载所有第三方产品信息")
@RequestMapping("/udiwms/thrsys/invProducts/downloadAll")
public BaseResponse downloadAll(FilterThrInvProductsRequest filterThrInvProductsRequest) {
String data = (String) redisUtil.get(Constant.dlThrInvProducts);
@ -138,6 +144,7 @@ public class ThrInvProductsController {
}
}
@PostMapping("/udiwms/thrsys/invProducts/inpisDlAll")
public BaseResponse inpisDlAll(@RequestBody ErpOnhandRequest erpOnhandRequest) {

@ -1,7 +1,9 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.basic.BasicThirdSysDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsEntity;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsExportLogEntity;
@ -51,6 +53,7 @@ public class ThrInvProductsExportLogController {
@Resource
ErpInvClient erpInvClient;
@Log(title = "获取第三方产品导出日志信息")
@GetMapping("/udiwms/invProducts/exportLog/filter")
public BaseResponse filter(FilterUdiEpLogRequest filterUdiEpLogReques,
BindingResult bindingResult) {
@ -68,6 +71,7 @@ public class ThrInvProductsExportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方产品导出日志",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/invProducts/exportLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -80,6 +84,7 @@ public class ThrInvProductsExportLogController {
}
//产品信息excel文件下载
@Log(title = "产品信息excel文件下载")
@GetMapping("/udiwms/invProducts/exportLog/download")
public void download(FilterUdiEpLogRequest filterUdiEpLogRequest, HttpServletResponse res) {
@ -116,6 +121,7 @@ public class ThrInvProductsExportLogController {
}
//产品信息导出生成Excel并创建生成记录
@Log(title = "产品信息导出生成Excel并创建生成记录")
@PostMapping("/udiwms/invProducts/importLog/export")
public BaseResponse excelDownload(@RequestBody ThrInvProductsExportRequest thrInvProductsExportRequest) {
@ -143,6 +149,7 @@ public class ThrInvProductsExportLogController {
//第三方库存产品信息接口下载(第三方使用)
@Log(title = "第三方库存产品信息接口下载(第三方使用)")
@GetMapping("/udiwms/thirdSys/invProducts/download")
public BaseResponse getOnhand(ErpOnhandRequest onhandQueryRequest,
BindingResult bindingResult) {

@ -1,6 +1,8 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportLogEntity;
@ -30,6 +32,7 @@ public class ThrInvProductsImportLogController {
@Resource
ThrInvProductsDetailService thrInvProductsDetailService;
@Log(title = "获取第三方产品信息导入日志信息列表")
@GetMapping("/udiwms/thrInvProducts/importLog/filter")
public BaseResponse filter(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -47,6 +50,7 @@ public class ThrInvProductsImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方产品信息导入日志信息详情列表")
@GetMapping("/udiwms/thrInvProducts/importLog/filterDetail")
public BaseResponse filterDetail(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -64,6 +68,7 @@ public class ThrInvProductsImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方产品信息导入日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrInvProducts/importLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {

@ -2,6 +2,8 @@ package com.glxp.api.admin.controller.thrsys;
import cn.hutool.core.util.StrUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.dao.basic.BasicThirdSysDao;
import com.glxp.api.admin.entity.thrsys.ThrInvWarehouseEntity;
import com.glxp.api.admin.req.inout.DeleteRequest;
@ -35,6 +37,7 @@ public class ThrInvWarehouseController {
@Resource
private BasicThirdSysDao basicThirdSysDao;
@Log(title = "获取第三方仓库信息列表")
@GetMapping("spms/thrsys/warehouse/filter")
public BaseResponse filterInvWarehouse(FilterThrInvWarehouseRequest filterThrInvWarehouseRequest) {
List<ThrInvWarehouseEntity> thrInvWarehouseEntities = thrInvWarehouseService.filterThrInvWarehouse(filterThrInvWarehouseRequest);
@ -46,7 +49,7 @@ public class ThrInvWarehouseController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方所有仓库信息列表")
@GetMapping("spms/thrsys/warehouse/filterAll")
public BaseResponse filterAllInvWarehouse(FilterThrInvWarehouseRequest filterThrInvWarehouseRequest) {
filterThrInvWarehouseRequest.setPid(0);
@ -54,6 +57,7 @@ public class ThrInvWarehouseController {
return ResultVOUtils.success(thrInvWarehouseEntities);
}
@Log(title = "保存第三方仓库信息",businessType = BusinessType.INSERT)
@PostMapping("/spms/thrsys/warehouse/save")
public BaseResponse save(@RequestBody @Valid ThrInvWarehouseEntity thrInvWarehouseEntity,
BindingResult bindingResult) {
@ -84,6 +88,7 @@ public class ThrInvWarehouseController {
return ResultVOUtils.success("添加成功!");
}
@Log(title = "编辑第三方仓库信息",businessType = BusinessType.UPDATE)
@PostMapping("/spms/thrsys/warehouse/edit")
public BaseResponse edit(@RequestBody @Valid ThrInvWarehouseEntity thrInvWarehouseEntity,
BindingResult bindingResult) {
@ -103,6 +108,7 @@ public class ThrInvWarehouseController {
return ResultVOUtils.success();
}
@Log(title = "删除第三方仓库信息",businessType = BusinessType.DELETE)
@PostMapping("/spms/thrsys/warehouse/delete")
public BaseResponse delete(@RequestBody DeleteRequest deleteRequest) {
if (deleteRequest.getId() == null) {
@ -117,6 +123,7 @@ public class ThrInvWarehouseController {
* @param thirdSysFk
* @return
*/
@Log(title = "下载第三方系统的仓库")
@GetMapping("/spms/thrsys/warehouse/download")
public BaseResponse downloadThirdWarehouse(String thirdSysFk) {
if (StrUtil.isBlank(thirdSysFk)) {

@ -4,7 +4,9 @@ import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.entity.info.SystemParamConfigEntity;
import com.glxp.api.admin.entity.inout.ErpOrderEntity;
@ -61,6 +63,7 @@ public class ThrOrderController {
@Resource
private OrderDetailService myErpOrderService;
@Log(title = "获取第三方单据信息列表")
@AuthRuleAnnotation("")
@GetMapping("/udiwms/thrsys/getOrders")
public BaseResponse getOrders(FilterThrOrderRequest filterThrOrderRequest,
@ -79,6 +82,7 @@ public class ThrOrderController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方单据信息详情列表")
@AuthRuleAnnotation("")
@GetMapping("/udiwms/thrsys/getOrderDetails")
public BaseResponse getOrderDetails(FilterThrOrderDetailRequest filterThrOrderDetailRequest,
@ -97,6 +101,7 @@ public class ThrOrderController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "上传第三方单据信息")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/postOrderDetail")
public BaseResponse postOrderDetail(@RequestBody PostThrOrderRequest postThrOrderRequest,
@ -155,6 +160,7 @@ public class ThrOrderController {
return ResultVOUtils.success("单据上传成功!");
}
@Log(title = "上传第三方文件单据信息")
@PostMapping("/udiwms/thrsys/postFileOrder")
public BaseResponse postFileOrder(@RequestBody PostFileThrOrderRequest postThrOrderRequest,
BindingResult bindingResult) {
@ -202,7 +208,7 @@ public class ThrOrderController {
return ResultVOUtils.success("单据上传成功!");
}
@Log(title = "删除第三方单据信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrsys/delOrder")
public BaseResponse delOrder(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -222,7 +228,7 @@ public class ThrOrderController {
}
@Log(title = "删除第三方单据信息详情",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/delOrderDetail")
public BaseResponse delOrderDetail(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -248,6 +254,7 @@ public class ThrOrderController {
}
}
@Log(title = "删除所有第三方单据信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/order/delAll")
public BaseResponse delAll() {
@ -256,6 +263,7 @@ public class ThrOrderController {
return ResultVOUtils.success("删除成功");
}
@Log(title = "下载所有第三方单据信息")
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/orders/downloadAll")
public BaseResponse downloadAll(FilterThrOrderRequest filterThrProductsRequest) {
@ -285,6 +293,7 @@ public class ThrOrderController {
}
}
@Log(title = "单据下载")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/orders/orderDownload")
public BaseResponse orderDownload(@RequestBody FilterThrOrderRequest filterThrProductsRequest) {
@ -314,6 +323,7 @@ public class ThrOrderController {
}
}
@Log(title = "上传单据")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/smp/postOrder")
public BaseResponse postSmpOrder(@RequestBody PostSmpOrderRequest postSmpOrderRequest,

@ -1,7 +1,9 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.basic.BasicThirdSysDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrOrderDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrOrderEntity;
@ -56,6 +58,7 @@ public class ThrOrderExportLogController {
@Resource
private ErpOrderClient erpOrderClient;
@Log(title = "获取第三方单据导出日志信息列表")
@GetMapping("/udiwms/thrOrder/exportLog/filter")
public BaseResponse filter(FilterUdiEpLogRequest filterUdiEpLogReques,
BindingResult bindingResult) {
@ -73,6 +76,7 @@ public class ThrOrderExportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方单据导出日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrOrder/exportLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -85,6 +89,7 @@ public class ThrOrderExportLogController {
}
//业务单据excel文件下载
@Log(title = "业务单据excel文件下载")
@GetMapping("/udiwms/thrOrder/exportLog/download")
public void download(FilterUdiEpLogRequest filterUdiEpLogRequest, HttpServletResponse res) {
@ -121,6 +126,7 @@ public class ThrOrderExportLogController {
}
//业务单据导出生成Excel并创建生成记录
@Log(title = "业务单据导出生成Excel并创建生成记录")
@PostMapping("/udiwms/thrOrder/importLog/export")
public BaseResponse excelDownload(@RequestBody ThrOrderExportRequest thrOrderExportRequest) {
@ -149,6 +155,7 @@ public class ThrOrderExportLogController {
}
//业务单据上传SMP并创建生成记录
@Log(title = "业务单据上传SMP并创建生成记录")
@PostMapping("/udiwms/thrOrder/importLog/uploadSmp")
public BaseResponse uploadSmp(@RequestBody ThrOrderExportRequest thrOrderExportRequest) {
@ -167,6 +174,7 @@ public class ThrOrderExportLogController {
}
//第三方业务单据接口下载(第三方使用)
@Log(title = "第三方业务单据接口下载(第三方使用)")
@GetMapping("/udiwms/thrsys/thrOrder/download")
public BaseResponse downloadThrOrders(FilterOrderRequest filterErpOrderRequest,
BindingResult bindingResult) {

@ -2,7 +2,9 @@ package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.basic.BussinessTypeEntity;
import com.glxp.api.admin.entity.thrsys.ThrOrderImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrOrderImportLogEntity;
@ -44,6 +46,7 @@ public class ThrOrderImportLogController {
@Resource
BussinessTypeService bussinessTypeService;
@Log(title = "获取第三方单据导入日志信息列表")
@GetMapping("/udiwms/thrOrder/importLog/filter")
public BaseResponse filter(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -61,6 +64,7 @@ public class ThrOrderImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方单据导入日志信息详情列表")
@GetMapping("/udiwms/thrOrder/importLog/filterDetail")
public BaseResponse filterDetail(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -78,7 +82,7 @@ public class ThrOrderImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方单据导入日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrOrder/importLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -98,6 +102,7 @@ public class ThrOrderImportLogController {
return ResultVOUtils.success("删除成功");
}
@Log(title = "删除第三方单据信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrOrder/importLog/delete")
public BaseResponse delete(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -110,7 +115,7 @@ public class ThrOrderImportLogController {
return ResultVOUtils.error(500, "删除成功");
}
@Log(title = "上传单据")
@PostMapping("/udiwms/thrOrder/importLog/upload")
public BaseResponse uploadOrders(@RequestParam("file") List<MultipartFile> files, @RequestParam("thirdSys") String thirdSys) {

@ -5,6 +5,8 @@ import cn.hutool.core.date.DatePattern;
import cn.hutool.core.date.DateUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.entity.business.StockOrderDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrOrderDetailEntity;
@ -48,6 +50,7 @@ public class ThrOrderReceiveController {
@Resource
GennerOrderUtils gennerOrderUtils;
@Log(title = "新增第三方单据验收信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/order/insertWeb")
public BaseResponse addReceive(@RequestBody StockOrderPostRequest stockOrderPostRequest, BindingResult bindingResult) {
@ -81,6 +84,7 @@ public class ThrOrderReceiveController {
return ResultVOUtils.success("成功");
}
@Log(title = "编辑第三方单据验收信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/udiwms/receive/order/update")
public BaseResponse updateReceive(@RequestBody StockOrderPostRequest stockOrderPostRequest, BindingResult bindingResult) {
@ -113,7 +117,7 @@ public class ThrOrderReceiveController {
return ResultVOUtils.success("成功");
}
@Log(title = "获取第三方单据验收信息列表")
@AuthRuleAnnotation("")
@GetMapping("/udiwms/receive/order/filter")
public BaseResponse filterReceive(FilterOrderRequest filterErpOrderRequest,

@ -2,7 +2,9 @@ package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.Constant;
import com.glxp.api.admin.entity.basic.BasicThirdSysEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsEntity;
@ -46,6 +48,7 @@ public class ThrProductsController {
@Resource
BasicThirdSysService basicThirdSysService;
@Log(title = "获取第三方产品信息列表")
@AuthRuleAnnotation("")
@GetMapping("/udiwms/thrsys/getThrProducts")
public BaseResponse getThrProducts(FilterThrProductsRequest filterThrProductsRequest,
@ -64,7 +67,7 @@ public class ThrProductsController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方产品信息列表")
@GetMapping("/udiwms/thrsys/filterProducts")
public BaseResponse filterThrProducts(FilterThrProductsRequest filterThrProductsRequest,
BindingResult bindingResult) {
@ -91,7 +94,7 @@ public class ThrProductsController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方产品信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrsys/delThrProducts")
public BaseResponse delThrProducts(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -139,6 +142,7 @@ public class ThrProductsController {
else return "删除失败!";
}
@Log(title = "删除所有第三方产品信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/products/delAll")
public BaseResponse delAll() {
@ -148,6 +152,7 @@ public class ThrProductsController {
//第三方服务上传(包括文件导入后上传)
@Log(title = "第三方服务上传(包括文件导入后上传)")
@PostMapping("/udiwms/thrsys/postThrProducts")
public BaseResponse postThrProducts(@RequestBody PostThrProductsRequest postThrProductsRequest,
BindingResult bindingResult) {
@ -187,6 +192,7 @@ public class ThrProductsController {
}
//接口一键下载全部
@Log(title = "接口一键下载全部")
@AuthRuleAnnotation("")
@RequestMapping("/udiwms/thrsys/products/downloadAll")
public BaseResponse downloadAll(FilterThrProductsRequest filterThrProductsRequest) {
@ -213,6 +219,7 @@ public class ThrProductsController {
//接口一键下载全部
@Log(title = "接口一键下载全部")
@AuthRuleAnnotation("")
@PostMapping("/udiwms/thrsys/products/productsDlAll")
public BaseResponse productsDlAll(@RequestBody FilterThrProductsRequest filterThrProductsRequest) {

@ -1,7 +1,9 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BasicProcessStatus;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.basic.BasicThirdSysDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsExportLogEntity;
@ -49,6 +51,7 @@ public class ThrProductsExportLogController {
@Resource
BasicThirdSysDetailService basicThirdSysDetailService;
@Log(title = "获取第三方产品导出日志信息列表")
@GetMapping("/udiwms/thrProducts/exportLog/filter")
public BaseResponse filter(FilterUdiEpLogRequest filterUdiEpLogReques,
BindingResult bindingResult) {
@ -66,6 +69,7 @@ public class ThrProductsExportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方产品导出日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrProducts/exportLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {
@ -78,6 +82,7 @@ public class ThrProductsExportLogController {
}
//产品信息excel文件下载
@Log(title = "产品信息excel文件下载")
@GetMapping("/udiwms/thrProducts/exportLog/download")
public void download(FilterUdiEpLogRequest filterUdiEpLogRequest, HttpServletResponse res) {
@ -114,6 +119,7 @@ public class ThrProductsExportLogController {
}
//产品信息导出生成Excel并创建生成记录
@Log(title = "产品信息导出生成Excel并创建生成记录")
@PostMapping("/udiwms/thrProducts/importLog/export")
public BaseResponse excelDownload(@RequestBody ThrProductsExportRequest thrProductsExportRequest) {
ThrProductsExportLogEntity thrProductsExportLogEntity = new ThrProductsExportLogEntity();
@ -143,6 +149,7 @@ public class ThrProductsExportLogController {
//产品信息上传供应商管理平台,并创建生成记录
@Log(title = "产品信息上传供应商管理平台,并创建生成记录")
@PostMapping("/udiwms/thrProducts/importLog/uploadSmp")
public BaseResponse uploadSmp(@RequestBody ThrProductsExportRequest thrProductsExportRequest) {
@ -160,6 +167,7 @@ public class ThrProductsExportLogController {
}
//第三方产品信息接口下载(第三方使用)
@Log(title = "第三方产品信息接口下载(第三方使用)")
@GetMapping("/udiwms/thrsys/thrProducts/download")
public BaseResponse getErpProducts(FilterErpGoodsRequest filterErpGoodsRequest,
BindingResult bindingResult) {

@ -1,6 +1,8 @@
package com.glxp.api.admin.controller.thrsys;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.thrsys.ThrOrderImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity;
import com.glxp.api.admin.entity.thrsys.ThrProductsImportLogEntity;
@ -30,6 +32,7 @@ public class ThrProductsImportLogController {
@Resource
ThrProductsImportDetailService thrProductsImportDetailService;
@Log(title = "获取第三方产品导入日志信息列表")
@GetMapping("/udiwms/thrProducts/importLog/filter")
public BaseResponse filter(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -47,6 +50,7 @@ public class ThrProductsImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取第三方产品导入日志信息详情列表")
@GetMapping("/udiwms/thrProducts/importLog/filterDetail")
public BaseResponse filterDetail(FilterUdiIpLogRequest filterUdiIpLogRequest,
BindingResult bindingResult) {
@ -64,6 +68,7 @@ public class ThrProductsImportLogController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "删除第三方产品导入日志信息",businessType = BusinessType.DELETE)
@PostMapping("/udiwms/thrProducts//importLog/deleteLog")
public BaseResponse deleteLog(@RequestBody DeleteRequest deleteRequest, BindingResult bindingResult) {

@ -2,6 +2,8 @@ package com.glxp.api.admin.controller.thrsys;
import cn.hutool.core.collection.CollUtil;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.constant.ConstantStatus;
import com.glxp.api.admin.dao.basic.UdiRelevanceDao;
import com.glxp.api.admin.dao.basic.UnitMaintainDao;
@ -42,6 +44,7 @@ public class ThrScOrderController {
@Resource
UdiRelevanceDao udiRelevanceDao;
@AuthRuleAnnotation("")
@PostMapping("udiwms/inout/thridOrder/upload")
public BaseResponse saveOrderWeb(@RequestBody ThrPostOrderRequest thrPostOrderRequest) {

@ -3,6 +3,8 @@ package com.glxp.api.admin.controller.thrsys;
import cn.hutool.core.util.IdUtil;
import com.github.pagehelper.PageInfo;
import com.glxp.api.admin.annotation.AuthRuleAnnotation;
import com.glxp.api.admin.annotation.Log;
import com.glxp.api.admin.constant.BusinessType;
import com.glxp.api.admin.entity.thrsys.ThrInvWarehouseEntity;
import com.glxp.api.admin.entity.thrsys.ThrSubInvWarehouseEntity;
import com.glxp.api.admin.req.inout.DeleteRequest;
@ -33,6 +35,7 @@ public class ThrSubInvWarehouseController {
@Resource
ThrInvWarehouseService thrInvWarehouseService;
@Log(title = "获取仓库信息列表")
@GetMapping("/thirdSys/sub/inv/warehouse/filter")
public BaseResponse filterInvWarehouse(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest) {
List<ThrSubInvWarehouseResponse> thrSubInvWarehouseResponses = thrSubInvWarehouseService.filterThrInvWarehouseResponse(filterThrSubInvWarehouseRequest);
@ -44,6 +47,7 @@ public class ThrSubInvWarehouseController {
return ResultVOUtils.success(pageSimpleResponse);
}
@Log(title = "获取所有仓库信息列表")
@AuthRuleAnnotation("")
@GetMapping("/thirdSys/sub/inv/warehouse/filterAll")
public BaseResponse filterAllInvWarehouse(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest) {
@ -51,6 +55,7 @@ public class ThrSubInvWarehouseController {
return ResultVOUtils.success(invSubWarehouseEntities);
}
@Log(title = "保存仓库信息",businessType = BusinessType.INSERT)
@AuthRuleAnnotation("")
@PostMapping("/thirdSys/sub/inv/warehouse/save")
public BaseResponse save(@RequestBody @Valid ThrSubInvWarehouseEntity invSubWarehouseEntity,
@ -71,6 +76,7 @@ public class ThrSubInvWarehouseController {
return ResultVOUtils.success("添加成功!");
}
@Log(title = "编辑仓库信息",businessType = BusinessType.UPDATE)
@AuthRuleAnnotation("")
@PostMapping("/thirdSys/sub/inv/warehouse/edit")
public BaseResponse edit(@RequestBody @Valid ThrSubInvWarehouseEntity invSubWarehouseEntity,
@ -95,7 +101,7 @@ public class ThrSubInvWarehouseController {
return ResultVOUtils.success("修改成功!");
}
@Log(title = "删除仓库信息",businessType = BusinessType.DELETE)
@AuthRuleAnnotation("")
@PostMapping("/thirdSys/sub/inv/warehouse/delete")
public BaseResponse delete(@RequestBody DeleteRequest deleteRequest) {

Loading…
Cancel
Save