Skip to content
Snippets Groups Projects
Commit 30313538 authored by bewe's avatar bewe
Browse files

fix: docker and format

parent e028824f
No related merge requests found
...@@ -11,12 +11,12 @@ services: ...@@ -11,12 +11,12 @@ services:
MYSQL_USER: toco MYSQL_USER: toco
MYSQL_PASSWORD: toco MYSQL_PASSWORD: toco
# toco-soap: toco-soap:
# build: build:
# dockerfile: Dockerfile dockerfile: Dockerfile
# context: . context: .
# ports: ports:
# - "8080:8080" - "8080:8080"
# depends_on: depends_on:
# - toco-soap-db - toco-soap-db
FROM mysql/mysql-server:8.0.23 FROM mysql/mysql-server:8.0.23
COPY db/tocosoap.sql /docker-entrypoint-initdb.d/ COPY db/tocosoap.sql /docker-entrypoint-initdb.d/
#FROM maven:3.8-openjdk-11-slim FROM maven:3.8-openjdk-11-slim
#
#WORKDIR /app WORKDIR /app
#
#COPY src ./src COPY src ./src
#COPY pom.xml . COPY pom.xml .
#COPY .env . COPY .env .
#COPY target ./target COPY target ./target
#
#RUN mvn clean package RUN mvn clean package
#
#CMD ["mvn", "exec:java"] CMD ["mvn", "exec:java"]
\ No newline at end of file \ No newline at end of file
...@@ -113,7 +113,7 @@ public class toco_service_impl implements toco_service { ...@@ -113,7 +113,7 @@ public class toco_service_impl implements toco_service {
transaction_model transactionModel = new transaction_model(); transaction_model transactionModel = new transaction_model();
voucher_entity voucherEntity = new voucher_entity(voucher,user_id,amount,"0"); voucher_entity voucherEntity = new voucher_entity(voucher,user_id,amount,"0");
voucherModel.insert(voucherEntity); voucherModel.insert(voucherEntity);
transactionModel.insert(new transaction_entity(user_id, amount, "voucher", "accepted", "0")); transactionModel.insert(new transaction_entity(user_id, amount, "Voucher Redeemed", "accepted", "0"));
if (userGemsModel.checkUser(user_id)) { if (userGemsModel.checkUser(user_id)) {
Integer currentGems = userGemsModel.getUserGems(user_id); Integer currentGems = userGemsModel.getUserGems(user_id);
userGemsModel.update(new userGems_Entity(user_id, currentGems + amount)); userGemsModel.update(new userGems_Entity(user_id, currentGems + amount));
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment