机械合同名称注解
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
/**
|
||||
* 机械合同信息Service接口
|
||||
*
|
||||
* @author Lion Li
|
||||
* @date 2025-11-12
|
||||
*/
|
||||
public interface XzdContractMachineryService {
|
||||
|
||||
String selectNmaeByIds(String ids);
|
||||
|
||||
|
||||
}
|
||||
@ -53,6 +53,12 @@ public interface TransConstant {
|
||||
* 采购合同id转名称
|
||||
*/
|
||||
String XZD_PURCHASE_CONTRACT_ID_TO_NAME = "xzd_purchase_contract_id_to_name";
|
||||
|
||||
/**
|
||||
* 采购合同id转名称
|
||||
*/
|
||||
String XZD_PURCHASE_JXXIE_ID_TO_NAME = "xzd_purchase_contract_jixie_id_to_name";
|
||||
|
||||
/**
|
||||
* 综合服务合同id转名称
|
||||
*/
|
||||
|
||||
@ -0,0 +1,27 @@
|
||||
package org.dromara.common.translation.core.impl;
|
||||
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.dromara.common.core.service.XzdContractMachineryService;
|
||||
import org.dromara.common.core.service.XzdJsCgJungonService;
|
||||
import org.dromara.common.translation.annotation.TranslationType;
|
||||
import org.dromara.common.translation.constant.TransConstant;
|
||||
import org.dromara.common.translation.core.TranslationInterface;
|
||||
|
||||
@AllArgsConstructor
|
||||
@TranslationType(type = TransConstant.XZD_PURCHASE_JXXIE_ID_TO_NAME)
|
||||
public class XzdJXHTTranslation implements TranslationInterface<String> {
|
||||
|
||||
private final XzdContractMachineryService xzdContractMachineryService;
|
||||
|
||||
@Override
|
||||
public String translation(Object key, String other) {
|
||||
if (key instanceof String ids) {
|
||||
return xzdContractMachineryService.selectNmaeByIds(ids);
|
||||
} else if (key instanceof Long id) {
|
||||
return xzdContractMachineryService.selectNmaeByIds(id.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@ -13,3 +13,4 @@ org.dromara.common.translation.core.impl.XzdCsContractInformationImpl
|
||||
org.dromara.common.translation.core.impl.XzdSupplierOpenBankImpl
|
||||
org.dromara.common.translation.core.impl.XzdProjectManagerApprovalImpl
|
||||
org.dromara.common.translation.core.impl.XzdCbysZjhcbImpl
|
||||
org.dromara.common.translation.core.impl.XzdJXHTTranslation
|
||||
|
||||
Reference in New Issue
Block a user