|
@@ -14,6 +14,7 @@ import com.caimei.modules.order.utils.SettlePostFormUtil;
|
|
import com.caimei.modules.sys.utils.UploadImageUtils;
|
|
import com.caimei.modules.sys.utils.UploadImageUtils;
|
|
import com.caimei.modules.user.dao.NewCmShopDao;
|
|
import com.caimei.modules.user.dao.NewCmShopDao;
|
|
import com.caimei.modules.user.entity.NewCmShop;
|
|
import com.caimei.modules.user.entity.NewCmShop;
|
|
|
|
+import com.caimei.redis.RedisService;
|
|
import com.caimei.utils.MathUtil;
|
|
import com.caimei.utils.MathUtil;
|
|
import com.caimei.utils.StringUtil;
|
|
import com.caimei.utils.StringUtil;
|
|
import com.opensymphony.module.sitemesh.html.CustomTag;
|
|
import com.opensymphony.module.sitemesh.html.CustomTag;
|
|
@@ -70,6 +71,8 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
private HeHeNewOrderDao heHeNewOrderDao;
|
|
private HeHeNewOrderDao heHeNewOrderDao;
|
|
@Resource
|
|
@Resource
|
|
private CmRefundShopDao cmRefundShopDao;
|
|
private CmRefundShopDao cmRefundShopDao;
|
|
|
|
+ @Resource
|
|
|
|
+ private RedisService redisService;
|
|
|
|
|
|
|
|
|
|
public List<CmPayShop> exports(Page<CmPayShop> cmPayShopPage, CmPayShop cmPayShop) {
|
|
public List<CmPayShop> exports(Page<CmPayShop> cmPayShopPage, CmPayShop cmPayShop) {
|
|
@@ -1222,6 +1225,7 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
String format = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss.SSS").format(new Date());
|
|
String format = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss.SSS").format(new Date());
|
|
String substring = format.substring(20);
|
|
String substring = format.substring(20);
|
|
String P3_customerNumber = newOrderDao.findSplitCode(shopOrderId);
|
|
String P3_customerNumber = newOrderDao.findSplitCode(shopOrderId);
|
|
|
|
+ redisService.set("SDJSS", 1, 120L);
|
|
settleOrder("JSCB" + shopOrderId + substring, settleAmount, P3_customerNumber, shopOrderId, 1);
|
|
settleOrder("JSCB" + shopOrderId + substring, settleAmount, P3_customerNumber, shopOrderId, 1);
|
|
// 结算佣金 佣金目前分到网络
|
|
// 结算佣金 佣金目前分到网络
|
|
Double payAmount = newOrderDao.findPayAmount(shopOrderId);
|
|
Double payAmount = newOrderDao.findPayAmount(shopOrderId);
|
|
@@ -1290,6 +1294,8 @@ public class CmPayShopService extends CrudService<CmPayShopDao, CmPayShop> {
|
|
// 修改cm_split_account settlestatus
|
|
// 修改cm_split_account settlestatus
|
|
newOrderDao.updateSettleStatus(shopOrderId, 3);
|
|
newOrderDao.updateSettleStatus(shopOrderId, 3);
|
|
}
|
|
}
|
|
|
|
+ //解锁
|
|
|
|
+ redisService.remove("SDJSS");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|