|
|
@@ -16,6 +16,7 @@ import com.dk.common.response.ResponseResultUtil;
|
|
|
import com.dk.common.response.ResponseResultVO;
|
|
|
import com.dk.common.util.AESUtil;
|
|
|
import com.dk.common.util.HaipHttpUtils;
|
|
|
+import com.dk.common.util.StringUtils;
|
|
|
import com.dk.oauth.convert.CompanyConvert;
|
|
|
import com.dk.oauth.entity.*;
|
|
|
import com.dk.oauth.feign.service.OrgFeign;
|
|
|
@@ -49,10 +50,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
/**
|
|
|
* 公司实现类
|
|
|
@@ -370,6 +368,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
trade.setBuyGradeCode(companyVO.getGradeCode());
|
|
|
trade.setTradeStatus(Constant.TradeStatus.INEFFECTIVE.getName());
|
|
|
trade.setStaffName(userLogin.getUserPhone());
|
|
|
+ trade.setOrderAmount(companyVO.getTradeAmount());
|
|
|
tradeMapper.insert(trade);
|
|
|
}
|
|
|
|
|
|
@@ -628,7 +627,11 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
integralItem.setAccDate(LocalDateTime.now());
|
|
|
integralItem.setUserId(companyVO.getWxUserId());
|
|
|
integralItem.setStaffName(companyVO.getStaffNameFrom());
|
|
|
+ String uuid = UUID.randomUUID().toString();
|
|
|
+ integralItem.setItemId(uuid);
|
|
|
integralItemMapper.insert(integralItem);
|
|
|
+ //积分分享ID-使用积分的时候使用
|
|
|
+ trade.setIntegralShareId(uuid);
|
|
|
// 积分 总积分
|
|
|
Integral integral = new Integral();
|
|
|
integral.setCpId(companyVO.getCpId());
|
|
|
@@ -647,6 +650,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
trade.setStaffName(companyVO.getStaffNameFrom());
|
|
|
trade.setIntegral(companyVO.getIntegral() != null ? companyVO.getIntegral() : 0);
|
|
|
trade.setCouponUseId(companyVO.getCouponUseId());
|
|
|
+ trade.setOrderAmount(companyVO.getOrderAmount());
|
|
|
tradeMapper.insert(trade);
|
|
|
|
|
|
return ResponseResultUtil.success(trade);
|
|
|
@@ -705,7 +709,11 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
integralItem.setAccDate(LocalDateTime.now());
|
|
|
integralItem.setUserId(companyVO.getWxUserId());
|
|
|
integralItem.setStaffName(companyVO.getStaffNameFrom());
|
|
|
+ String uuid = UUID.randomUUID().toString();
|
|
|
+ integralItem.setItemId(uuid);
|
|
|
integralItemMapper.insert(integralItem);
|
|
|
+ //积分分享ID-使用积分的时候使用
|
|
|
+ trade.setIntegralShareId(uuid);
|
|
|
// 积分 总积分
|
|
|
Integral integral = new Integral();
|
|
|
integral.setCpId(companyVO.getCpId());
|
|
|
@@ -724,6 +732,7 @@ public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> impl
|
|
|
trade.setStaffName(companyVO.getStaffNameFrom());
|
|
|
trade.setIntegral(companyVO.getIntegral() != null ? companyVO.getIntegral() : 0);
|
|
|
trade.setCouponUseId(companyVO.getCouponUseId());
|
|
|
+ trade.setOrderAmount(companyVO.getOrderAmount());
|
|
|
tradeMapper.insert(trade);
|
|
|
return ResponseResultUtil.success(trade);
|
|
|
}
|