|
@@ -960,9 +960,10 @@ public class OrderServiceImpl implements IOrderService {
|
|
|
.setTicketNo(RandomUtil.randomNumbers(10))
|
|
|
;
|
|
|
if(appOrderProInfoMapper.insert(appOrderProInfo) > 0){
|
|
|
- if(appOrderProInfo.getType() == 5 &&
|
|
|
- appSiteMapper.selectById(appCoursesMapper.selectById(appOrderProInfo.getProductId()).getAddressSiteId()).getType() == 0){
|
|
|
- for (AppDevice appDevice : appDeviceMapper.selectList(Wrappers.<AppDevice>lambdaQuery().eq(AppDevice::getOrgCode, appOrder.getOrgCode()))){
|
|
|
+ AppSite appSite = appSiteMapper.selectById(appCoursesMapper.selectById(appOrderProInfo.getProductId()).getAddressSiteId());
|
|
|
+ if(null != appSite && appOrderProInfo.getType() == 5 &&
|
|
|
+ appSite.getType() == 0){
|
|
|
+ for (AppDevice appDevice : appDeviceMapper.selectList(Wrappers.<AppDevice>lambdaQuery().eq(AppDevice::getSiteId, appSite.getId()))){
|
|
|
if(null != appDevice){
|
|
|
JsonObject addUserJson = JsonParser.parseString(addUser(new Date(),
|
|
|
appDevice.getDeviceSerial(),
|