2 Commit

4 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. +2
    -1
      src/main/java/com/ffii/fpsms/modules/master/entity/ProductionSchedule.kt
  2. +1
    -0
      src/main/java/com/ffii/fpsms/modules/master/service/ProductionScheduleService.kt
  3. +1
    -0
      src/main/java/com/ffii/fpsms/modules/master/service/SchedulingService.kt
  4. +4
    -0
      src/main/resources/db/changelog/changes/20250529_01_jason_lam/01_update_production_schedule_with_type.sql

+ 2
- 1
src/main/java/com/ffii/fpsms/modules/master/entity/ProductionSchedule.kt Vedi File

@@ -16,5 +16,6 @@ open class ProductionSchedule : BaseEntity<Long>() {
@Column(name = "totalFGType")
open var totalFGType: Long = 0L


@Column(name = "type")
open var type: String = "manual"
}

+ 1
- 0
src/main/java/com/ffii/fpsms/modules/master/service/ProductionScheduleService.kt Vedi File

@@ -194,6 +194,7 @@ open class ProductionScheduleService(
tempObj.totalFGType = fgCount;
tempObj.totalEstProdCount = accProdCount;
tempObj.id = saveRoughScheduleToDatabase(tempObj);
tempObj.type = "rough"

for ((roughScheduleRecord, totalDifference) in sortedEntries) {
saveRoughScheduleLineToDatabase(tempObj.id ?: -1, roughScheduleRecord)


+ 1
- 0
src/main/java/com/ffii/fpsms/modules/master/service/SchedulingService.kt Vedi File

@@ -1,5 +1,6 @@
package com.ffii.fpsms.modules.master.service

//depreciated
import com.ffii.core.support.AbstractBaseEntityService
import com.ffii.core.support.JdbcDao
import com.ffii.fpsms.modules.master.entity.*


+ 4
- 0
src/main/resources/db/changelog/changes/20250529_01_jason_lam/01_update_production_schedule_with_type.sql Vedi File

@@ -0,0 +1,4 @@
--liquibase formatted sql
--changeset jason_lam:update production schedule with type

ALTER TABLE production_schedule ADD `type` VARCHAR(10) NOT NULL DEFAULT "manual" ;

Caricamento…
Annulla
Salva