Explorar el Código

二手商品列表

zhijiezhao hace 3 años
padre
commit
15c9e0dde6

+ 0 - 1
src/main/java/com/caimei/modules/product/web/ProductNewController.java

@@ -159,7 +159,6 @@ public class ProductNewController extends BaseController {
         }
         product.setInstrumentType(StringUtils.isNotEmpty(product.getInstrumentType()) ? product.getInstrumentType() : null);
         product.setSold(StringUtils.isNotEmpty(product.getSold()) ? product.getSold() : null);
-        product.setPayStatus(StringUtils.isNotEmpty(product.getPayStatus()) ? product.getPayStatus() : null);
         product.setBrandID(product.getBrandID() != null && product.getBrandID() != 0 ? product.getBrandID() : null);
         String searchProductCategory = product.getSearchProductCategory();
         if (StringUtils.isNotBlank(searchProductCategory)) {

+ 3 - 3
src/main/resources/mappings/modules/product/ProductNewMapper.xml

@@ -209,15 +209,15 @@
             <if test="sold != null and sold != ''">
                 AND cshd.sold=#{sold}
             </if>
-            <if test="payStatus != null and payStatus != ''">
-                AND cshd.payStatus=#{payStatus}
-            </if>
             <if test="source != null and source != ''">
                 AND cshd.source=#{source}
             </if>
             <if test="publishIdentity != null and publishIdentity !=''">
                 AND cshd.publishIdentity = #{publishIdentity}
             </if>
+            <if test="contactName !=null and contactName !=''">
+                AND (cshd.contactName LIKE concat('%',#{contactName},'%') or cshd.companyName LIKE concat('%',#{contactName},'%'))
+            </if>
             <if test="sqlMap !=null and sqlMap !=''">
                 ${sqlMap.dsf}
             </if>

+ 4 - 0
src/main/webapp/WEB-INF/views/modules/product-new/secondHand.jsp

@@ -98,6 +98,10 @@
                     <form:option value="2" label="机构身份"/>
                 </form:select>
             </div>
+            <div class="item">
+                <label>卖家:</label>
+                <form:input path="contactName" htmlEscape="false" maxlength="30" class="input-medium"/>
+            </div>
             <div class="item">
                 <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" style="margin-left:20px;"/>
             </div>