IContractService.java 1.48 KB
package vion.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.databind.JsonNode;
import com.github.yulichang.base.MPJBaseService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import vion.dto.ContractDTO;
import vion.dto.RContractTeamDTO;
import vion.model.Contract;
import vion.model.RContractProduct;
import vion.model.RContractUser;
import vion.vo.ContractVO;

import java.util.List;
import java.util.Map;

/**
 * @author HlQ
 * @date 2023/11/29
 */
public interface IContractService extends MPJBaseService<Contract> {

    Page<ContractVO> list(ContractDTO dto);

    Page<ContractVO> listPart(ContractDTO dto);

    Page<ContractVO> listByMain(ContractDTO dto);

    ContractVO getVOById(Long id);

    ContractVO getByNo(@PathVariable String no);

    String updateById(Long id, String contractNo, ContractDTO dto);

    JsonNode calAmount(ContractDTO dto);

    Map<String, Object> analyze(ContractDTO dto);

    String dispatch(@RequestBody RContractTeamDTO dto);

    Page<RContractUser> getSaleList(RContractUser dto);

    String assignSale(RContractUser contractUser);

    String unbindSale(RContractUser contractUser);

    List<RContractProduct> getProduct(String contractNo);

    String createContract(String contractJson);

    JsonNode getCRMProduct(String name, String code, Integer page, Integer pageSize);

    String syncContractFile(String[] contractNoList);
}