Commit 8ad453eb by 朱瑞泽

代码调整

parent 12e9d9bd
......@@ -5,7 +5,7 @@ package com.gic.demo.project.api.utils;
*
* @author zhurz
*/
public class DemoStoreApiConstant {
public class DemoProjectApiConstant {
/**
* 服务异常
......
......@@ -4,7 +4,7 @@ import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.EntityUtil;
import com.gic.demo.project.api.dto.DemoStoreDTO;
import com.gic.demo.project.api.service.DemoStoreApiService;
import com.gic.demo.project.api.utils.DemoStoreApiConstant;
import com.gic.demo.project.api.utils.DemoProjectApiConstant;
import com.gic.demo.project.service.entity.TabGicDemoStore;
import com.gic.demo.project.service.inner.service.DemoStoreInnerService;
import org.apache.commons.lang3.RandomUtils;
......@@ -29,7 +29,7 @@ public class DemoStoreApiServiceImpl implements DemoStoreApiService {
@Override
public ServiceResponse<DemoStoreDTO> findDemoStoreById(String storeId) {
if (RandomUtils.nextInt(0, 10) > 5) {
return ServiceResponse.failure(DemoStoreApiConstant.ERROR, "服务异常");
return ServiceResponse.failure(DemoProjectApiConstant.ERROR, "服务异常");
}
TabGicDemoStore store = localService.findDemoStoreById(storeId);
return ServiceResponse.success(EntityUtil.changeEntityByOrika(DemoStoreDTO.class, store));
......
Markdown is supported
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