weaver-hrm-salary/src/com/engine/salary/service/factory/TaxPaymentServiceFactory.java

34 lines
1.1 KiB
Java
Raw Normal View History

2023-07-20 09:58:27 +08:00
//package com.engine.salary.service.factory;
//
//import com.weaver.hrm.salary.exception.SalaryRunTimeException;
//import com.weaver.hrm.salary.service.TaxPaymentService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//import java.util.concurrent.ConcurrentHashMap;
//
///**
// * @author chengliming
// * @date 2022-12-08 19:05:16
// **/
//
//public class TaxPaymentServiceFactory {
// private final Map<Integer, TaxPaymentService> serviceMap = new ConcurrentHashMap<>();
//
2023-08-11 14:20:14 +08:00
//
2023-07-20 09:58:27 +08:00
// public TaxPaymentServiceFactory(Map<String, TaxPaymentService> map) {
// for (Map.Entry<String, TaxPaymentService> entry : map.entrySet()) {
// serviceMap.putIfAbsent(entry.getValue().getServiceType(), entry.getValue());
// }
// }
//
// public TaxPaymentService get(Integer type) {
// TaxPaymentService service = serviceMap.get(type);
// if (service == null) {
// throw new SalaryRunTimeException("TaxPaymentService is null");
// }
// return service;
// }
//}