设计合同进度结算、设计合同竣工结算、设计合同付款、设计合同收款的新增、修改、查询、删除
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
package org.dromara.common.core.service;
|
||||
|
||||
public interface XzdSjContractInfoService {
|
||||
|
||||
String selectNameByIds(String ids);
|
||||
}
|
||||
@ -82,5 +82,10 @@ public interface TransConstant {
|
||||
*/
|
||||
String XZD_CBYS_ZJHCB_ID_TO_NAME = "xzd_cbys_zjhcb_id_to_name";
|
||||
|
||||
/**
|
||||
* 新中大-设计合同信息id转name
|
||||
*/
|
||||
String XZD_SJ_CONTRACT_INFO_ID_TO_NAME = "xzd_sj_contract_info_id_to_name";
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,24 @@
|
||||
package org.dromara.common.translation.core.impl;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.dromara.common.core.service.XzdSjContractInfoService;
|
||||
import org.dromara.common.core.service.XzdSupplierOpenBankService;
|
||||
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_SJ_CONTRACT_INFO_ID_TO_NAME)
|
||||
public class XzdSjContractInfoImpl implements TranslationInterface<String> {
|
||||
|
||||
private final XzdSjContractInfoService xzdSjContractInfoService;
|
||||
@Override
|
||||
public String translation(Object key, String other) {
|
||||
if (key instanceof String ids) {
|
||||
return xzdSjContractInfoService.selectNameByIds(ids);
|
||||
} else if (key instanceof Long id) {
|
||||
return xzdSjContractInfoService.selectNameByIds(id.toString());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -14,3 +14,4 @@ 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
|
||||
org.dromara.common.translation.core.impl.XzdSjContractInfoImpl
|
||||
|
||||
Reference in New Issue
Block a user