151 lines
3.2 KiB
Java
151 lines
3.2 KiB
Java
package com.ruoyi.quot.mapper;
|
|
|
|
import java.util.List;
|
|
import com.ruoyi.quot.domain.Quot;
|
|
import com.ruoyi.quot.domain.QuotMaterial;
|
|
import com.ruoyi.quot.domain.SysOaQuot;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
/**
|
|
* 报价Mapper接口
|
|
*
|
|
* @author ruoyi
|
|
* @date 2024-04-01
|
|
*/
|
|
public interface QuotMapper
|
|
{
|
|
/**
|
|
* 查询报价
|
|
*
|
|
* @param quotId 报价主键
|
|
* @return 报价
|
|
*/
|
|
public Quot selectQuotByQuotId(String quotId);
|
|
|
|
/**
|
|
* 根据报价单号获取信息
|
|
* @param quotCode
|
|
* @return
|
|
*/
|
|
String selectQuotByQuotCode(String quotCode);
|
|
|
|
/**
|
|
* 查询报价列表
|
|
*
|
|
* @param quot 报价
|
|
* @return 报价集合
|
|
*/
|
|
public List<Quot> selectQuotList(Quot quot);
|
|
|
|
/**
|
|
* 统计当天协助中、已协助的报价单数量
|
|
* @return
|
|
*/
|
|
String selectQuotListCount();
|
|
|
|
/**
|
|
* 新增报价
|
|
*
|
|
* @param quot 报价
|
|
* @return 结果
|
|
*/
|
|
public int insertQuot(Quot quot);
|
|
|
|
/**
|
|
* 修改报价
|
|
*
|
|
* @param quot 报价
|
|
* @return 结果
|
|
*/
|
|
public int updateQuot(Quot quot);
|
|
|
|
/**
|
|
* 删除报价
|
|
*
|
|
* @param quotId 报价主键
|
|
* @return 结果
|
|
*/
|
|
public int deleteQuotByQuotId(String quotId);
|
|
|
|
/**
|
|
* 批量删除报价
|
|
*
|
|
* @param quotIds 需要删除的数据主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteQuotByQuotIds(String[] quotIds);
|
|
|
|
/**
|
|
* 批量删除报价单-产品
|
|
*
|
|
* @param quotIds 需要删除的数据主键集合
|
|
* @return 结果
|
|
*/
|
|
public int deleteQuotMaterialByQuotIds(String[] quotIds);
|
|
|
|
/**
|
|
* 批量新增报价单-产品
|
|
*
|
|
* @param quotMaterialList 报价单-产品列表
|
|
* @return 结果
|
|
*/
|
|
public int batchQuotMaterial(List<QuotMaterial> quotMaterialList);
|
|
|
|
|
|
/**
|
|
* 通过报价主键删除报价单-产品信息
|
|
*
|
|
* @param quotId 报价ID
|
|
* @return 结果
|
|
*/
|
|
public int deleteQuotMaterialByQuotId(String quotId);
|
|
|
|
/**
|
|
* 获取报价单信息
|
|
* @param quotJsqrId
|
|
* @return
|
|
*/
|
|
Quot selectQuotByQuotJsqrId(String quotJsqrId);
|
|
|
|
/**
|
|
* 获取报价单信息
|
|
* @param quotHjId
|
|
* @return
|
|
*/
|
|
Quot selectQuotByQuotHjId(String quotHjId);
|
|
|
|
/**
|
|
* 校验 是否已有重复报价单(客户+项目名)
|
|
* @param username
|
|
* @param quotCustomerBm
|
|
* @param quotProject
|
|
* @return
|
|
*/
|
|
String checkExistQuot(@Param("quotSalesmanCode") String username, @Param("quotCustomerBm") String quotCustomerBm, @Param("quotProject") String quotProject);
|
|
|
|
/**
|
|
* 报价单提交OA,插入中间表 sys_oa_quot sys_oa_quot_material
|
|
* @param sysOaQuot
|
|
*/
|
|
void insertSysOAQuot(SysOaQuot sysOaQuot);
|
|
|
|
/**
|
|
* 查询OA用户
|
|
* @param loginid
|
|
* @return
|
|
*/
|
|
SysOaQuot selectOAUserByUserName(String loginid);
|
|
|
|
/**
|
|
* 报价单提交OA,插入中间表 sys_oa_quot sys_oa_quot_material
|
|
* @param subList
|
|
*/
|
|
void batchSysOaQuotMaterial(List<QuotMaterial> subList);
|
|
|
|
/**
|
|
* 获取单据编号
|
|
* @return
|
|
*/
|
|
String getCode(String type);
|
|
}
|