package com.sifang.modules.partner.controller;


import com.sifang.modules.customer.Service.CustomerEntryService;
import com.sifang.modules.customer.dao.CrmCustomerYxConditionDao;
import com.sifang.modules.customer.dao.CustomerEntryDao;
import com.sifang.modules.customer.entity.CrmCustomerYxCondition;
import com.sifang.modules.customer.entity.CustomerEntry;
import com.sifang.modules.order.entity.CrmOrder;
import com.sifang.modules.partner.service.HuaRongApiService;
import com.sifang.modules.sunshine.SystemSetting.utils.StringUtil;
import com.sifang.modules.sys.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

@Controller
@RequestMapping(value = "${adminPath}/huarong")
public class HuaRongApiController {
    @Autowired
    CustomerEntryDao customerDao;
    @Autowired
    CrmCustomerYxConditionDao conditionDao;
    @Autowired
    HuaRongApiService service;
//    @ResponseBody
//    @RequestMapping(value = "commit")
//    public Object commit(HttpServletRequest request) {
//        CustomerEntry entry= customerDao.findCustomerEntryById("24031611463928");
//        CrmCustomerYxCondition condition= conditionDao.findCustomerYxCondition("340621199303258417","04");
//        return service.capitalPreAudit(entry,condition);
//    }


}
