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