| | |
| | | import com.nq.pojo.User; |
| | | import com.nq.service.IMoneyLogServces; |
| | | import com.nq.service.ISiteSpreadService; |
| | | import com.nq.service.IStockConfigServices; |
| | | import com.nq.service.IUserService; |
| | | |
| | | import com.nq.utils.PropertiesUtil; |
| | |
| | | |
| | | @Autowired |
| | | MoneyLogMapper moneyLogMapper; |
| | | |
| | | @Autowired |
| | | IStockConfigServices stockConfigServices; |
| | | |
| | | //注册 |
| | | @RequestMapping(value = {"reg.do"}, method = {RequestMethod.POST}) |
| | |
| | | return ServerResponse.createBySuccess(stockConfig); |
| | | } |
| | | |
| | | @RequestMapping({"queryAllStockConfig.do"}) |
| | | @ResponseBody |
| | | public ServerResponse queryAllStockConfig(){ |
| | | return stockConfigServices.queryAll(null); |
| | | } |
| | | |
| | | |
| | | @RequestMapping({"moneylogAll.do"}) |
| | | @ResponseBody |
| | | public ServerResponse taskList(@RequestParam(value = "userId", required = false) String userId, |
| | |
| | | amtBig = userAssetsServices.exchangeAmountByRate(fromType, toType, amtBig); |
| | | userAssetsServices.availablebalanceChange(toType,user.getId(),EUserAssets.TRANSFER,amtBig.setScale(5,RoundingMode.HALF_DOWN),fromType+"/"+toType,""); |
| | | |
| | | return ServerResponse.createBySuccess(); |
| | | return ServerResponse.createBySuccess("操作成功", request); |
| | | } catch (Exception e) { |
| | | return ServerResponse.createByErrorMsg(e.getMessage()); |
| | | } |