package com.leanwo.gateway.rest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.RestController; import com.leanwo.gateway.service.AccountManagementService; @RestController @RequestMapping("/api/AccountManagementResource") public class AccountManagementResource { @Autowired private AccountManagementService accountManagementService; /** * 重新加载账套数据并且重新加载数据源 * @author GuoZhiBo 20200616 * @return */ @RequestMapping(value = "/loadAccountManagement", method = RequestMethod.POST, produces = "application/json") @ResponseBody public boolean loadAccountManagement() { accountManagementService.loadAccountManagement(true); return true; } }