IContractService.java 1.12 KB
package vion.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
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.RContractUser;
import vion.vo.ContractVO;

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);

    ContractVO getVOById(Long id);

    ContractVO getByNo(@PathVariable String no);

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

    JSONObject 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);

}