|
|
|
@ -7,9 +7,7 @@ import com.hfkj.common.exception.ErrorCode; |
|
|
|
|
import com.hfkj.common.exception.ErrorHelp; |
|
|
|
|
import com.hfkj.common.exception.SysCode; |
|
|
|
|
import com.hfkj.common.utils.DateUtil; |
|
|
|
|
import com.hfkj.common.utils.HttpsUtils; |
|
|
|
|
import com.hfkj.common.utils.IDGenerator; |
|
|
|
|
import com.hfkj.config.CommonSysConst; |
|
|
|
|
import com.hfkj.config.device.SoundService; |
|
|
|
|
import com.hfkj.dao.BsTradeOrderMapper; |
|
|
|
|
import com.hfkj.entity.*; |
|
|
|
@ -39,6 +37,9 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService { |
|
|
|
|
@Resource |
|
|
|
|
private BsSalesmanService salesmanService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private BsStoreCidService bsStoreCidService; |
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
private BsStoreService storeService; |
|
|
|
|
|
|
|
|
@ -276,6 +277,12 @@ public class BsTradeOrderServiceImpl implements BsTradeOrderService { |
|
|
|
|
tradeOrder.getCreateTime()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
JSONObject objectPush = new JSONObject(); |
|
|
|
|
|
|
|
|
|
objectPush.put("storeId" , tradeOrder.getStoreId()); |
|
|
|
|
objectPush.put("price" , tradeOrder.getTradeAmount()); |
|
|
|
|
bsStoreCidService.storePush(objectPush); |
|
|
|
|
|
|
|
|
|
// 创建分账
|
|
|
|
|
if (tradeOrder.getProfitSharingStatus().equals(true)) { |
|
|
|
|
tradeOrderProfitSharingService.createProfitSharing(tradeOrder); |
|
|
|
|