mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 04:03:45 +09:00
#수정
stock/create.jsp stock/list.jsp stock/read.jsp stock/update.jsp WarehouseController.java WarehouseMapper.xml
This commit is contained in:
@@ -231,9 +231,10 @@ public class ExcelDownlodeUtils {
|
|||||||
//
|
//
|
||||||
for (int i = 0; i < listdto.size(); i++) {
|
for (int i = 0; i < listdto.size(); i++) {
|
||||||
row = sheet.createRow(rowNum++);
|
row = sheet.createRow(rowNum++);
|
||||||
Map<String, Object> dto = listdto.get(i);
|
Map<String, Object> dto = listdto.get(i); // 이 부분을 수정함
|
||||||
|
|
||||||
cell = row.createCell(0);
|
cell = row.createCell(0);
|
||||||
cell.setCellValue((String) dto.get("productName"));
|
cell.setCellValue((String) dto.get("productName")); // 키 값을 사용하여 값을 가져옴
|
||||||
cell = row.createCell(1);
|
cell = row.createCell(1);
|
||||||
cell.setCellValue((String) dto.get("cls_nm_4"));
|
cell.setCellValue((String) dto.get("cls_nm_4"));
|
||||||
cell = row.createCell(2);
|
cell = row.createCell(2);
|
||||||
|
|||||||
@@ -131,9 +131,9 @@
|
|||||||
|
|
||||||
<where>
|
<where>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="searchn == 0"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and w.name like concat('%',#{search},'%')</when>
|
<when test="searchn == 0"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and w.name like concat('%',#{search},'%')</when>
|
||||||
<when test="searchn == 1"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and address like concat('%',#{search},'%')</when>
|
<when test="searchn == 1"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and address like concat('%',#{search},'%')</when>
|
||||||
<when test="searchn == 2"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and capacity like concat('%',#{search},'%')</when>
|
<when test="searchn == 2"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and capacity like concat('%',#{search},'%')</when>
|
||||||
</choose>
|
</choose>
|
||||||
</where>
|
</where>
|
||||||
order by w.name desc limit #{start}, #{perPage}
|
order by w.name desc limit #{start}, #{perPage}
|
||||||
@@ -146,9 +146,9 @@
|
|||||||
|
|
||||||
<where>
|
<where>
|
||||||
<choose>
|
<choose>
|
||||||
<when test="searchn == 0"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and w.name like concat('%',#{search},'%')</when>
|
<when test="searchn == 0"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and w.name like concat('%',#{search},'%')</when>
|
||||||
<when test="searchn == 1"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and address like concat('%',#{search},'%')</when>
|
<when test="searchn == 1"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and address like concat('%',#{search},'%')</when>
|
||||||
<when test="searchn == 2"> (s.product_id is null or s.product_id <> #{product_id}) and w.activation = 1 and capacity like concat('%',#{search},'%')</when>
|
<when test="searchn == 2"> (s.product_id <> #{product_id} or s.product_id is null) and w.activation = 1 and capacity like concat('%',#{search},'%')</when>
|
||||||
</choose>
|
</choose>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
president_telephone,
|
president_telephone,
|
||||||
vendor_manager,
|
vendor_manager,
|
||||||
vendor_manager_telephone,
|
vendor_manager_telephone,
|
||||||
main_product,
|
main_products
|
||||||
|
|
||||||
from vendor;
|
from vendor;
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
<!-- insert -->
|
<!-- insert -->
|
||||||
<insert id="createWarehouse" parameterType="com.no1.wms.warehouse.WarehouseDto">
|
<insert id="createWarehouse" parameterType="com.no1.wms.warehouse.WarehouseDto">
|
||||||
insert into warehouse (id, name, capacity, current_capacity, manager_id, address, activation)
|
insert into warehouse (id, name, capacity, current_capacity, manager_id, address, activation)
|
||||||
values (UUID(), #{name}, #{capacity}, #{currentCapacity}, #{managerId}, #{address}, #{activation})
|
values (UUID(), #{name}, #{capacity}, 0, #{managerId}, #{address}, #{activation})
|
||||||
</insert>
|
</insert>
|
||||||
<!-- insert -->
|
<!-- insert -->
|
||||||
|
|
||||||
|
|||||||
@@ -135,9 +135,9 @@
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (quantity < shipment_quantity) {
|
if (shipment_quantity > quantity) {
|
||||||
alert("출고수가 재고량보다 많을 수 없습니다.");
|
alert("출고수가 재고량보다 많을 수 없습니다.");
|
||||||
$("#quantity").focus();
|
$("#shipment_quantity").focus();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -111,7 +111,7 @@
|
|||||||
type : 'post', // 타입 (get, post, put 등등)
|
type : 'post', // 타입 (get, post, put 등등)
|
||||||
url : '/stock/show_modal', // 요청할 서버url
|
url : '/stock/show_modal', // 요청할 서버url
|
||||||
dataType : 'html', // 데이터 타입 (html, xml, json, text 등등)
|
dataType : 'html', // 데이터 타입 (html, xml, json, text 등등)
|
||||||
data : product_id,data,
|
data : {"product_id" : product_id},data,
|
||||||
success : function(result) { // 결과 성공 콜백함수
|
success : function(result) { // 결과 성공 콜백함수
|
||||||
$("#search_modal_body").html(result);
|
$("#search_modal_body").html(result);
|
||||||
searchModalBootStrap.show();
|
searchModalBootStrap.show();
|
||||||
|
|||||||
@@ -82,7 +82,7 @@
|
|||||||
|
|
||||||
|
|
||||||
$("#submitBtn").on("click", function () {
|
$("#submitBtn").on("click", function () {
|
||||||
var managerId = $("#managerId").val();
|
var managerId = $("#manager_id").val();
|
||||||
var name = $("#name").val();
|
var name = $("#name").val();
|
||||||
var capacity = $("#capacity").val();
|
var capacity = $("#capacity").val();
|
||||||
var address = $("#address").val();
|
var address = $("#address").val();
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<input type="text" name="search" id="search" class="form-control"
|
<input type="text" name="search" id="search" class="form-control"
|
||||||
aria-label="Text input with dropdown button" placeholder="검색어를 입력하세요">
|
aria-label="Text input with dropdown button" placeholder="검색어를 입력하세요">
|
||||||
<input class="btn btn-info" type="submit" id="searchBtn" value="검색"/>
|
<button class="btn btn-info" type="button" id="searchBtn">검색</button>
|
||||||
|
|
||||||
<!-- 페이징작업용 -->
|
<!-- 페이징작업용 -->
|
||||||
<input type="hidden" id="searchn1" value="${searchn}">
|
<input type="hidden" id="searchn1" value="${searchn}">
|
||||||
|
|||||||
Reference in New Issue
Block a user