Parcourir la source

update type in production schedule

create_edit_user
jason.lam il y a 3 mois
Parent
révision
7b685a01df
4 fichiers modifiés avec 8 ajouts et 1 suppressions
  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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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" ;

Chargement…
Annuler
Enregistrer