eliminati campi date nella stbactivity
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
Some checks failed
IntegryManagementSystem_Multi/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -456,7 +456,7 @@ public class SteUPService {
|
||||
String codJfas = entry.getCodJfas();
|
||||
String codCmac = entry.getCodCmac();
|
||||
String md5User = entry.getMd5User();
|
||||
Date dataCreation = UtilityLocalDate(entry.getDataCreation(), CommonConstants.DATETIME_FORMAT_YMD);
|
||||
LocalDate dataCreation = UtilityString.parseLocalDate(entry.getDataCreation());
|
||||
|
||||
|
||||
if (UtilityString.isNullOrEmpty(activityTypeId))
|
||||
@@ -494,8 +494,7 @@ public class SteUPService {
|
||||
.setUserModifier(userNameCreator)
|
||||
.setActivityTypeId(activityTypeIdIspezione)
|
||||
.setOraInsAct(now)
|
||||
.setEffectiveDate(dataCreation)
|
||||
.setEffectiveTime(dataCreation);
|
||||
.setEffectiveTime(dataCreation.atStartOfDay());
|
||||
flag_isNewIspezione = true;
|
||||
} else { // AGGIORNO ORA ULTIMA MODIFICA
|
||||
|
||||
@@ -522,8 +521,7 @@ public class SteUPService {
|
||||
.setUserCreator(userNameCreator)
|
||||
.setUserModifier(userNameCreator)
|
||||
.setActivityTypeId(activityTypeId)
|
||||
.setDataInsAct(UtilityLocalDate.localDateToDate(now))
|
||||
.setOraInsAct(UtilityLocalDate.localDateToDate(now));
|
||||
.setOraInsAct(now);
|
||||
|
||||
activityItem.setOperation(OperationType.INSERT);
|
||||
if (!UtilityString.isNullOrEmpty(codCmac)) {
|
||||
@@ -531,8 +529,7 @@ public class SteUPService {
|
||||
}
|
||||
activityItem.setPersonaRif(entry.getPersonaRif());
|
||||
activityItem.setPriorita(entry.getPriorita());
|
||||
activityItem.setEffectiveDate(dataCreation);
|
||||
activityItem.setEffectiveTime(dataCreation);
|
||||
activityItem.setEffectiveTime(dataCreation.atStartOfDay());
|
||||
|
||||
List<String> barcodes = entry.getBarcodes();
|
||||
|
||||
@@ -579,7 +576,7 @@ public class SteUPService {
|
||||
if (!entry.getColli().isEmpty()) {
|
||||
MtbColt mtbColt = new MtbColt();
|
||||
mtbColt.setOperation(OperationType.INSERT);
|
||||
mtbColt.setDataCollo(now);
|
||||
mtbColt.setDataCollo(now.toLocalDate());
|
||||
mtbColt.setSerCollo("/");
|
||||
mtbColt.setCodMdep(codMdep);
|
||||
mtbColt.setGestione("L");
|
||||
@@ -664,7 +661,7 @@ public class SteUPService {
|
||||
}
|
||||
|
||||
String activityTypeId = parentActivity.getActivityTypeId();
|
||||
Date dataCreation = parentActivity.getEffectiveTime();
|
||||
LocalDateTime dataCreation = parentActivity.getEffectiveTime();
|
||||
String codJfas = parentActivity.getCodJfas();
|
||||
String userNamePv = parentActivity.getUserName();
|
||||
|
||||
@@ -740,7 +737,7 @@ public class SteUPService {
|
||||
throw new Exception("Nessun tipo attività associato a " + activityTypeId + " per l'inserimento degli articoli.");
|
||||
}
|
||||
|
||||
Date now = new Date();
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
String codMart = this.getCodMartFromBarcode(barcode);
|
||||
StbActivity item = new StbActivity()
|
||||
.setActivityDescription(activityTypeArt)
|
||||
@@ -752,9 +749,7 @@ public class SteUPService {
|
||||
.setUserCreator(parentActivity.getUserCreator())
|
||||
.setUserModifier(parentActivity.getUserCreator())
|
||||
.setActivityTypeId(activityTypeArt)
|
||||
.setDataInsAct(now)
|
||||
.setOraInsAct(now)
|
||||
.setEffectiveDate(dataCreation)
|
||||
.setEffectiveTime(dataCreation)
|
||||
.setParentActivityId(activityId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user