Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -3,7 +3,7 @@ package it.integry.ems.migration.model;
|
||||
import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240322152820 extends BaseMigration implements MigrationModelInterface {
|
||||
public class Migration_20240322152821 extends BaseMigration implements MigrationModelInterface {
|
||||
|
||||
@Override
|
||||
public void up() throws Exception {
|
||||
@@ -0,0 +1,17 @@
|
||||
package it.integry.ems.migration.model;import it.integry.ems.migration._base.BaseMigration;
|
||||
import it.integry.ems.migration._base.MigrationModelInterface;
|
||||
|
||||
public class Migration_20240327144141 extends BaseMigration implements MigrationModelInterface{
|
||||
|
||||
@Override
|
||||
public void up()throws Exception {
|
||||
if(isHistoryDB())
|
||||
return;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void down()throws Exception{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -10,8 +10,9 @@ import it.integry.ems_model.annotation.Table;
|
||||
import it.integry.ems_model.base.EntityBase;
|
||||
import it.integry.ems_model.entity._enum.IBaseEnum;
|
||||
import org.kie.api.definition.type.PropertyReactive;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.Date;
|
||||
import it.integry.ems_model.annotation.FK;
|
||||
|
||||
@PropertyReactive
|
||||
@Table(MtbCols.ENTITY)
|
||||
@@ -24,7 +25,7 @@ public class MtbCols extends EntityBase {
|
||||
|
||||
@PK
|
||||
@SqlField(value = "data_collo", nullable = false)
|
||||
private Date dataCollo;
|
||||
private LocalDate dataCollo;
|
||||
|
||||
@PK
|
||||
@SqlField(value = "gestione", maxLength = 1, nullable = false)
|
||||
@@ -62,11 +63,11 @@ public class MtbCols extends EntityBase {
|
||||
super();
|
||||
}
|
||||
|
||||
public Date getDataCollo() {
|
||||
public LocalDate getDataCollo() {
|
||||
return dataCollo;
|
||||
}
|
||||
|
||||
public MtbCols setDataCollo(Date dataCollo) {
|
||||
public MtbCols setDataCollo(LocalDate dataCollo) {
|
||||
this.dataCollo = dataCollo;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -434,7 +434,7 @@ public class ActivityService {
|
||||
" FROM stb_activity " +
|
||||
" WHERE stb_activity.parent_activity_id = %s AND " +
|
||||
"stb_activity.user_name = %s AND " +
|
||||
"stb_activity.estimated_time = %s",
|
||||
"( stb_activity.estimated_time = %s OR (stb_activity.effective_date is null AND stb_activity.activity_result_id = 'DA FARE'))",
|
||||
stbActivity.getParentActivityId(),
|
||||
stbActivity.getUserName(),
|
||||
stbActivity.getEstimatedTime());
|
||||
@@ -609,7 +609,8 @@ public class ActivityService {
|
||||
.setActivityType(activityTypeId)
|
||||
.setFlagTipologia("A")
|
||||
.setActivityDescription(description)
|
||||
.setUserCreator(userCreator);
|
||||
.setUserCreator(userCreator)
|
||||
.setActivityResultId("DA FARE");
|
||||
|
||||
entityList.add(newStbActivity);
|
||||
|
||||
|
||||
@@ -319,9 +319,7 @@ public class MrpDailyMaterialReqService {
|
||||
|
||||
private String getElencoDepositi(MrpDailyMaterialInputDTO mrpDailyMaterialInputDTO, HashMap<String, String> setupSection) throws Exception {
|
||||
String whereCondDepo = "";
|
||||
if (mrpDailyMaterialInputDTO != null && mrpDailyMaterialInputDTO.getDepositi() != null && mrpDailyMaterialInputDTO.getDepositi().
|
||||
|
||||
size() > 0) {
|
||||
if (mrpDailyMaterialInputDTO != null && mrpDailyMaterialInputDTO.getDepositi() != null && mrpDailyMaterialInputDTO.getDepositi().size() > 0) {
|
||||
whereCondDepo = "mtb_depo.cod_mdep in ('" + StringUtils.join(mrpDailyMaterialInputDTO.getDepositi(), "','") + "')";
|
||||
} else {
|
||||
String listCodMdep = setupSection.get("LIST_COD_MDEP");
|
||||
|
||||
Reference in New Issue
Block a user