rev:手持成品入库单据列表改分页
This commit is contained in:
@@ -85,10 +85,10 @@
|
|||||||
der.is_delete = '0'
|
der.is_delete = '0'
|
||||||
AND der.status = '10'
|
AND der.status = '10'
|
||||||
<if test="begin_time != null and begin_time != ''">
|
<if test="begin_time != null and begin_time != ''">
|
||||||
and der.create_time <= #{begin_time}
|
and der.plandeliver_date <= #{begin_time}
|
||||||
</if>
|
</if>
|
||||||
<if test="end_time != null and end_time != ''">
|
<if test="end_time != null and end_time != ''">
|
||||||
and der.create_time >= #{end_time}
|
and der.plandeliver_date >= #{end_time}
|
||||||
</if>
|
</if>
|
||||||
<if test="sale_code != null and sale_code != ''">
|
<if test="sale_code != null and sale_code != ''">
|
||||||
and der.sale_code LIKE '%${sale_code}%'
|
and der.sale_code LIKE '%${sale_code}%'
|
||||||
@@ -100,7 +100,6 @@
|
|||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="queryMap" resultType="java.util.Map">
|
<select id="queryMap" resultType="java.util.Map">
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ package org.nl.wms.storage_manage.pda.controller;
|
|||||||
|
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import io.swagger.annotations.ApiOperation;
|
|
||||||
import org.nl.common.anno.Log;
|
import org.nl.common.anno.Log;
|
||||||
|
import org.nl.common.domain.query.PageQuery;
|
||||||
import org.nl.wms.storage_manage.pda.service.PdaStCpInService;
|
import org.nl.wms.storage_manage.pda.service.PdaStCpInService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.HttpStatus;
|
import org.springframework.http.HttpStatus;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
package org.nl.wms.storage_manage.pda.service;
|
package org.nl.wms.storage_manage.pda.service;
|
||||||
|
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.nl.common.domain.query.PageQuery;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -33,8 +34,11 @@ public interface PdaStCpInService {
|
|||||||
/**
|
/**
|
||||||
* 查询入库点下拉框
|
* 查询入库点下拉框
|
||||||
* @param whereJson /
|
* @param whereJson /
|
||||||
|
* @param page
|
||||||
* @return JSONObject /
|
* @return JSONObject /
|
||||||
*/
|
*/
|
||||||
|
Object getMaterial(JSONObject whereJson, PageQuery page);
|
||||||
|
|
||||||
JSONObject getMaterial(JSONObject whereJson);
|
JSONObject getMaterial(JSONObject whereJson);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ import com.alibaba.fastjson.JSON;
|
|||||||
import com.alibaba.fastjson.JSONArray;
|
import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.github.pagehelper.Page;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
|
import org.nl.common.TableDataInfo;
|
||||||
|
import org.nl.common.domain.query.PageQuery;
|
||||||
import org.nl.modules.system.util.CodeUtil;
|
import org.nl.modules.system.util.CodeUtil;
|
||||||
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtBsrealstorattrService;
|
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtBsrealstorattrService;
|
||||||
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtStructattrService;
|
import org.nl.wms.masterdata_manage.storage.service.storage.IStIvtStructattrService;
|
||||||
@@ -102,10 +106,24 @@ public class PdaStCpInServiceImpl implements PdaStCpInService {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object getMaterial(JSONObject whereJson, PageQuery page) {
|
||||||
|
Page<Object> result = PageHelper.startPage(page.getPage()==null?1:page.getPage(), page.getSize()==null?30:page.getPage());
|
||||||
|
List<Map> list = iMpsSaleOrderService.getPdaMaterial(whereJson);
|
||||||
|
for (Map map : list) {
|
||||||
|
Object plandeliver_date = map.get("plandeliver_date");
|
||||||
|
if (plandeliver_date !=null){
|
||||||
|
map.put("plandeliver_date",plandeliver_date.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TableDataInfo build = TableDataInfo.build(list);
|
||||||
|
build.setTotalElements(result.getTotal());
|
||||||
|
return build;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONObject getMaterial(JSONObject whereJson) {
|
public JSONObject getMaterial(JSONObject whereJson) {
|
||||||
List<Map> list = iMpsSaleOrderService.getPdaMaterial(whereJson);
|
List<Map> list = iMpsSaleOrderService.getPdaMaterial(whereJson);
|
||||||
|
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
result.put("data", JSONArray.parseArray(JSON.toJSONString(list)));
|
result.put("data", JSONArray.parseArray(JSON.toJSONString(list)));
|
||||||
result.put("message", "查询成功");
|
result.put("message", "查询成功");
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ spring:
|
|||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: dev3
|
active: prod
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user