|
@@ -5,6 +5,8 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.fs.common.core.redis.RedisCache;
|
|
|
import com.fs.company.service.ICompanyService;
|
|
|
+import com.fs.company.vo.RedPacketMoneyVO;
|
|
|
+import com.fs.course.mapper.FsCourseRedPacketLogMapper;
|
|
|
import com.fs.course.service.IFsCourseWatchLogService;
|
|
|
import com.fs.erp.domain.ErpDeliverys;
|
|
|
import com.fs.erp.domain.ErpGoods;
|
|
@@ -121,6 +123,9 @@ public class StoreTask
|
|
|
@Autowired
|
|
|
private ConfigUtil configUtil;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private FsCourseRedPacketLogMapper fsCourseRedPacketLogMapper;
|
|
|
+
|
|
|
public void PushErp() throws ParseException {
|
|
|
List<Long> ids = fsStoreOrderMapper.selectFsStoreOrderNoCreateOms();
|
|
|
for (Long id : ids) {
|
|
@@ -130,6 +135,13 @@ public class StoreTask
|
|
|
|
|
|
}
|
|
|
|
|
|
+ public void redPacketSubMoney() throws Exception
|
|
|
+ {
|
|
|
+ List<RedPacketMoneyVO> redPacketMoneyVOS = fsCourseRedPacketLogMapper.selectFsCourseRedPacketLogByCompany();
|
|
|
+ for (RedPacketMoneyVO redPacketMoneyVO : redPacketMoneyVOS) {
|
|
|
+ companyService.subtractCompanyMoney(redPacketMoneyVO.getMoney(),redPacketMoneyVO.getCompanyId());
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
//每5分钟执行一次
|
|
|
public void deliveryOp()
|