2 коммитов

Автор SHA1 Сообщение Дата
  jason.lam a4613ab053 Merge branch 'master' of https://git.2fi-solutions.com/derek/FPSMS-backend 3 месяцев назад
  jason.lam 7b685a01df update type in production schedule 3 месяцев назад
4 измененных файлов: 8 добавлений и 1 удалений
  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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

@@ -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 Просмотреть файл

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

Загрузка…
Отмена
Сохранить