fixed comments and update static path in properties file

barcode-print
usama.jameel 2025-01-16 09:55:33 +05:00
parent 6749f6eca2
commit 910363a52e
4 changed files with 6 additions and 4 deletions

View File

@ -361,6 +361,7 @@
</dependency>
</dependencies>
<build>
<finalName>ctp-service</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>

View File

@ -5,7 +5,8 @@ public enum BarcodeStickerSize {
SIZE_1_5_X_3( 3 * 72, 1.5f * 72, 10, 10, 6, 6, 50, 50, 125, 125, 14, 9, 7),
SIZE_2_X_3( 3 * 72, 2 * 72, 10, 10, 6, 6, 50, 50, 125, 125, 14, 9, 7),
SIZE_4_X_4( 4 * 72, 4 * 72, 8, 8, 8, 8, 200, 100, 250, 250, 14, 9, 7),
SIZE_1_75_X_3_5( 7f * 72, 4f * 72, 10, 10, 6, 6, 50, 50, 125, 125, 14, 9, 7);
SIZE_1_75_X_3_5( 3.5f * 72, 1.75f * 72, 10, 10, 6, 6, 50, 50, 125, 125, 14, 9, 7),
SIZE_4_X_7( 7f * 72, 4f * 72, 10, 10, 6, 6, 50, 50, 125, 125, 14, 9, 7);
private final float width;

View File

@ -43,7 +43,7 @@ public class BarcodeService {
* generate barcodes here
* */
public void generateBarcodes(List<Long> ids, String artifactType) throws Exception {
String size = BarcodeStickerSize.SIZE_1_75_X_3_5.name();
String size = BarcodeStickerSize.SIZE_4_X_7.name();
BarcodeStickerSize stickerSize = BarcodeStickerSize.getSize(size);
List<? extends InventoryArtifact> list = new ArrayList<>();

View File

@ -14,11 +14,11 @@ spring:
enabled: true
cache:
period: 0
static-locations: file:./src/main/resources/static/
static-locations: classpath:/static/
thymeleaf:
check-template-location: true
cache: false
prefix: file:./src/main/resources/templates/
prefix: classpath:/templates/
uinddatasource:
jdbcUrl: jdbc:mysql://192.168.90.108:3306/uind_vms
username: utopia