@@ -0,0 +1,23 @@ | |||||
package com.ffii.fpsms.modules.settings.entity | |||||
import com.ffii.core.entity.BaseEntity | |||||
import jakarta.persistence.Column | |||||
import jakarta.persistence.Entity | |||||
import jakarta.persistence.Table | |||||
import java.math.BigDecimal | |||||
@Table(name = "bom_weighting_score") | |||||
@Entity | |||||
open class BomWeightingScore: BaseEntity<Long>() { | |||||
@Column | |||||
open var name: String? = null | |||||
@Column | |||||
open var range: Int? = null | |||||
@Column | |||||
open var weighting: BigDecimal? = null | |||||
@Column | |||||
open var remarks: String? = null | |||||
} |
@@ -0,0 +1,6 @@ | |||||
package com.ffii.fpsms.modules.settings.entity | |||||
import com.ffii.core.support.AbstractRepository | |||||
interface BomWeightingScoreRepository: AbstractRepository<BomWeightingScore, Long> { | |||||
} |
@@ -19,7 +19,8 @@ enum class StockInLineStatus(val status: String) { | |||||
ThirdDetermine("determine3"), | ThirdDetermine("determine3"), | ||||
RECEIVING("receiving"), | RECEIVING("receiving"), | ||||
RECEIVED("received"), | RECEIVED("received"), | ||||
COMPLETE("completed"); | |||||
COMPLETE("completed"), | |||||
REJECT("rejected"); | |||||
} | } | ||||
data class SaveStockInRequest( | data class SaveStockInRequest( | ||||
val purchaseOrderId: Long? = null, | val purchaseOrderId: Long? = null, | ||||
@@ -0,0 +1,6 @@ | |||||
-- liquibase formatted sql | |||||
-- changeset derek:add_corresponding_weighting | |||||
ALTER TABLE `bom` | |||||
ADD COLUMN `isDarkWeighting` DECIMAL(14, 2) NOT NULL AFTER `isDark`, | |||||
ADD COLUMN `isFloatWeighting` DECIMAL(14, 2) NOT NULL AFTER `isFloat`, | |||||
ADD COLUMN `isDenseWeighting` DECIMAL(14, 2) NOT NULL AFTER `isDense`; |
@@ -0,0 +1,6 @@ | |||||
-- liquibase formatted sql | |||||
-- changeset derek:revert_add_corresponding_weighting | |||||
ALTER TABLE `bom` | |||||
DROP COLUMN `isDarkWeighting`, | |||||
DROP COLUMN `isFloatWeighting`, | |||||
DROP COLUMN `isDenseWeighting`; |
@@ -0,0 +1,15 @@ | |||||
-- liquibase formatted sql | |||||
-- changeset derek:add_weighting_score | |||||
CREATE TABLE `bom_weighting_score` ( | |||||
`id` INT NOT NULL AUTO_INCREMENT, | |||||
`version` INT NOT NULL DEFAULT '0', | |||||
`created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | |||||
`createdBy` VARCHAR(30) NULL, | |||||
`modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | |||||
`modifiedBy` VARCHAR(30) NULL, | |||||
`deleted` TINYINT(1) NOT NULL DEFAULT '0', | |||||
`name` VARCHAR(255) NOT NULL, | |||||
`range` INT(11) NOT NULL, | |||||
`weighting` DECIMAL(14, 2) NOT NULL, | |||||
PRIMARY KEY (id) | |||||
); |
@@ -0,0 +1,4 @@ | |||||
-- liquibase formatted sql | |||||
-- changeset derek:add_remarks | |||||
ALTER TABLE `bom_weighting_score` | |||||
ADD COLUMN `remarks` VARCHAR(255) NULL; |