|
@@ -210,10 +210,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
*/
|
|
*/
|
|
public IPage<OpendProductWrapper> opendedProduct(OppendedProductVO oppendedProductVO) {
|
|
public IPage<OpendProductWrapper> opendedProduct(OppendedProductVO oppendedProductVO) {
|
|
Page page =new Page();
|
|
Page page =new Page();
|
|
- if(oppendedProductVO.getCurrent() !=0 && oppendedProductVO.getSize() != 0){
|
|
|
|
- page.setCurrent(oppendedProductVO.getCurrent());
|
|
|
|
- page.setSize(oppendedProductVO.getSize());
|
|
|
|
- }
|
|
|
|
|
|
+ BeanUtil.copyProperties(oppendedProductVO,page);
|
|
OpenedProductsIndex openedProductsIndex = new OpenedProductsIndex();
|
|
OpenedProductsIndex openedProductsIndex = new OpenedProductsIndex();
|
|
BeanUtil.copyProperties(oppendedProductVO, openedProductsIndex);
|
|
BeanUtil.copyProperties(oppendedProductVO, openedProductsIndex);
|
|
List<OpendProductWrapper> list = openedProductsFacade.getByProductId(page,openedProductsIndex).getRecords();
|
|
List<OpendProductWrapper> list = openedProductsFacade.getByProductId(page,openedProductsIndex).getRecords();
|
|
@@ -245,16 +242,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
*/
|
|
*/
|
|
public RespDTO<IPage<LantoneProductDTO>> index(LantoneProductSelectVO lantoneProductSelectVO) {
|
|
public RespDTO<IPage<LantoneProductDTO>> index(LantoneProductSelectVO lantoneProductSelectVO) {
|
|
Page page =new Page();
|
|
Page page =new Page();
|
|
- if(lantoneProductSelectVO.getSize()==0){
|
|
|
|
- page.setSize(10l);
|
|
|
|
- }else {
|
|
|
|
- page.setSize(lantoneProductSelectVO.getSize());
|
|
|
|
- }
|
|
|
|
- if(lantoneProductSelectVO.getCurrent()==0){
|
|
|
|
- page.setCurrent(1l);
|
|
|
|
- }else {
|
|
|
|
- page.setCurrent(lantoneProductSelectVO.getCurrent());
|
|
|
|
- }
|
|
|
|
|
|
+ BeanUtil.copyProperties(lantoneProductSelectVO,page);
|
|
IPage<LantoneProductDTO> res = this.selectProduct(page, lantoneProductSelectVO.getName());
|
|
IPage<LantoneProductDTO> res = this.selectProduct(page, lantoneProductSelectVO.getName());
|
|
return RespDTO.onSuc(res);
|
|
return RespDTO.onSuc(res);
|
|
}
|
|
}
|