Compare commits

..

No commits in common. "31a8de55696b1bc2e822d4b5f0c854388c717994" and "0d144777055e8588e136063940df5f131b5e020c" have entirely different histories.

3 changed files with 6 additions and 42 deletions

View File

@ -1,7 +1,6 @@
package com.ruoyi.sip.controller.vue; package com.ruoyi.sip.controller.vue;
import cn.hutool.core.collection.CollUtil; import cn.hutool.core.collection.CollUtil;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
@ -137,13 +136,12 @@ public class OmsPurchaseOrderController extends BaseController
/** /**
* *
*/ */
// @RequiresPermissions("sip:purchaseorder:export") @RequiresPermissions("sip:purchaseorder:export")
@Anonymous @Log(title = "采购单主表", businessType = BusinessType.EXPORT)
@GetMapping("/export") @PostMapping("/export")
public void export(OmsPurchaseOrder omsPurchaseOrder, HttpServletResponse response) public void export(HttpServletResponse response, OmsPurchaseOrder omsPurchaseOrder)
{ {
List<OmsPurchaseOrder> list = omsPurchaseOrderService.selectOmsPurchaseOrderList(omsPurchaseOrder); List<OmsPurchaseOrder> list = omsPurchaseOrderService.selectOmsPurchaseOrderList(omsPurchaseOrder);
todoService.fillPurchaseOrderApproveNode(list);
ExcelUtil<OmsPurchaseOrder> util = new ExcelUtil<OmsPurchaseOrder>(OmsPurchaseOrder.class); ExcelUtil<OmsPurchaseOrder> util = new ExcelUtil<OmsPurchaseOrder>(OmsPurchaseOrder.class);
util.exportExcel(response, list, "采购单主表数据"); util.exportExcel(response, list, "采购单主表数据");
} }
@ -249,11 +247,4 @@ public class OmsPurchaseOrderController extends BaseController
{ {
return toAjax(omsPurchaseOrderService.deleteOmsPurchaseOrderByIds(ids)); return toAjax(omsPurchaseOrderService.deleteOmsPurchaseOrderByIds(ids));
} }
@Anonymous
@GetMapping("/test")
public String test(HttpServletResponse response)
{
return "ok";
}
} }

View File

@ -3,8 +3,6 @@ package com.ruoyi.sip.domain;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity; import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data; import lombok.Data;
import lombok.Getter; import lombok.Getter;
@ -28,92 +26,70 @@ public class OmsPurchaseOrder extends BaseEntity
private Long id; private Long id;
/** 采购单号(系统生成) */ /** 采购单号(系统生成) */
@Excel(name = "采购单号")
private String purchaseNo; private String purchaseNo;
/** 采购方名称 */ /** 采购方名称 */
@Excel(name = "采购方名称")
private String buyerName; private String buyerName;
/** 采购方地址 */ /** 采购方地址 */
@Excel(name = "采购方地址")
private String buyerAddress; private String buyerAddress;
/** 制造商ID */ /** 制造商ID */
@Excel(name = "制造商ID")
private Long vendorId; private Long vendorId;
private String vendorCode; private String vendorCode;
private List<String> authVendorCodeList; private List<String> authVendorCodeList;
@Excel(name = "供应商名称")
private String vendorName; private String vendorName;
@Excel(name = "供应商联系人")
private String vendorUser; private String vendorUser;
@Excel(name = "供应商电话")
private String vendorPhone; private String vendorPhone;
/** 币别(固定人民币) */ /** 币别(固定人民币) */
@Excel(name = "币别")
private String currency; private String currency;
/** 采购员ID */ /** 采购员ID */
@Excel(name = "采购员ID")
private Long purchaserId; private Long purchaserId;
/** 采购员姓名 */ /** 采购员姓名 */
@Excel(name = "采购员姓名")
private String purchaserName; private String purchaserName;
/** 采购员电话 */ /** 采购员电话 */
@Excel(name = "采购员电话")
private String purchaserMobile; private String purchaserMobile;
/** 采购员邮箱 */ /** 采购员邮箱 */
@Excel(name = "采购员邮箱")
private String purchaserEmail; private String purchaserEmail;
/** 入库仓库ID */ /** 入库仓库ID */
private Long warehouseId; private Long warehouseId;
@Excel(name = "入库仓库名称")
private String warehouseName; private String warehouseName;
/** 付款方式 1为出库付款其他为入库*/ /** 付款方式 */
@Excel(name = "付款方式", defaultValue = "入库付款", readConverterExp = "0=入库付款,1=出库付款,2=入库付款")
private String payMethod; private String payMethod;
/** 汇智负责人ID */ /** 汇智负责人ID */
@Excel(name = "汇智负责人ID")
private Long ownerId; private Long ownerId;
/** 汇智负责人姓名 */ /** 汇智负责人姓名 */
@Excel(name = "汇智负责人姓名")
private String ownerName; private String ownerName;
/** 含税总金额 */ /** 含税总金额 */
@Excel(name = "含税总金额")
private BigDecimal totalAmount; private BigDecimal totalAmount;
/** 采购状态0待入库 1部分入库 2已完成 */ /** 采购状态0待入库 1部分入库 2已完成 */
@Excel(name = "采购状态", readConverterExp = "0=待入库,1=部分入库,2=已完成")
private Integer status; private Integer status;
/** 审批状态0草稿 1审批中 2已通过 3驳回 */ /** 审批状态0草稿 1审批中 2已通过 3驳回 */
@Excel(name = "审批状态", readConverterExp = "0=草稿,1=审批中,2=已通过,3=驳回")
private String approveStatus; private String approveStatus;
/** 审批时间 */ /** 审批时间 */
@Excel(name = "审批时间")
private Date approveTime; private Date approveTime;
/** 当前审批节点 */ /** 当前审批节点 */
@Excel(name = "当前审批节点")
private String approveNode; private String approveNode;
/** 确认状态(待审批、已确认、或空) */ /** 确认状态(待审批、已确认、或空) */
@Excel(name = "确认状态", readConverterExp = "0=待审批,1=已确认,2=已驳回")
private String confirmStatus; private String confirmStatus;
/** 流程类型online线上 offline线下 */ /** 流程类型online线上 offline线下 */
@Excel(name = "流程类型", readConverterExp = "online=线上,offline=线下")
private String flowType; private String flowType;
/** 删除标志0正常 1删除 */ /** 删除标志0正常 1删除 */

View File

@ -111,11 +111,8 @@ public class ProjectInfoServiceImpl implements IProjectInfoService {
Map<String, List<ProjectProductInfo>> productListMap = projectProductInfos.stream().collect(Collectors.groupingBy(ProjectProductInfo::getType)); Map<String, List<ProjectProductInfo>> productListMap = projectProductInfos.stream().collect(Collectors.groupingBy(ProjectProductInfo::getType));
projectInfo.setSoftwareProjectProductInfoList(productListMap.get(ProductInfo.ProductTypeEnum.SOFTWARE.getType())); projectInfo.setSoftwareProjectProductInfoList(productListMap.get(ProductInfo.ProductTypeEnum.SOFTWARE.getType()));
projectInfo.setHardwareProjectProductInfoList(productListMap.get(ProductInfo.ProductTypeEnum.HARDWARE.getType())); projectInfo.setHardwareProjectProductInfoList(productListMap.get(ProductInfo.ProductTypeEnum.HARDWARE.getType()));
// 硬件
List<ProjectProductInfo> maintenanceProjectProductInfoList = productListMap.getOrDefault(ProductInfo.ProductTypeEnum.HARDWARE_MAINTENANCE.getType(), new ArrayList<>()); List<ProjectProductInfo> maintenanceProjectProductInfoList = productListMap.getOrDefault(ProductInfo.ProductTypeEnum.HARDWARE_MAINTENANCE.getType(), new ArrayList<>());
// 软件
maintenanceProjectProductInfoList.addAll(productListMap.getOrDefault(ProductInfo.ProductTypeEnum.SOFTWARE_MAINTENANCE.getType(), new ArrayList<>())); maintenanceProjectProductInfoList.addAll(productListMap.getOrDefault(ProductInfo.ProductTypeEnum.SOFTWARE_MAINTENANCE.getType(), new ArrayList<>()));
// 其他
maintenanceProjectProductInfoList.addAll(productListMap.getOrDefault(ProductInfo.ProductTypeEnum.OTHER.getType(), new ArrayList<>())); maintenanceProjectProductInfoList.addAll(productListMap.getOrDefault(ProductInfo.ProductTypeEnum.OTHER.getType(), new ArrayList<>()));
projectInfo.setMaintenanceProjectProductInfoList(maintenanceProjectProductInfoList); projectInfo.setMaintenanceProjectProductInfoList(maintenanceProjectProductInfoList);
//查询变更记录信息 //查询变更记录信息