服务指令计划获取及存储,即时指令增加排序字段

This commit is contained in:
曹磊 2025-10-15 17:01:14 +08:00
parent 033e582560
commit ebbecdb2ba
2 changed files with 3 additions and 1 deletions

View File

@ -124,4 +124,6 @@ public class NuBizNuCustomerServerInstant implements Serializable {
/**是否是服务指令包 0否 1是*/
@ApiModelProperty(value = "是否是服务指令包")
private java.lang.String izPackage;
@ApiModelProperty(value = "排序")
private java.lang.Long sort;
}

View File

@ -158,6 +158,7 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl<NuBizNuCustome
QueryWrapper<NuBizNuCustomerServerInstant> instantQueryWrapper = new QueryWrapper<>();
instantQueryWrapper.eq(StringUtils.isNotEmpty(nuBizNuCustomerServer.getNuId()),"nu_id",nuBizNuCustomerServer.getNuId());
instantQueryWrapper.eq(StringUtils.isNotEmpty(nuBizNuCustomerServer.getCustomerId()),"customer_id",nuBizNuCustomerServer.getCustomerId());
instantQueryWrapper.orderByAsc("sort");
List<NuBizNuCustomerServerInstant> instantList = nuBizNuCustomerServerInstantService.list(instantQueryWrapper);
for(NuBizNuCustomerServerInstant pari : instantList){
if(pari.getImmediateFile()!=null){
@ -295,7 +296,6 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl<NuBizNuCustome
pari.setNuName(nuBizNuCustomerServer.getNuName());
pari.setCustomerId(customerId);
pari.setCustomerName(nuBizNuCustomerServer.getCustomerName());
}
nuBizNuCustomerServerInstantService.saveBatch(instantList);
}