1
zyy
2025-10-28 91f82652d3a19efa3da0be659aa8954bbde2c712
src/main/java/com/nq/controller/UserApiController.java
@@ -9,13 +9,12 @@
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;
@@ -46,13 +45,7 @@
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;
@@ -74,6 +67,12 @@
    @Autowired
    MoneyLogMapper moneyLogMapper;
    @Autowired
    IStockConfigServices stockConfigServices;
    @Autowired
    IStockBuySettingServices stockBuySettingServices;
    //注册
    @RequestMapping(value = {"reg.do"}, method = {RequestMethod.POST})
@@ -145,11 +144,30 @@
    @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,