package com.chinaztt.mes.plan.mapper;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.baomidou.mybatisplus.annotation.SqlParser;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.chinaztt.mes.plan.dto.CustomerOrderDTO;
|
import com.chinaztt.mes.plan.dto.CustomerOrderExportData;
|
import com.chinaztt.mes.plan.dto.OADetailDTO;
|
import com.chinaztt.mes.plan.entity.CustomerOrder;
|
import com.chinaztt.mes.plan.entity.OrderParam;
|
import com.chinaztt.mes.plan.excel.CustomerOrderData;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* 客户订单表
|
*
|
* @author cxf
|
* @date 2020-09-14 16:35:26
|
*/
|
@Mapper
|
public interface CustomerOrderMapper extends BaseMapper<CustomerOrder> {
|
|
/**
|
* 分页查询客户订单
|
*
|
* @param page
|
* @param planCustomerOrder
|
* @param type
|
* @return
|
*/
|
IPage<List<CustomerOrderDTO>> getCustomerOrderPage(Page page, @Param("ew") QueryWrapper<CustomerOrder> planCustomerOrder, @Param("type") String type);
|
|
/**
|
* 获取客户订单和绑定的订单参数
|
*
|
* @param id
|
* @param orderParam
|
* @return
|
*/
|
@SqlParser(filter = true)
|
JSONObject getCustomerOrderById(@Param("orderId") Long id, @Param("query") OrderParam orderParam);
|
|
JSONObject getCustomerOrderByIdnew(@Param("orderId") Long id);
|
|
/**
|
* 根据主计划获取对应的客户订单
|
*
|
* @param id
|
* @return
|
*/
|
List<CustomerOrder> getCustomerOrder(Long id);
|
|
/**
|
* 根据制造订单id获取对应的客户订单
|
*
|
* @param id
|
* @return
|
*/
|
List<CustomerOrder> getCustomerOrderByOrder(Long id);
|
|
List<CustomerOrder> getCustomerOrderBySchedule(Long id);
|
|
/**
|
* Description: 通过制造订单id查询客户订单
|
*
|
* @param id
|
* @return List<CustomerOrder>
|
*/
|
List<CustomerOrder> getCustomer(Long id);
|
|
/**
|
* 通过id加载主生产计划来源(客户订单)
|
*
|
* @param id
|
* @return
|
*/
|
List<CustomerOrderDTO> loadMasterPlanSourceByCustomer(Long id);
|
|
/**
|
* 解除关联工艺文件
|
*
|
* @param id
|
*/
|
void rejectHandleDocument(@Param("id") Long id);
|
|
/**
|
* 根据SN号获取客户订单的信息
|
*
|
* @param sn
|
* @return
|
*/
|
CustomerOrder getCustomerOrderByProductOutput(@Param("sn") String sn);
|
|
/**
|
* 查询导出数据
|
*
|
* @param wrapper
|
* @return
|
*/
|
List<CustomerOrderData> getExport(@Param("ew") QueryWrapper<CustomerOrderDTO> wrapper);
|
|
List<String> getPartNamesByOrderNo(@Param("customerOrderNo") String customerOrderNo);
|
|
CustomerOrderExportData getCustomerOrderExportData(@Param("id") Long id);
|
|
/**
|
* 查询OA工艺详情页面
|
*
|
* @param ids
|
* @return
|
*/
|
List<OADetailDTO> getOADetail(@Param("ids") List<Long> ids);
|
|
|
/**
|
* 查询订单,工艺文件,零件表
|
*
|
* @param ids
|
* @return
|
*/
|
List<CustomerOrderDTO> selectOrderDocAndPart(@Param("ids") List<Long> ids);
|
|
|
/**
|
* 通过计划订单号获取客户订单表
|
*
|
* @param id
|
* @return
|
*/
|
CustomerOrder getCustomerOrderByScheduleId(@Param("id") Long id);
|
|
/**
|
* 查询该订单号下除原本编辑订单行外的其他订单行记录
|
*
|
* @param customerOrderNo
|
* @param id
|
* @return
|
*/
|
List<CustomerOrderDTO> getByCustomerOrderNo(@Param("customerOrderNo") String customerOrderNo, @Param("id") Long id);
|
|
IPage<String> getAuditedOrderNoPage(@Param("customerOrderNo") String customerOrderNo, Page page);
|
|
CustomerOrder getCustomerOrderNoByOperationTaskId(@Param("taskId") Long taskId);
|
}
|