fixed comments and update static path in properties file
parent
6749f6eca2
commit
910363a52e
1
pom.xml
1
pom.xml
|
@ -361,6 +361,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
<build>
|
<build>
|
||||||
|
<finalName>ctp-service</finalName>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
|
|
@ -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_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_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_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;
|
private final float width;
|
||||||
|
|
|
@ -43,7 +43,7 @@ public class BarcodeService {
|
||||||
* generate barcodes here
|
* generate barcodes here
|
||||||
* */
|
* */
|
||||||
public void generateBarcodes(List<Long> ids, String artifactType) throws Exception {
|
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);
|
BarcodeStickerSize stickerSize = BarcodeStickerSize.getSize(size);
|
||||||
|
|
||||||
List<? extends InventoryArtifact> list = new ArrayList<>();
|
List<? extends InventoryArtifact> list = new ArrayList<>();
|
||||||
|
|
|
@ -14,11 +14,11 @@ spring:
|
||||||
enabled: true
|
enabled: true
|
||||||
cache:
|
cache:
|
||||||
period: 0
|
period: 0
|
||||||
static-locations: file:./src/main/resources/static/
|
static-locations: classpath:/static/
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
check-template-location: true
|
check-template-location: true
|
||||||
cache: false
|
cache: false
|
||||||
prefix: file:./src/main/resources/templates/
|
prefix: classpath:/templates/
|
||||||
uinddatasource:
|
uinddatasource:
|
||||||
jdbcUrl: jdbc:mysql://192.168.90.108:3306/uind_vms
|
jdbcUrl: jdbc:mysql://192.168.90.108:3306/uind_vms
|
||||||
username: utopia
|
username: utopia
|
||||||
|
|
Loading…
Reference in New Issue