|
@@ -17,4 +17,15 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
*/
|
|
|
@Service
|
|
|
public class ContractTermsServiceImpl extends ServiceImpl<ContractTermsMapper, ContractTerms> implements ContractTermsService {
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ContractTerms getByContractIdAndType(Long contractId, String contractType) {
|
|
|
+ return this.lambdaQuery().eq(ContractTerms::getContractId, contractId)
|
|
|
+ .eq(ContractTerms::getContractType, contractType).one();
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public ContractTerms getByContractNo(String contractNo) {
|
|
|
+ return this.lambdaQuery().eq(ContractTerms::getContractNo, contractNo).one();
|
|
|
+ }
|
|
|
}
|