数据统计 销售数量 视图数据
新增店铺 店铺名称 校验
This commit is contained in:
@@ -245,7 +245,7 @@ public class SummaryServiceImpl implements SummaryService {
|
|||||||
List<CountDateVO> numList = new ArrayList<>();
|
List<CountDateVO> numList = new ArrayList<>();
|
||||||
for (Object[] o : objects) {
|
for (Object[] o : objects) {
|
||||||
CountDateVO countDateVO = new CountDateVO();
|
CountDateVO countDateVO = new CountDateVO();
|
||||||
BigInteger integers = (BigInteger) o[1];
|
BigInteger integers = (BigInteger) o[0];
|
||||||
countDateVO.setCount(new BigDecimal(integers.toString()));
|
countDateVO.setCount(new BigDecimal(integers.toString()));
|
||||||
Date date = (Date) o[2];
|
Date date = (Date) o[2];
|
||||||
countDateVO.setTradeDay(date.toString());
|
countDateVO.setTradeDay(date.toString());
|
||||||
|
|||||||
@@ -127,6 +127,10 @@ public class TbShopInfoServiceImpl implements TbShopInfoService {
|
|||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public TbShopInfoDto create(TbShopInfoDto resources) {
|
public TbShopInfoDto create(TbShopInfoDto resources) {
|
||||||
|
if(StringUtils.isBlank(resources.getShopName())){
|
||||||
|
throw new BadRequestException("店铺名称不可为空");
|
||||||
|
}
|
||||||
|
resources.setShopName(resources.getShopName().trim());
|
||||||
if ("release".equals(resources.getProfiles())){
|
if ("release".equals(resources.getProfiles())){
|
||||||
if (resources.getRegisterCode() == null){
|
if (resources.getRegisterCode() == null){
|
||||||
throw new BadRequestException("未绑定激活码");
|
throw new BadRequestException("未绑定激活码");
|
||||||
|
|||||||
Reference in New Issue
Block a user