Browse Source

未上传成片

suochencheng 7 years ago
parent
commit
5529bf5903
1 changed files with 12 additions and 2 deletions
  1. 12 2
      src/main/java/com/izouma/awesomeadmin/dao/OrderImageMapper.xml

+ 12 - 2
src/main/java/com/izouma/awesomeadmin/dao/OrderImageMapper.xml

@@ -317,7 +317,12 @@
                 and image_name = #{record.imageName}
                 and image_name = #{record.imageName}
             </if>
             </if>
             <if test="record.unFinished != null and !&quot;&quot;.equals(record.unFinished)">
             <if test="record.unFinished != null and !&quot;&quot;.equals(record.unFinished)">
-                and (finished_image is null or  finished_image = '')
+                <if test="'1'.toString()==record.unFinished">
+                    and (finished_image is null or  finished_image = '')
+                </if>
+                <if test="'0'.toString()==record.unFinished">
+                    and (finished_image is not null and  finished_image != '')
+                </if>
             </if>
             </if>
             <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
             <if test="record.searchKey != null and !&quot;&quot;.equals(record.searchKey)">
                 <trim prefix="and (" suffix=")" prefixOverrides="OR">
                 <trim prefix="and (" suffix=")" prefixOverrides="OR">
@@ -444,7 +449,12 @@
                 and image_name = #{imageName}
                 and image_name = #{imageName}
             </if>
             </if>
             <if test="unFinished != null and !&quot;&quot;.equals(unFinished)">
             <if test="unFinished != null and !&quot;&quot;.equals(unFinished)">
-                and (finished_image is null or  finished_image = '')
+                <if test="'1'.toString()==unFinished">
+                    and (finished_image is null or  finished_image = '')
+                </if>
+                <if test="'0'.toString()==unFinished">
+                    and (finished_image is not null and  finished_image != '')
+                </if>
             </if>
             </if>
             <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
             <if test="searchKey != null and !&quot;&quot;.equals(searchKey)">
                 <trim prefix="and (" suffix=")" prefixOverrides="OR">
                 <trim prefix="and (" suffix=")" prefixOverrides="OR">