|
|
@ -631,7 +631,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
priceForToday = ObjectFormatUtil.sum(priceForToday,price_out); |
|
|
priceForToday = ObjectFormatUtil.sum(priceForToday, price_out); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
for (ApplicationOutRecordMin recordMin : applicationOutMinForCompleteForYesterday) { |
|
|
for (ApplicationOutRecordMin recordMin : applicationOutMinForCompleteForYesterday) { |
|
|
@ -658,7 +658,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
priceForYesterday = ObjectFormatUtil.sum(price_out,priceForYesterday); |
|
|
priceForYesterday = ObjectFormatUtil.sum(price_out, priceForYesterday); |
|
|
} |
|
|
} |
|
|
// 设置今天的额度
|
|
|
// 设置今天的额度
|
|
|
result.put("price", priceForToday); |
|
|
result.put("price", priceForToday); |
|
|
@ -2326,8 +2326,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
// 如果是通过仓库
|
|
|
// 如果是通过仓库
|
|
|
@ -2383,8 +2383,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -2794,7 +2794,11 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 用于标志该仓库是否为前置仓下的仓库
|
|
|
// 用于标志该仓库是否为前置仓下的仓库
|
|
|
boolean flagForHasOtherDepository = true; //默认是前置仓下的仓库
|
|
|
boolean flagForHasOtherDepository = true; //默认是前置仓下的仓库
|
|
|
// 获取当前出库是否为开放出库
|
|
|
// 获取当前出库是否为开放出库
|
|
|
|
|
|
String manager1 = record.getDepositoryManager(); |
|
|
int flagForOpenDepository = record.getFlagForOpenDepository(); |
|
|
int flagForOpenDepository = record.getFlagForOpenDepository(); |
|
|
|
|
|
if (manager1 != null) { |
|
|
|
|
|
flagForHasOtherDepository = false; |
|
|
|
|
|
} else { |
|
|
if (flagForOpenDepository != 1) { |
|
|
if (flagForOpenDepository != 1) { |
|
|
|
|
|
|
|
|
// 如果是开放仓库
|
|
|
// 如果是开放仓库
|
|
|
@ -2816,7 +2820,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
if (map.containsKey("departmentheadPass") && !flagForHasOtherDepository) { |
|
|
if (map.containsKey("departmentheadPass") && !flagForHasOtherDepository) { |
|
|
// 如果是第一位部门负责人审批且可进入该流程
|
|
|
// 如果是第一位部门负责人审批且可进入该流程
|
|
|
|
|
|
|
|
|
@ -3060,8 +3064,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
// 如果是通过仓库
|
|
|
// 如果是通过仓库
|
|
|
@ -3116,8 +3120,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -3490,8 +3494,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
// 如果是通过仓库
|
|
|
// 如果是通过仓库
|
|
|
@ -3546,8 +3550,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
JSONObject jsonObject = qyWxOperationService.sendNotificationToDepositoryManager(QyWxUid.toString(), applicationOutRecordMin.getId(), userAgent, userKey, token); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
String redisOutKey = "wms_notificationOut_" + applicationOutRecordMin.getId(); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
Map stringObjectMap = jsonObject.toJavaObject(Map.class); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey,stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).opsForHash().putAll(redisOutKey, stringObjectMap); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey,72,TimeUnit.HOURS); |
|
|
redisPool.getRedisTemplateByDb(14).expire(redisOutKey, 72, TimeUnit.HOURS); |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -5092,7 +5096,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
BigDecimal bg = new BigDecimal(price_out / 100); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
price_out = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); |
|
|
price = ObjectFormatUtil.sum(price,price_out); |
|
|
price = ObjectFormatUtil.sum(price, price_out); |
|
|
} |
|
|
} |
|
|
result.put("count", count); |
|
|
result.put("count", count); |
|
|
result.put("price", price); |
|
|
result.put("price", price); |
|
|
|