| | |
| | | |
| | | if (feedback.getStatus()==1){ |
| | | Wj wj = new Wj(); |
| | | if (feedback.getSpaddress() != null && feedback.getSpaddress()!="") { |
| | | if (feedback.getSpaddress().length()>0) { |
| | | //获取视频地址 |
| | | String[] splitsp = feedback.getSpaddress().split(",");//以逗号分割 |
| | | for (String string2 : splitsp) { |
| | |
| | | iWjService.insertfeed(wj); |
| | | } |
| | | } |
| | | if (feedback.getTpaddress() != null && feedback.getTpaddress()!="") { |
| | | if (feedback.getTpaddress().length()>0) { |
| | | //图片 |
| | | String[] splittp = feedback.getTpaddress().split(",");//以逗号分割 |
| | | for (String string3 : splittp) { |
| | |
| | | |
| | | |
| | | <insert id="insertfeed" useGeneratedKeys="true" keyProperty="id" parameterType="org.springblade.modules.wj.entity.Wj"> |
| | | INSERT INTO sys_wj (jid,address,sid) VALUES (#{jid},#{address},#{sid}) |
| | | INSERT INTO sys_wj (jid,address,sid,type) VALUES (#{jid},#{address},#{sid},#{type}) |
| | | </insert> |
| | | |
| | | <select id="selectInfo" resultMap="wjResultMap"> |
| | |
| | | <!--获取资源 图片、视频--> |
| | | <select id="selectResouces" resultType="java.lang.String"> |
| | | select address from sys_wj |
| | | where 1=1 |
| | | where sid = #{wj.sid} |
| | | <if test="wj.type!=null"> |
| | | and type = #{wj.type} |
| | | </if> |