Commit ee722425 by shiwenbo

Merge branch 'develop' of gitlab.beecode.cn:kunlun/xyst_dinas/xyst_dinas_backend into develop

parents 8574d8ee ce7f75b1
...@@ -98,20 +98,19 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService { ...@@ -98,20 +98,19 @@ public class PriceAdjustmentServiceImpl implements PriceAdjustmentService {
@Override @Override
public List<KObject> getNewsByRegionalCompanyIds(UUID currentRegionalCompanyId) { public List<KObject> getNewsByRegionalCompanyIds(UUID currentRegionalCompanyId) {
ArrayList<UUID> regionalCompanyIds = null; ArrayList<UUID> regionalCompanyIds = null;
List<UUID> ids = new ArrayList<>();
if (null != currentRegionalCompanyId) { if (null != currentRegionalCompanyId) {
regionalCompanyIds = new ArrayList<>(); regionalCompanyIds = new ArrayList<>();
regionalCompanyIds.add(currentRegionalCompanyId); regionalCompanyIds.add(currentRegionalCompanyId);
} List<KObject> kObjects = regionalCompanyPriceAuthorityService.listAllCheck(regionalCompanyIds);
List<KObject> kObjects = regionalCompanyPriceAuthorityService.listAllCheck(regionalCompanyIds); if (!CollectionUtils.isEmpty(kObjects)) {
List<UUID> ids = new ArrayList<>(); for (KObject kObject : kObjects) {
ids.add(kObject.get("canLookRegionalCompany").getUuid("id"));
if (!CollectionUtils.isEmpty(kObjects)) { }
for (KObject kObject : kObjects) {
ids.add(kObject.get("canLookRegionalCompany").getUuid("id"));
} }
}
if(null!=currentRegionalCompanyId){
ids.add(currentRegionalCompanyId); ids.add(currentRegionalCompanyId);
} }
return priceAdjustmentDao.getNewsByRegionalCompanyIds(ids); return priceAdjustmentDao.getNewsByRegionalCompanyIds(ids);
} }
......
...@@ -19,14 +19,14 @@ public class PriceAdjustmentStatusTask implements Task { ...@@ -19,14 +19,14 @@ public class PriceAdjustmentStatusTask implements Task {
@Override @Override
public void execute(TaskContext taskContext) { public void execute(TaskContext taskContext) {
logger.info("开始修改采砂许可证状态"); logger.info("开始修改砂石类型价格生效状态");
if(priceAdjustmentService ==null){ if(priceAdjustmentService ==null){
priceAdjustmentService = Amino.getApplicationContext().getBean(PriceAdjustmentService.class); priceAdjustmentService = Amino.getApplicationContext().getBean(PriceAdjustmentService.class);
} }
priceAdjustmentService.updatePriceAdjustmentStatus(); priceAdjustmentService.updatePriceAdjustmentStatus();
logger.info("修改采砂许可证状态结束"); logger.info("修改砂石类型价格生效结束");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment