package com.yeejoin.amos.boot.module.jg.biz.edit.process.biz.useRegister;

import com.alibaba.fastjson.JSONObject;
import com.yeejoin.amos.boot.biz.common.utils.RedisUtils;
import com.yeejoin.amos.boot.module.jg.api.dto.FieldChangeMeta;
import com.yeejoin.amos.boot.module.jg.api.mapper.CommonMapper;
import com.yeejoin.amos.boot.module.jg.biz.edit.process.equip.CommonEquipDataProcessService;
import com.yeejoin.amos.boot.module.jg.biz.service.impl.IdxBizJgProjectContraptionServiceImpl;
import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationEqServiceImpl;
import com.yeejoin.amos.boot.module.jg.biz.service.impl.JgUseRegistrationServiceImpl;
import com.yeejoin.amos.boot.module.ymt.api.mapper.IdxBizJgRegisterInfoMapper;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Function;

@Service
@RequiredArgsConstructor
@Getter
@Slf4j
public class UseRegisterUpdateService {

    private final IdxBizJgRegisterInfoMapper idxBizJgRegisterInfoMapper;

    private final IdxBizJgProjectContraptionServiceImpl idxBizJgProjectContraptionService;

    private final RedisUtils redisUtils;

    private final JgUseRegistrationServiceImpl jgUseRegistrationService;

    private final Map<String, Function<JSONObject, Boolean>> bizHandlers = new ConcurrentHashMap<>();

    private final CommonEquipDataProcessService commonEquipDataProcessService;

    private final CommonMapper commonMapper;

    private final JgUseRegistrationEqServiceImpl useRegistrationEqService;

    public void updateBizInfo(Map<String, Object> changeData) {

    }

    public List<FieldChangeMeta> updCertDataIfBizFin(String applyNo, JSONObject data) {
        // 更新证信息
        return new ArrayList<>();
    }


}
