-
Notifications
You must be signed in to change notification settings - Fork 34
add_daily_stats #617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
add_daily_stats #617
Changes from all commits
Commits
Show all changes
464 commits
Select commit
Hold shift + click to select a range
6efa008
WhenAdminAddCountry.countryNameEnWithAllowedCharactersShouldBeAccepte…
php-coder 250593b
WhenAdminAddCountry.countryNameRuWithAllowedCharactersShouldBeAccepte…
php-coder a2ff973
Integration tests: remove checkServerResponseCode() check.
php-coder ee0466c
WhenAnonymousUserAddCategory: port to Robot Framework.
php-coder ea48eb2
category/creation/logic.robot: improve documentation for a keyword.
php-coder e4e5cc7
country/creation/logic.robot: improve documentation for a keyword.
php-coder 60fcd20
WhenAnonymousUserAddCountry: port to Robot Framework.
php-coder d5cb07d
WhenAnonymousUserOpenNotExistingCategoryPage: port to Robot Framework.
php-coder 0998ce6
WhenAnonymousUserOpenNotExistingCountryPage: port to Robot Framework.
php-coder 9a42deb
Add integration test for testing that it's impossible to create categ…
php-coder 29313e2
Add integration test for testing that it's impossible to create count…
php-coder 8c60d9c
MailServiceImpl.sendMail(): add comment.
php-coder c65ec7b
MailServiceImpl.sendMail(): add personal to the From header.
php-coder 63ced85
MailServiceImpl.sendMail(): enable e-mail addresses validation.
php-coder 33d0414
Add integration test for validation of unique category slug.
php-coder 32382c3
Add integration test for validation of unique country slug.
php-coder b1a077f
shouldCreateSeriesWithOnlyRequiredFieldsFilled: port to Robot Framework.
php-coder a59af7f
shouldCreateSeriesWithAllFieldsFilled: port to Robot Framework.
php-coder 7779c45
quantityShouldBeANumber: port to Robot Framework.
php-coder 960c183
quantityShouldBeNotLessThanLimit: port to Robot Framework.
php-coder a6fb0bd
quantityShouldNotBeGreaterThanLimit: port to Robot Framework.
php-coder 6333501
/series/add: skip links for adding category/country when keyboard nav…
php-coder 8478cf7
WhenAdminAddSeries.commentShouldNotBeTooLong: port to Robot Framework.
php-coder 688be9e
WhenAdminAddSeries.imageSizeMustBeGreaterThanZero: port to Robot Fram…
php-coder b4f5450
pom.xml: update Lombok to 1.16.14
php-coder a47daf6
pom.xml: update thymeleaf-extras-springsecurity4 to 3.0.2.RELEASE
php-coder 1c9ee5d
pom.xml: update thymeleaf and thymeleaf-spring4 to 3.0.3.RELEASE
php-coder 698a6a0
pom.xml(minify-maven-plugin): update to 1.7.6
php-coder 86529e7
pom.xml(maven-compiler-plugin): update to 3.6.1
php-coder cba41ce
WhenAnonymousUserAddSeries: port to Robot Framework.
php-coder a0e620b
WhenAnonymousUserOpenNotExistingSeriesPage: port to Robot Framework.
php-coder a069699
series/access.robot: update documentation.
php-coder 0392762
WhenAnyUserAtAnyPage(shouldHaveTitle): remove check.
php-coder 608d1b2
WhenAnyUserAtAnyPage(shouldHaveUserBar): remove check.
php-coder 9f766f4
WhenAnyUserAtAnyPage(shouldHaveContentArea): remove check.
php-coder f6ddad3
WhenAnyUserAtAnyPage(shouldHaveFooter): remove check.
php-coder 05b36b8
WhenAnyUserAtAnyPage(shouldHaveLogo): remove check.
php-coder 0f6c13e
WhenAnyUserAtAnyPage(mayHaveHeader): remove check.
php-coder d52d4f0
WhenAnyUserAtAnyPage(checkStandardStructure): remove empty method.
php-coder cc22ce9
Update the collections.updated_at/by fields when series added/removed.
Shkarin a16fa14
2016-09-28--add_creator_data_to_series_sales.xml: mark existing colle…
php-coder 9997739
2016-09-28--add_creator_data_to_series_sales.xml: reduce indentation.
php-coder dab5368
CollectionServiceImplTest: fix imports ordering.
php-coder 3cfb265
CollectionDao.markAsModified(): rename argument.
php-coder 9d5531d
JdbcCollectionDao.markAsModified(): split out userId and updatedBy.
php-coder 1decd01
CollectionService.createCollection(): add unit test for setting updat…
php-coder a909ab9
Daily report: include stat with updated collections.
php-coder b3526a6
CollectionServiceImplTest: use single quotes.
php-coder 4d18a5b
ValidationMessages: improve message a bit.
php-coder 84a54df
check-build-and-verify.sh: remove pom.log file.
php-coder 0befab8
pom.xml(maven-enforcer-plugin): move configuration out of the <execut…
php-coder 3bce6cd
check-build-and-verify.sh: run maven-enforcer-plugin.
php-coder b0457b6
check-build-and-verify.sh: suppress htmlunit log messages in the robo…
php-coder 4683e84
check-build-and-verify.sh: rewrite sed script on Perl.
php-coder 5590652
common.sh: remove forgotten part of code with sed -z.
php-coder 5e6aa24
logback-test.xml: don't output messages into the $TMPDIR/spring.log f…
php-coder 8ef3dcf
WhenAdminAddSeries.catalogNumbersShouldAcceptValidValues: port to Rob…
php-coder 3cdea61
WhenAdminAddSeries.catalogNumbersShouldRejectInvalidValues: port to R…
php-coder cacb7b1
series/creation/misc.robot: rename argument.
php-coder b83e3f7
WhenAdminAddSeries.catalogPricesShouldRejectInvalidValues: port to Ro…
php-coder 7138589
pom.xml: update slf4j to 1.7.24
php-coder d01284b
pom.xml: update Robot Framework to 3.0.2
php-coder 103c809
WhenAdminAddSeries.issueYearFieldShouldHaveOptionsForRangeFrom1840ToC…
php-coder 4250042
series/creation/validation.robot: wait until element will be visible.
php-coder 8c7fa02
series/creation/validation.robot: wait until element will be visible …
php-coder b2f6834
check-build-and-verify.sh: fail the build when any warnings is found.
php-coder 4dae865
check-build-and-verify.sh: fix order of the rflint options.
php-coder abfa838
check-build-and-verify.sh: adjust rflint rules to not fail a build.
php-coder 7ed25af
series/creation/logic.robot: remove debug statement.
php-coder f26a1da
FilesystemImagePersistenceStrategy.init(): improve warning message.
php-coder b10caee
FilesystemImagePersistenceStrategy.init(): don't check for writabilit…
php-coder 8fefe4d
FilesystemImagePersistenceStrategy: rename constructor argument.
php-coder 8a1142f
FilesystemImagePersistenceStrategy.createFile(): rename to generateFi…
php-coder 7f35c32
FilesystemImagePersistenceStrategy.generateFilePath(): allow to pass …
php-coder 46f522c
FilesystemImagePersistenceStrategy.get(): extract method.
php-coder b034e57
FilesystemImagePersistenceStrategy.init(): ignore PMD warning.
php-coder 3c9b878
series/creation/validation.robot: fix the test flake.
php-coder e1937d1
CatlogUtilsSpec.js: fix typo in test name.
php-coder d3cafe6
Run danger in Travis CI.
php-coder d45ae4e
Dangerfile: handle maven-checkstyle-plugin and maven-pmd-plugin reports.
php-coder 6bc56a4
Dangerfile: handle codenarc-maven-plugin report.
php-coder fc6c4d1
Dangerfile: handle findbugs-maven-plugin report.
php-coder 0a51d8e
Dangerfile: handle license-maven-plugin and sortpom-maven-plugin outp…
php-coder e2c04b8
Dangerfile: handle rflint output.
php-coder fb8f02e
Dangerfile: handle maven-enforcer-plugin output.
php-coder 5082bc4
Dangerfile: handle bootlint output.
php-coder 356a3fe
Dangerfile: handle maven-compiler-plugin:compile output.
php-coder 5ce9594
Dangerfile: handle robotframework-maven-plugin report.
php-coder a499d60
Dangerfile: handle maven-compiler-plugin:testCompile output.
php-coder 8a41baf
Dangerfile: handle gmaven-plugin:testCompile output.
php-coder 3330644
Dangerfile: handle maven-surefire-plugin reports.
php-coder e450f10
Dangerfile: handle html5validator output.
php-coder 6041ba4
Dangerfile: handle maven-failsafe-plugin report.
php-coder 4d3412c
Dangerfile: handle jasmine-maven-plugin report.
php-coder 9dc8299
/account/activate: add check for maximum password length.
246810ben ad943f1
pom.xml: update Spring Boot to 1.4.5.RELEASE
php-coder 34e9c8c
SessionLocaleResolverAwareFilter: simplify code a bit.
php-coder b0f7455
series/creation/validation.robot: fix test flake by waiting when all …
php-coder 1a35c5f
series/creation/validation.robot: fix test flake by waiting when all …
php-coder bc22ec7
Dangerfile: show message about success when all tests passed.
php-coder 82b36b7
Dangerfile: warn about too many commits.
php-coder 71b0cd5
Dangerfile: error about merge commits.
php-coder 2c980ce
Dangerfile: add check for branch naming.
php-coder 78e0e25
check-build-and-verify.sh: encode robot framework report and print to…
php-coder dbbff9e
CategoryServiceImplTest: merge 2 tests into one.
php-coder 51ab20a
CategoryServiceImplTest: merge 2 tests into one.
php-coder e8248bd
CategoryServiceImplTest: merge 2 tests into one.
php-coder 8b358b6
CategoryServiceImplTest: merge 2 tests into one.
php-coder afafe7e
CategoryServiceImplTest: merge 2 tests into one.
php-coder bbd4e7a
CountryServiceImplTest: merge 2 tests into one.
php-coder 21bcf80
CountryServiceImplTest: merge 2 tests into one.
php-coder 89f1395
CountryServiceImplTest: merge 2 tests into one.
php-coder af3b32f
CountryServiceImplTest: merge 2 tests into one.
php-coder bb15355
CountryServiceImplTest: merge 2 tests into one.
php-coder 3e6e69d
SeriesServiceImplTest: merge 2 tests into one.
php-coder 0788b51
SeriesServiceImplTest: merge 2 tests into one.
php-coder 88a35f6
SeriesServiceImplTest: fix typo in test name.
php-coder 2edbaae
SeriesServiceImplTest: merge 2 tests into one.
php-coder 031f507
Add basic docker image.
php-coder 8510710
.editorconfig: add settings for *.robot files.
php-coder e460e16
Explicitly set thread stack size to 256k.
php-coder 1746496
series/creation/validation.robot: open page before each test for cata…
php-coder 3a5c492
series/creation/validation.robot: open page before each test for cata…
php-coder 8b3680f
docker: massive changes.
php-coder d5fe76b
Dangerfile: improve message about branch naming.
php-coder 36ed024
Add integration test for maximum password length.
246810ben 524688d
Dangerfile: improve message about branch rebasing.
php-coder 4e0cf85
SeriesService.findFullInfoById(): add unit tests.
php-coder bdeaf5e
Revert "README.md: added badge for waffle.io service."
php-coder 4942f37
README.md: mention RobotFramework.
php-coder 07adf41
pom.xml: add link to hibernate-validator-annotation-processor docs.
php-coder a92b292
WhenAnonymousUserRegisterAccount.emailWithActivationKeyShouldBeSentAf…
246810ben ba525d1
SeriesServiceImplTest: fix or ignore CodeNarc warnings.
php-coder ed8db22
Fix generation of code coverage by JaCoCo.
php-coder ffeca2e
pom.xml(jacoco-maven-plugin): update to 0.7.9
php-coder 3c93877
SeriesServiceImpl.addImageToSeries(): add unit tests.
php-coder 2f410b3
Register error pages in a consistent way regardless of the use of an …
php-coder a898b1e
SeriesSalesService.add(): add unit tests.
php-coder e98927c
SeriesSalesServiceImpl.add(): add more checks for non-nullable fields.
php-coder 8bbf855
StampsCatalogService.add(): add unit tests.
php-coder b522a6b
StampsCatalogService.addToSeries(): add unit tests.
php-coder 0dcc870
pom.xml: update h2 to 1.4.194
php-coder 4e617ec
pom.xml: update slf4j to 1.7.25
php-coder 91afe67
pom.xml: update mysql-connector-java to 5.1.41
php-coder e1e6584
pom.xml: update Lombok to 1.16.16
php-coder 1a36ace
checkstyle-suppressions.xml: fix typo in comment.
php-coder 45fdef1
CronServiceImpl.purgeUsersActivations(): improve log message.
php-coder 15c701c
.travis.yml: use danger 4.3.1 to fix "Cannot find a merge base betwee…
php-coder b15a557
check-build-and-verify.sh: show result of running danger.
php-coder 8c62c69
.travis.yml: fix specifying version of danger.
php-coder 16d943a
RobotFramework: allow flaky tests to fail by marking them as non-crit…
php-coder da8e7aa
src/main/scripts: activate errexit, nounset and pipefail options.
php-coder 7c47f0e
src/main/scripts: use /bin/bash to fix "set: Illegal option -o pipefa…
php-coder 88a6b74
src/main/scripts: fix displaying of colors.
php-coder 638e36c
src/main/scripts/ci/common.sh(print_log): don't fail when file doesn'…
php-coder 17e9591
series/creation/validation.robot: mark "Catalog price should reject i…
php-coder 2dc708a
src/main/scripts/ci/deploy.sh: fix activation of errexit option.
php-coder 68876b8
src/main/scripts: fix activation of errexit option.
php-coder 1982baf
Dangerfile: don't fail on parsing html5validator warnings.
php-coder f2cef81
common.sh(print_status): fix color of error messages.
php-coder 13ddf4f
UsersActivationService.findOlderThan(): add unit tests.
Shagbark 8fa1611
check-build-and-verify.sh: ignore html5validator error about document…
php-coder 66a00f3
check-build-and-verify.sh: ignore another html5validator error about …
php-coder d18afe8
pom.xml: don't execute gmaven-plugin:compile goal that is always skip…
php-coder f3b1939
pom.xml: replace gmaven-plugin by gmavenplus-plugin.
php-coder 9ce1301
/category/add: deny "add" and "list" as category names
246810ben de1e337
Add integration test to ensure that "add" and "list" cannot be used a…
php-coder 4a70a78
category/creation/validation.robot: fix the test by making a state cl…
php-coder efdf828
ImageService.save(): rename local variable (image -> imageInfo).
php-coder b97cd2b
ImageService.save(): rename local variable (id -> imageId).
php-coder 0b97f53
FilesystemImagePersistenceStrategy.save(): improve logging message.
php-coder cda5ac3
travis: upload images into /tmp/uploads directory.
php-coder 5870b28
Dangerfile: improve danger message.
php-coder 25b0624
DatabaseImagePersistenceStrategy.save(): improve logging message.
php-coder 0b6c09e
DatabaseImagePersistenceStrategy: improve log messages.
php-coder 98353b9
pom.xml: update Spring Boot to 1.4.6.RELEASE
php-coder e87db5c
pom.xml: update thymeleaf and thymeleaf-spring4 to 3.0.5.RELEASE
php-coder 6dc01e3
pom.xml: update h2 to 1.4.195
php-coder 9e46f43
pom.xml: update hibernate-validator to 5.2.5.Final
php-coder edb8727
pom.xml: update CodeNarc to 0.27.0
php-coder 9d424ea
pom.xml: update Thymeleaf to 3.0.6.RELEASE
php-coder b7abb7a
ImageServiceImpl.save(): use English locale instead of US.
php-coder 98b727c
pom.xml(maven-pmd-plugin): update to 3.8
php-coder dcc36a6
UsersActivationServiceImpl: fix compilation.
php-coder 0c3d2d3
Add support for generating image previews.
php-coder cc51669
pmd: configure UnnecessaryLocalBeforeReturn rule to catch more cases.
php-coder 2475585
DatabaseImagePersistenceStrategyTest: merge 2 tests into one.
php-coder 81b0c50
DatabaseImagePersistenceStrategyTest: update test for save().
php-coder f1a23cb
DatabaseImagePersistenceStrategyTest: rename variable.
php-coder 205591d
DatabaseImagePersistenceStrategy.savePreview(): add unit test.
php-coder c818a6e
Simplify data source configuration.
php-coder d1997d2
Enable mail connection validation for the prod environment.
php-coder c851105
Set maximum sizes for HTTP headers and HTTP POSTs.
php-coder 061c69e
SeriesService.add(): log about success at the end of a method.
php-coder c7bbd5c
SeriesService.addImageToSeries(): improve log message.
php-coder 6ed4cc2
SeriesService.addImageToSeries(): reduce a risk of having an orphaned…
php-coder a30fcc3
SeriesService.add(): reduce a risk of having an orphaned file when ex…
php-coder a746ee9
SeriesServiceImplTest: remove 4 tests.
php-coder 4df182c
ImageServiceImplTest: remove useless test.
php-coder 15f4d3a
ImageService.save(): modify return value to return full info about im…
php-coder 6e44675
Fix errors from CodeNarc in unit tests.
php-coder 37a118e
SeriesService.addImageToSeries(): remove uploaded file when exception…
php-coder f25d927
SeriesService.add(): remove uploaded file when exception occurs.
php-coder 317b16c
SeriesServiceImplTest: fix test.
php-coder b03d88f
Dangerfile: filter out component versions from a robotframework report.
php-coder 4c8e628
Dangerfile: warn about absent link to an original issue.
php-coder 65837c7
Dangerfile: warn when Url.RESOURCES_VERSION constant wasn't updated.
php-coder f77d72b
CollectionService.isSeriesInCollection(): remove superfluous log mess…
php-coder 8cd8b53
Use non-minified JS scripts in prototype.
php-coder 6e5af2b
CollectionService.isSeriesInCollection(): fix error from PMD about us…
php-coder 1618d9a
/country/add: deny "add" and "list" as country names.
n583wxdh0j 6fc2b05
MvcConfig: extract method.
php-coder 49b20c3
series/add.js(initPage): add name to a function.
php-coder 1fdca8a
SeriesServiceImplTest: correct test name.
php-coder c508841
/site/index: paraphrase summary statistic to use shorter words.
php-coder 4b5c47b
application-travis.properties: make liquibase less verbose.
php-coder 5ddeea6
check-build-and-verify.sh: format commands for readability and copyin…
php-coder 0782989
common.sh(print_status): modify behavior of reporting about failures.
php-coder df2b6c1
check-build-and-verify.sh: rename variables to reflect their meaning.
php-coder 707e772
/series/1: add an image.
php-coder c27551f
ImageFileValidator: remove ignoring of CyclomaticComplexity check tha…
php-coder 188e711
Modify image related validators to skip validation when image wasn't …
php-coder 5e861a5
.travis.yml: don't do deploy on pull requests to the prod branch.
php-coder ee2019f
NEWS.txt: typos and grammar fixes.
php-coder 5fceddf
Revert ".travis.yml: don't do deploy on pull requests to the prod bra…
php-coder e3f6c66
Enable logging of all requests on prod.
php-coder d4aeba3
Revert "Enable logging of all requests on prod."
php-coder 8ef5bcb
FilesystemImagePersistenceStrategy: don't truncate and rewrite a file…
php-coder 6667f70
test-series-with-catalogs-numbers.sql: use a proper value for represe…
php-coder 0e49a86
Add Strict-Transport-Security header.
php-coder 5f6c8d5
.travis.yml: don't try to do deploy on pull requests to the prod branch.
php-coder 17b0a90
.travis.yml: fail build when code in before_script or script blocks f…
php-coder 548d5d4
.travis.yml: fix build by using the correct operator for logical OR.
php-coder fa02a93
WhenAnyUserAtAnyPageWithForm(shouldHaveForm): remove check.
php-coder 85cc772
Add missing XML namespace for Thymeleaf Togglz dialect.
php-coder 7c589fc
Revert ".travis.yml: clone repository with a depth of 1 commit."
php-coder eefce98
Revert ".travis.yml: fix specifying version of danger."
php-coder 7f9d99d
Revert ".travis.yml: use danger 4.3.1 to fix "Cannot find a merge bas…
php-coder 21f9d76
check-build-and-verify.sh: skip some checks when related files weren'…
php-coder 3425b70
check-build-and-verify.sh: simplify conditions for checking by danger.
php-coder 341c9e4
pom.xml: update Lombok to 1.16.18
php-coder 40ade24
pom.xml: update H2 to 1.4.196
php-coder 996466e
Dangerfile: don't warn about missing reports because now they're opti…
php-coder 256ed5d
Dangerfile: messages improvements.
php-coder 96734df
Rename package ru.mystamps.web.validation.jsr303 to ru.mystamps.web.s…
GiBg1aN 2032e4b
ExistingActivationKey: replace spaces by tab.
php-coder feffd4f
ActivateAccountForm: remove blank line.
php-coder 8637327
pom.xml: update Spring Boot to 1.4.7.RELEASE
php-coder a1a615c
fix_minor_bugs
bodom91 87ae25e
admin_daily_report fix minor remarks
bodom91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
49 changes: 49 additions & 0 deletions
49
src/main/java/ru/mystamps/web/controller/ReportController.java
This file contains hidden or 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,49 @@ | ||
/* | ||
* Copyright (C) 2009-2016 Slava Semushin <slava.semushin@gmail.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
package ru.mystamps.web.controller; | ||
|
||
import org.springframework.stereotype.Controller; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.ResponseBody; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
|
||
import ru.mystamps.web.Url; | ||
import ru.mystamps.web.service.CronService; | ||
import ru.mystamps.web.service.MailService; | ||
|
||
/** | ||
* @author Maxim Shestakov | ||
*/ | ||
@Controller | ||
@RequiredArgsConstructor | ||
public class ReportController { | ||
|
||
private final MailService mailService; | ||
private final CronService cronService; | ||
|
||
@GetMapping(path = Url.DAILY_STATISTICS, produces = "text/plain; charset=UTF-8") | ||
@ResponseBody | ||
public String showDailyReport() { | ||
return mailService.getTextOfDailyStatisticsMail( | ||
cronService.getDailyStatistics() | ||
); | ||
} | ||
|
||
} |
57 changes: 57 additions & 0 deletions
57
src/main/java/ru/mystamps/web/model/AddSeriesSalesForm.java
This file contains hidden or 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,57 @@ | ||
/* | ||
* Copyright (C) 2009-2017 Slava Semushin <slava.semushin@gmail.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
package ru.mystamps.web.model; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.Date; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import org.springframework.format.annotation.DateTimeFormat; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import ru.mystamps.web.dao.dto.Currency; | ||
import ru.mystamps.web.service.dto.AddSeriesSalesDto; | ||
|
||
@Getter | ||
@Setter | ||
public class AddSeriesSalesForm implements AddSeriesSalesDto { | ||
|
||
@DateTimeFormat(pattern = "dd.MM.yyyy") | ||
private Date date; | ||
|
||
@NotNull | ||
private Integer sellerId; | ||
|
||
private String url; | ||
|
||
@NotNull | ||
private BigDecimal price; | ||
|
||
@NotNull | ||
private Currency currency; | ||
|
||
private BigDecimal altPrice; | ||
|
||
private Currency altCurrency; | ||
|
||
private Integer buyerId; | ||
|
||
} |
This file contains hidden or 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,6 @@ | ||
/** | ||
* <a href="https://en.wikipedia.org/wiki/Data_transfer_object" target="_blank">DTO</a> | ||
* classes that are representing values from site forms and being used by | ||
* controllers as input values. | ||
*/ | ||
package ru.mystamps.web.model; |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ VALUES \ | |
( :name \ | ||
, :url \ | ||
) | ||
|
||
transaction_participants.find_all = \ | ||
SELECT id \ | ||
, name \ | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid white-space only changes where it's possible.