From dadacf7c1065876248bec86cf17c06ca4be1b97c Mon Sep 17 00:00:00 2001 From: yujian <yujian@123.com> Date: 星期二, 30 七月 2019 14:55:17 +0800 Subject: [PATCH] Merge branch 'div' of ssh://193.112.35.168:29418/fanli-server into div --- fanli/src/test/java/org/fanli/dynamic/Test_InviteMaterialService.java | 22 +++------------------- 1 files changed, 3 insertions(+), 19 deletions(-) diff --git a/fanli/src/test/java/org/fanli/dynamic/Test_InviteMaterialService.java b/fanli/src/test/java/org/fanli/dynamic/Test_InviteMaterialService.java index a74e166..f85aa39 100644 --- a/fanli/src/test/java/org/fanli/dynamic/Test_InviteMaterialService.java +++ b/fanli/src/test/java/org/fanli/dynamic/Test_InviteMaterialService.java @@ -3,7 +3,7 @@ import org.junit.Test; import com.yeshi.fanli.entity.dynamic.InviteMaterial; -import com.yeshi.fanli.service.inter.dynamic.InviteMaterialService; +import com.yeshi.fanli.service.inter.dynamic.DynamicInfoService; import com.yeshi.fanli.util.BeanUtil; public class Test_InviteMaterialService { @@ -11,25 +11,9 @@ @Test public void draw1() { try { - InviteMaterialService service = BeanUtil.getBean(InviteMaterialService.class); + DynamicInfoService service = BeanUtil.getBean(DynamicInfoService.class); -// String picture = "http://img.flqapp.com/resource/invite/everyday/1.jpg"; -// String text = "鏈夋椂鍊欙紝娲诲緱绱紝骞堕潪鐢熸椿杩囦簬鍒昏杽锛岃�屾槸澶鏄撹澶栫晫鐨勬皼鍥存墍鎰熸煋锛岃浠栦汉鐨勬儏缁墍宸﹀彸銆�"; - -// String picture = "http://img.flqapp.com/resource/invite/everyday/2.jpg"; -// String text = "鍒妸绐樺杩佹�掍簬鍒汉锛屽敮涓�鍙互鎶辨�ㄧ殑锛屽彧鏄笉澶熷姫鍔涚殑鑷繁銆�"; - -// String picture = "http://img.flqapp.com/resource/invite/everyday/3.jpg"; -// String text = "涓栦笂鐨勪簨锛屽彧瑕佽偗鐢ㄥ績鍘诲锛屾病鏈変竴浠舵槸澶櫄鐨勩�傝濮嬬粓淇濇寔鏁晱涔嬪績锛屽闃冲厜锛屽缇庯紝瀵圭棝妤氥��"; - - String picture = "http://img.flqapp.com/resource/invite/everyday/4.jpg"; - String text = "浜虹敓灏卞儚鏄竴涓┈灏斿彲澶摼锛屾湭鏉ュ彇鍐充簬褰撲笅姝e湪鍋氱殑浜嬶紝鑰屾棤鍏充簬杩囧幓鍋氬畬鐨勪簨銆�"; - - InviteMaterial material = new InviteMaterial(); - material.setState(0); - material.setText(text); - material.setPicture(picture); - service.insert(material); + service.insertShopInfo(); } catch (Exception e) { e.printStackTrace(); -- Gitblit v1.8.0