洪城义警-正式版后台
Administrator
2021-06-23 b3e1084ddebf92b2858706aca5ea7841942216fc
取证详情接口修改,新增接口修改
2 files modified
8 ■■■■ changed files
src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/feedback/controller/FeedbackController.java
@@ -346,7 +346,7 @@
        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) {
@@ -357,7 +357,7 @@
                    iWjService.insertfeed(wj);
                }
            }
            if (feedback.getTpaddress() != null &&  feedback.getTpaddress()!="") {
            if (feedback.getTpaddress().length()>0) {
                //图片
                String[] splittp = feedback.getTpaddress().split(",");//以逗号分割
                for (String string3 : splittp) {
src/main/java/org/springblade/modules/wj/mapper/WjMapper.xml
@@ -20,7 +20,7 @@
    <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">
@@ -49,7 +49,7 @@
    <!--获取资源  图片、视频-->
    <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>