1 files modified
1 files added
| | |
| | | } |
| | | |
| | | Integer count = userHeadDetailsMapper.selectDetailsCount(userId); |
| | | // UserInfo userInfo = userMapper.selectByPrimaryKey(userId); |
| | | UserInfo userInfo = userMapper.selectByPrimaryKey(userId); |
| | | AccountInfo accountInfo = accountMapper.selectAccountInfoByUserId(userHeadRelate.getHeadUserId()); |
| | | |
| | | if (AccountInfo.IS_PROHIBIT_Y.equals(accountInfo.getIsProhibit())) { |
| | |
| | | sysMessage.setUserId(userHeadRelate.getHeadUserId()); |
| | | sysMessage.setMessageType("4"); |
| | | sysMessage.setMessageSubTypeName("返利消息"); |
| | | sysMessage.setMessage("收到用户:" + accountInfo.getAccountName().replaceAll("(\\w{3})\\w*(\\w{4})", "$1****$2") + "的订单返利, 积分:" + totalReturnScore +", 环保币:" + totalReturnCoin); |
| | | sysMessage.setMessage("收到用户:" + userInfo.getMobilePhone().replaceAll("(\\w{3})\\w*(\\w{4})", "$1****$2") + "的订单返利, 积分:" + totalReturnScore +", 环保币:" + totalReturnCoin); |
| | | sysMessage.setFlag("2"); |
| | | sysMessageMapper.insert(sysMessage); |
| | | } |
| New file |
| | |
| | | package com.xzx.order; |
| | | |
| | | import com.xzx.gc.GcOrderApplication; |
| | | import com.xzx.gc.order.service.DistribService; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.test.context.ActiveProfiles; |
| | | import org.springframework.test.context.junit4.SpringRunner; |
| | | |
| | | @RunWith(SpringRunner.class) |
| | | @SpringBootTest(classes = {GcOrderApplication.class}) |
| | | @ActiveProfiles(profiles = {"xc"}) |
| | | public class XcTest { |
| | | |
| | | |
| | | @Autowired |
| | | DistribService distribService; |
| | | |
| | | @Test |
| | | public void distribTest() { |
| | | distribService.distribRecord(740L, "YH1402174298026016768"); |
| | | } |
| | | } |