package cn.hnthyy.thmz.service.impl.his.mz;

import cn.hnthyy.thmz.entity.his.mz.JcJyItemCharge;
import cn.hnthyy.thmz.enums.ReqTypeEnum;
import cn.hnthyy.thmz.mapper.his.mz.JcJyItemChargeMapper;
import cn.hnthyy.thmz.service.his.mz.JcJyItemChargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class JcJyItemChargeServiceImpl implements JcJyItemChargeService {
    @SuppressWarnings("all")
    @Autowired
    private JcJyItemChargeMapper jcJyItemChargeMapper;
    @Override
    public JcJyItemCharge queryJcItemChargeByCode(String code, String reqType) {
        return jcJyItemChargeMapper.selectJcItemChargeByCode(code,reqType, ReqTypeEnum.JIAN_CHA.code.equals(reqType)?"jc_item_charge":"jy_item_charge");
    }

    @Override
    public List<JcJyItemCharge> queryJcItemChargeByCodeList(List<String> codes, String reqType) {
        return jcJyItemChargeMapper.selectJcItemChargeByCodeList(codes,reqType, ReqTypeEnum.JIAN_CHA.code.equals(reqType)?"jc_item_charge":"jy_item_charge");
    }
}
