mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-06 04:04:03 +09:00
update Categorys and Products and add Prices
This commit is contained in:
56
src/main/java/com/no1/wms/price/PriceService.java
Normal file
56
src/main/java/com/no1/wms/price/PriceService.java
Normal file
@@ -0,0 +1,56 @@
|
||||
package com.no1.wms.price;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.no1.wms.category.CategoryDto;
|
||||
import com.no1.wms.product.ProductDto;
|
||||
|
||||
@Service
|
||||
public class PriceService {
|
||||
|
||||
@Autowired
|
||||
PriceMapper mapper;
|
||||
|
||||
public List<PriceDto> priceList(int p){
|
||||
|
||||
int start = 0;
|
||||
int count = 10;
|
||||
|
||||
Map m = new HashMap<String, Object>();
|
||||
m.put("start", start);
|
||||
m.put("count", count);
|
||||
|
||||
return mapper.priceList(m);
|
||||
}
|
||||
|
||||
//페이징 카운터
|
||||
public int count(int searchn, String search) {
|
||||
|
||||
Map<String,Object> m = new HashMap<String, Object>();
|
||||
m.put("searchn",searchn);
|
||||
m.put("search", search);
|
||||
return mapper.count(m);
|
||||
}
|
||||
|
||||
public List<PriceDto> priceList2(int searchn, String search, int start, int perPage){
|
||||
|
||||
Map<String, Object> m = new HashMap<String, Object>();
|
||||
m.put("searchn",searchn);
|
||||
m.put("search", search);
|
||||
m.put("start", start);
|
||||
m.put("perPage", perPage);
|
||||
|
||||
return mapper.priceList2(m);
|
||||
}
|
||||
|
||||
public int createProcess(PriceDto dto) {
|
||||
return mapper.createProcess(dto);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user