|
|
@@ -142,6 +142,10 @@ public class CardCaseService {
|
|
|
cardCase.setSeriesId(collection.getSeriesId());
|
|
|
cardCase.setCollectionId(collection.getId());
|
|
|
cardCase.setCode(cardCaseInputDTO.getCode());
|
|
|
+ if (cardCase.getCode() == null) {
|
|
|
+ cardCase.setCode("");
|
|
|
+ }
|
|
|
+
|
|
|
cardCase.setCaseStatus(cardCaseInputDTO.getCaseStatus());
|
|
|
cardCase.setStartTime(cardCaseInputDTO.getStartTime());
|
|
|
cardCase.setBoxPrice(cardCaseInputDTO.getBoxPrice());
|
|
|
@@ -196,11 +200,7 @@ public class CardCaseService {
|
|
|
CardCaseInputDTO cardCaseInputDTO = new CardCaseInputDTO();
|
|
|
cardCaseInputDTO.setCaseStatus(cardCase.getCaseStatus());
|
|
|
cardCaseInputDTO.setBoxPrice(cardCase.getBoxPrice());
|
|
|
- if (StringUtils.isNotBlank(cardCaseInputDTO.getCode())) {
|
|
|
- cardCaseInputDTO.setCode(cardCase.getCode());
|
|
|
- } else {
|
|
|
- cardCaseInputDTO.setCode("");
|
|
|
- }
|
|
|
+ cardCaseInputDTO.setCode(cardCase.getCode());
|
|
|
cardCaseInputDTO.setId(cardCase.getId());
|
|
|
cardCaseInputDTO.setBoxesCount(cardCase.getBoxesCount());
|
|
|
cardCaseInputDTO.setCollectionId(cardCase.getCollectionId());
|