| | |
| | | |
| | | import com.nq.dao.MoneyLogMapper; |
| | | import com.nq.dao.StockConfigMapper; |
| | | import com.nq.enums.EConfigKey; |
| | | import com.nq.pojo.MoneyLog; |
| | | import com.nq.pojo.SiteSpread; |
| | | import com.nq.pojo.StockConfig; |
| | | import com.nq.pojo.User; |
| | | import com.nq.service.IMoneyLogServces; |
| | | import com.nq.service.ISiteSpreadService; |
| | | import com.nq.service.IUserService; |
| | | import com.nq.service.*; |
| | | |
| | | import com.nq.utils.PropertiesUtil; |
| | | |
| | |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | |
| | | 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.*; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | |
| | | |
| | | @Autowired |
| | | MoneyLogMapper moneyLogMapper; |
| | | |
| | | @Autowired |
| | | IStockConfigServices stockConfigServices; |
| | | |
| | | @Autowired |
| | | IStockBuySettingServices stockBuySettingServices; |
| | | |
| | | //注册 |
| | | @RequestMapping(value = {"reg.do"}, method = {RequestMethod.POST}) |
| | |
| | | @RequestMapping({"queryStockConfig.do"}) |
| | | @ResponseBody |
| | | public ServerResponse updateConfig(){ |
| | | StockConfig stockConfig = stockConfigMapper.selectOne(new LambdaQueryWrapper<StockConfig>().eq(StockConfig::getCKey, "buy_handling_charge")); |
| | | StockConfig stockConfig = stockConfigMapper.selectOne(new LambdaQueryWrapper<StockConfig>().eq(StockConfig::getCKey, EConfigKey.BUY_HANDLING_CHARGE.getCode())); |
| | | return ServerResponse.createBySuccess(stockConfig); |
| | | |
| | | } |
| | | |
| | | @RequestMapping({"queryStockConfigTwo.do"}) |
| | | @ResponseBody |
| | | public ServerResponse queryStockConfigTwo(){ |
| | | StockConfig stockConfig = stockConfigMapper.selectOne(new LambdaQueryWrapper<StockConfig>().eq(StockConfig::getCKey, EConfigKey.EXCHANGE_HANDLING_CHARGE.getCode())); |
| | | return ServerResponse.createBySuccess(stockConfig); |
| | | } |
| | | |
| | | @RequestMapping({"queryAllStockConfig.do"}) |
| | | @ResponseBody |
| | | public ServerResponse queryAllStockConfig(){ |
| | | return stockConfigServices.queryAll(null); |
| | | } |
| | | |
| | | @GetMapping({"queryStockBuySetting.do"}) |
| | | @ResponseBody |
| | | public ServerResponse queryStockBuySetting(HttpServletRequest request, String stockType) { |
| | | return stockBuySettingServices.queryStockBuySetting(stockType); |
| | | } |
| | | |
| | | |
| | | @RequestMapping({"moneylogAll.do"}) |
| | | @ResponseBody |
| | | public ServerResponse taskList(@RequestParam(value = "userId", required = false) String userId, |