generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature #4980/change min max amount and price (#964)
* Squash md, fix unit testing, min and max fields pull request description md Fix unit testing Change min and max bag and order with only two fields * Squash + deleted commented lines Deleted commented lines Squash md, fix unit testing, min and max fields pull request description md Fix unit testing Change min and max bag and order with only two fields * Deleted * Squash coments and deleted Comments Deleted * Squash changes Fix unit test after that SetTariffLimitsDto has been changed Fix some codes and changes dtos * Squash code Format code Squash changes Fix unit test after that SetTariffLimitsDto has been changed Fix some codes and changes dtos * Comments done * Squash format and comments Format Comments done * Fix conflicts * Added unit test * Deleted unused method * Deleted unused method * Added unit test * Squash commits Format code Added unit test Deleted unused method Deleted unused method Added unit test * Coverage * Squash Coverage Coverage * Squash Fix conflicts Fix conflicts * Squash Added unit test Squash Fix conflicts Fix conflicts * format * Squash Fix format * Fix * Format * Delete unnecessary mock * Delete unnecessary mock * Squash commits about fix and format Delete unnecessary mock Delete unnecessary mock Format Fix * Comments done --------- Co-authored-by: Jose Castellanos <[email protected]>
- Loading branch information
Showing
30 changed files
with
380 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...sources/db/changelog/logs/сh-add-column-min-max-delete-min-max-amount-and-price-again.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.4.xsd"> | ||
|
||
<changeSet id="Jose-10" author="José Castellanos"> | ||
<addColumn tableName="tariffs_info"> | ||
<column name="min" type="int8"/> | ||
<column name="max" type="int8"/> | ||
</addColumn> | ||
</changeSet> | ||
|
||
<changeSet id="Jose-11" author="José Castellanos"> | ||
<dropColumn tableName="tariffs_info"> | ||
<column name="min_amount_of_big_bags"/> | ||
<column name="max_amount_of_big_bags"/> | ||
<column name="min_price_of_order"/> | ||
<column name="max_price_of_order"/> | ||
</dropColumn> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
service-api/src/main/java/greencity/dto/location/GetCourierLocationDto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
service-api/src/main/java/greencity/dto/order/LimitsDto.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 7 additions & 6 deletions
13
service-api/src/main/java/greencity/dto/tariff/SetTariffLimitsDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
package greencity.dto.tariff; | ||
|
||
import greencity.enums.CourierLimit; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.NotNull; | ||
|
||
@Builder | ||
@Data | ||
public class SetTariffLimitsDto { | ||
@Min(0) | ||
private Long minAmountOfBigBags; | ||
@Min(0) | ||
private Long maxAmountOfBigBags; | ||
private Long min; | ||
|
||
@Min(0) | ||
private Long minPriceOfOrder; | ||
@Min(0) | ||
private Long maxPriceOfOrder; | ||
private Long max; | ||
|
||
@NotNull | ||
private CourierLimit courierLimit; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.