bug
This commit is contained in:
parent
412cd85ae7
commit
8f71e98681
|
|
@ -13,6 +13,7 @@ import com.bonus.sgzb.material.service.IScrapApplyDetailsService;
|
||||||
import com.bonus.sgzb.material.vo.ForecastWasteExcel;
|
import com.bonus.sgzb.material.vo.ForecastWasteExcel;
|
||||||
import com.bonus.sgzb.material.vo.ScrapApplyDetailsVO;
|
import com.bonus.sgzb.material.vo.ScrapApplyDetailsVO;
|
||||||
import com.bonus.sgzb.material.vo.ScrapAudit;
|
import com.bonus.sgzb.material.vo.ScrapAudit;
|
||||||
|
import com.github.pagehelper.PageHelper;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.BeanUtils;
|
import org.springframework.beans.BeanUtils;
|
||||||
|
|
@ -131,8 +132,7 @@ public class ScrapApplyDetailsController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@ApiOperation("查询预报废任务列表")
|
@ApiOperation("查询预报废任务列表")
|
||||||
@PostMapping("/getScrapApplyList")
|
@PostMapping("/getScrapApplyList")
|
||||||
public TableDataInfo getScrapApplyList(ScrapApplyDetails scrapApplyDetails) {
|
public TableDataInfo getScrapApplyList(@RequestBody ScrapApplyDetails scrapApplyDetails) {
|
||||||
startPage();
|
|
||||||
Map<String, Object> params = scrapApplyDetails.getParams();
|
Map<String, Object> params = scrapApplyDetails.getParams();
|
||||||
if (!params.isEmpty()) {
|
if (!params.isEmpty()) {
|
||||||
String beginTime = (String) params.get("beginTime");
|
String beginTime = (String) params.get("beginTime");
|
||||||
|
|
@ -141,6 +141,8 @@ public class ScrapApplyDetailsController extends BaseController {
|
||||||
params.put("endTime", endTime + " 23:59:59");
|
params.put("endTime", endTime + " 23:59:59");
|
||||||
scrapApplyDetails.setParams(params);
|
scrapApplyDetails.setParams(params);
|
||||||
}
|
}
|
||||||
|
//startPage();
|
||||||
|
PageHelper.startPage(scrapApplyDetails.getPageNum() == 0 ? 1 : scrapApplyDetails.getPageNum(), scrapApplyDetails.getPageSize());
|
||||||
List<ScrapApplyDetailsVO> list = scrapApplyDetailsService.getScrapApplyList(scrapApplyDetails);
|
List<ScrapApplyDetailsVO> list = scrapApplyDetailsService.getScrapApplyList(scrapApplyDetails);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,6 @@ public class ScrapApplyDetails extends BaseEntity
|
||||||
@ApiModelProperty(value = "数据状态")
|
@ApiModelProperty(value = "数据状态")
|
||||||
private Integer repairStatus;
|
private Integer repairStatus;
|
||||||
|
|
||||||
private String keywords;
|
|
||||||
private String keyword;
|
private String keyword;
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
|
||||||
|
|
@ -132,6 +131,23 @@ public class ScrapApplyDetails extends BaseEntity
|
||||||
@ApiModelProperty(value = "结束时间")
|
@ApiModelProperty(value = "结束时间")
|
||||||
private String endTime;
|
private String endTime;
|
||||||
|
|
||||||
|
/** 当前记录起始索引 */
|
||||||
|
private Integer pageNum;
|
||||||
|
|
||||||
|
/** 每页显示记录数 */
|
||||||
|
private Integer pageSize;
|
||||||
|
|
||||||
|
/** 导出选中列表 */
|
||||||
|
private List<Long> dataCondition;
|
||||||
|
|
||||||
|
public List<Long> getDataCondition() {
|
||||||
|
return dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDataCondition(List<Long> dataCondition) {
|
||||||
|
this.dataCondition = dataCondition;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public void setId(Long id)
|
public void setId(Long id)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -72,12 +72,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
sad.scrap_source IN ( '1', '2' )
|
sad.scrap_source IN ( '1', '2' )
|
||||||
AND tk.task_type = 57
|
AND tk.task_type = 57
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keyword != null and keyword != ''">
|
||||||
AND (locate(#{keywords}, tk.create_by) > 0
|
AND (locate(#{keyword}, tk.create_by) > 0
|
||||||
or locate(#{keywords}, tk.CODE) > 0
|
or locate(#{keyword}, tk.CODE) > 0
|
||||||
or locate(#{keywords}, bui.unit_name) > 0
|
or locate(#{keyword}, bui.unit_name) > 0
|
||||||
or locate(#{keywords}, bpl.lot_name) > 0
|
or locate(#{keyword}, bpl.lot_name) > 0
|
||||||
or locate(#{keywords}, tk1.CODE) > 0)
|
or locate(#{keyword}, tk1.CODE) > 0)
|
||||||
</if>
|
</if>
|
||||||
<if test="backUnit != null and backUnit != ''">
|
<if test="backUnit != null and backUnit != ''">
|
||||||
and bui.unit_id = #{backUnit}
|
and bui.unit_id = #{backUnit}
|
||||||
|
|
@ -464,12 +464,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WHERE
|
WHERE
|
||||||
sad.scrap_source IN ( '1', '2' )
|
sad.scrap_source IN ( '1', '2' )
|
||||||
AND tk.task_type IN ('20' , '21')
|
AND tk.task_type IN ('20' , '21')
|
||||||
<if test="keywords != null and keywords != ''">
|
<if test="keyword != null and keyword != ''">
|
||||||
AND (locate(#{keywords}, tk.create_by) > 0
|
AND (locate(#{keyword}, tk.create_by) > 0
|
||||||
or locate(#{keywords}, tk.CODE) > 0
|
or locate(#{keyword}, tk.CODE) > 0
|
||||||
or locate(#{keywords}, bui.unit_name) > 0
|
or locate(#{keyword}, bui.unit_name) > 0
|
||||||
or locate(#{keywords}, bpl.lot_name) > 0
|
or locate(#{keyword}, bpl.lot_name) > 0
|
||||||
or locate(#{keywords}, tk1.CODE) > 0)
|
or locate(#{keyword}, tk1.CODE) > 0)
|
||||||
</if>
|
</if>
|
||||||
<if test="backUnit != null and backUnit != ''">
|
<if test="backUnit != null and backUnit != ''">
|
||||||
and bui.unit_id = #{backUnit}
|
and bui.unit_id = #{backUnit}
|
||||||
|
|
@ -495,6 +495,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
||||||
and DATE(tk.create_time) between #{beginTime} and #{endTime}
|
and DATE(tk.create_time) between #{beginTime} and #{endTime}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="dataCondition != null and dataCondition.size()>0">
|
||||||
|
AND tk.task_id in
|
||||||
|
<foreach collection="dataCondition" item="taskId" index="index" open="(" separator="," close=")">
|
||||||
|
#{taskId}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
GROUP BY tk.CODE
|
GROUP BY tk.CODE
|
||||||
order by tk.create_time desc
|
order by tk.create_time desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue