| | |
| | | package com.yami.trading.admin.facade; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.yami.trading.bean.future.domain.ProfitLossConfig; |
| | | import com.yami.trading.bean.future.dto.ProfitLossConfigDTO; |
| | | import com.yami.trading.bean.future.query.ProfitLossConfigQuery; |
| | | import com.yami.trading.bean.model.Log; |
| | | import com.yami.trading.bean.model.User; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.service.future.ProfitLossConfigService; |
| | | import com.yami.trading.service.system.LogService; |
| | | import com.yami.trading.service.user.UserService; |
| | | import lombok.Getter; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | @Autowired |
| | | private LogService logService; |
| | | @Autowired |
| | | @Getter |
| | | private ProfitLossConfigService profitLossConfigService; |
| | | |
| | | public IPage<ProfitLossConfigDTO> listRecord(Page<ProfitLossConfig> page, ProfitLossConfigQuery query) { |
| | | return profitLossConfigService.listRecord(page, query); |
| | | } |
| | | |
| | | public ProfitLossConfig getById(String id) { |
| | | return profitLossConfigService.getById(id); |
| | | } |
| | | |
| | | public void save(ProfitLossConfig entity, String operaterUsername) { |
| | | ProfitLossConfig profitAndLossConfig = profitLossConfigService.findByPartyId(entity.getPartyId()); |
| | | // 如果存在则更新 |