|
|
@ -131,6 +131,9 @@ public class SorteggioPraticaUtil { |
|
|
|
IntPratica pratica = m.getValue(); |
|
|
|
IntPratica pratica = m.getValue(); |
|
|
|
long intPraticaId = pratica.getIntPraticaId(); |
|
|
|
long intPraticaId = pratica.getIntPraticaId(); |
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
DettPratica dettPratica = DettPraticaLocalServiceUtil.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
|
|
|
|
if (Validator.isNull(dettPratica)) { |
|
|
|
|
|
|
|
dettPratica =DettPraticaLocalServiceUtil.getLastEditableByIntPratica(intPraticaId); |
|
|
|
|
|
|
|
} |
|
|
|
_log.info("Pratica " + pratica.getNumeroProgetto() + " id " + pratica.getIntPraticaId() |
|
|
|
_log.info("Pratica " + pratica.getNumeroProgetto() + " id " + pratica.getIntPraticaId() |
|
|
|
+ " dettPratica " + (dettPratica == null ? 0 : dettPratica.getDettPraticaId())); |
|
|
|
+ " dettPratica " + (dettPratica == null ? 0 : dettPratica.getDettPraticaId())); |
|
|
|
ServiceContext serviceContext = new ServiceContext(); |
|
|
|
ServiceContext serviceContext = new ServiceContext(); |
|
|
|