Просмотр исходного кода

09.02 wms입고상품관리 조회조건 추가

tsit05 4 лет назад
Родитель
Сommit
71a6fe033e

+ 10 - 0
src/main/java/com/style24/admin/biz/web/TsaGoodsController.java

@@ -3415,6 +3415,16 @@ public class TsaGoodsController extends TsaBaseController {
 		if (!StringUtils.isBlank(ifIncomelot.getCondition())) {
 			ifIncomelot.setConditionList(ifIncomelot.getCondition().replaceAll("\r", "").trim().split("\n"));
 		}
+		
+		// wms상품번호
+		if (!StringUtils.isBlank(ifIncomelot.getCondition2())) {
+			ifIncomelot.setConditionList2(ifIncomelot.getCondition2().replaceAll("\r", "").trim().split("\n"));
+		}
+		
+		// sku코드 
+		if (!StringUtils.isBlank(ifIncomelot.getCondition3())) {
+			ifIncomelot.setConditionList3(ifIncomelot.getCondition3().replaceAll("\r", "").trim().split("\n"));
+		}		
 
 		ifIncomelot.setPageable(new TscPageRequest(ifIncomelot.getPageNo() - 1, ifIncomelot.getPageSize()));
 		ifIncomelot.getPageable().setTotalCount(goodsService.getGoodsWmsIncomelotSkuListCount(ifIncomelot));

+ 5 - 0
src/main/java/com/style24/persistence/domain/IfIncomelot.java

@@ -42,9 +42,14 @@ public class IfIncomelot extends TscBaseDomain {
 	private String edDate;
 	
 	private String condition; 
+	private String condition2; 
+	private String condition3; 
+	
 	
 	@JsonFormat(with = JsonFormat.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)
 	private String[] conditionList;
+	private String[] conditionList2;
+	private String[] conditionList3;
 
 	// Pagination
 	private TscPageRequest pageable;

+ 33 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsaGoods.xml

@@ -5104,6 +5104,23 @@
 		        </foreach>
 		     )
 		     </if>
+		     
+		    <if test='conditionList2 != null and conditionList2.length>0'>
+		    AND (
+		        <foreach collection="conditionList2" item="item2" index="index" separator="or">
+		       Z.PRODUCTNO LIKE CONCAT(UPPER(#{item2}),'%')
+		        </foreach>
+		     )
+		     </if>
+		     
+		    <if test='conditionList3 != null and conditionList3.length>0'>
+		    AND (
+		        <foreach collection="conditionList3" item="item3" index="index" separator="or">
+		       Z.SKUCODE LIKE CONCAT(UPPER(#{item3}),'%')
+		        </foreach>
+		     )
+		     </if>
+		     		     
 	</select>
 
 	<!-- WMS입고단품목록 -->
@@ -5157,6 +5174,22 @@
 		              </foreach>
 		           )
 		           </if>
+		           
+				    <if test='conditionList2 != null and conditionList2.length>0'>
+				    AND (
+				        <foreach collection="conditionList2" item="item2" index="index" separator="or">
+				       Z.PRODUCTNO LIKE CONCAT(UPPER(#{item2}),'%')
+				        </foreach>
+				     )
+				     </if>
+				     
+				    <if test='conditionList3 != null and conditionList3.length>0'>
+				    AND (
+				        <foreach collection="conditionList3" item="item3" index="index" separator="or">
+				       Z.SKUCODE LIKE CONCAT(UPPER(#{item3}),'%')
+				        </foreach>
+				     )
+				     </if>		           
 		            ORDER BY LOTNO, DATEINCOME, SKUCODE
 		          ) Q
 		LIMIT #{pageable.limitStartRow} ,  #{pageable.pageSize}

+ 10 - 0
src/main/webapp/WEB-INF/views/goods/GoodsWmsIncomelotSkuForm.html

@@ -56,6 +56,16 @@
 						<th>입고일<em class="required" title="필수"></em></th>
 						<td id="sellTerms"></td>
 					</tr>
+					<tr>
+						<th>WMS상품번호</th>
+						<td >
+						<textarea class="textareaR2 w200" name="condition2" id="condition2"></textarea>
+						</td>
+						<th>SKU코드</th>
+						<td >
+						<textarea class="textareaR2 w100p" name="condition3" id="condition3"></textarea>
+						</td >
+					</tr>				
 				</table>
 				<ul class="panelBar">
 					<li class="center">