Commit 356b9b51 by “zcwang”

add: mock数据

parent 9f384e00
Pipeline #43425 passed with stages
in 1 minute 34 seconds
...@@ -32,4 +32,10 @@ public class AppConfig { ...@@ -32,4 +32,10 @@ public class AppConfig {
@Value("${testEmail:A@163.com}") @Value("${testEmail:A@163.com}")
private String testEmail; private String testEmail;
@Value("${change.goods.principal.name:aaa}")
private String defaultName;
@Value("${change.goods.principal.email:grp.gyhtest1001@corp.netease.com}")
private String defaultEmail;
} }
\ No newline at end of file
...@@ -18,6 +18,7 @@ import org.springframework.util.Assert; ...@@ -18,6 +18,7 @@ import org.springframework.util.Assert;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.netease.mail.yanxuan.change.biz.config.AppConfig;
import com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory; import com.netease.mail.yanxuan.change.biz.meta.exception.ExceptionFactory;
import com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService; import com.netease.mail.yanxuan.change.biz.service.InteriorChangeConfigService;
import com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService; import com.netease.mail.yanxuan.change.biz.service.change.ChangeConfigService;
...@@ -70,10 +71,8 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -70,10 +71,8 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
@Autowired @Autowired
private FlowRpcSupplierSendService supplierSendService; private FlowRpcSupplierSendService supplierSendService;
@Value("${change.goods.principal.name}") @Autowired
private String defaultName; private AppConfig appConfig;
@Value("${change.goods.principal.email}")
private String defaultEmail;
/** /**
* 接口不完整,关于商品的查询已经完成 供应商查询不完整接口已对接 具体返回值接口测试未完成 * 接口不完整,关于商品的查询已经完成 供应商查询不完整接口已对接 具体返回值接口测试未完成
...@@ -246,8 +245,6 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -246,8 +245,6 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
@Override @Override
public Map<Long, ChangeGoodsPrincipalPO> queryGoodsPrincipalInfo(List<Long> itemIds){ public Map<Long, ChangeGoodsPrincipalPO> queryGoodsPrincipalInfo(List<Long> itemIds){
Map<Long, ChangeGoodsPrincipalPO> map = new HashMap<>(); Map<Long, ChangeGoodsPrincipalPO> map = new HashMap<>();
System.out.println(defaultName);
System.out.println(defaultEmail);
for (Long itemId : itemIds){ for (Long itemId : itemIds){
map.put(itemId,new ChangeGoodsPrincipalPO()); map.put(itemId,new ChangeGoodsPrincipalPO());
} }
...@@ -348,6 +345,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -348,6 +345,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
* @param goodsRpc * @param goodsRpc
*/ */
private void goodsRpc(Integer type,String uid,ChangeGoodsPrincipalPO goodsRpc){ private void goodsRpc(Integer type,String uid,ChangeGoodsPrincipalPO goodsRpc){
// todo:mock数据
String defaultName = appConfig.getDefaultName();
String defaultEmail = appConfig.getDefaultEmail();
if (uid == null){ if (uid == null){
switch (type){ switch (type){
case 1: case 1:
......
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