fix:模糊查询,分页功能优化
This commit is contained in:
parent
28d34ce4fa
commit
d98daff25c
|
|
@ -102,6 +102,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="houseId != null and houseId != ''">
|
||||
AND mhs.house_id = #{houseId}
|
||||
</if>
|
||||
<if test="houseName != null and houseName != ''">
|
||||
AND (mt.type_name like concat('%', #{houseName}, '%') or
|
||||
mt1.type_name like concat('%', #{houseName}, '%') or
|
||||
mt2.type_name like concat('%', #{houseName}, '%'))
|
||||
</if>
|
||||
<if test="typeId != null and typeId != ''">
|
||||
AND mhs.type_id = #{typeId}
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -44,14 +44,16 @@ public class PurchaseCheckInfoController extends BaseController
|
|||
@ApiOperation("查询新购入库任务列表")
|
||||
@GetMapping("/putInList")
|
||||
public TableDataInfo putInList(PurchaseCheckInfo purchaseCheckInfo) {
|
||||
startPage();
|
||||
List<PurchaseCheckInfo> list = new ArrayList<>();
|
||||
//判断该组织是否开启综合服务中心审核
|
||||
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
|
||||
int re = purchaseCheckServiceCenterService.selectExamineType(companyId);
|
||||
if (re > 0) {
|
||||
//若依框架多个查询会导致分页失效,需分批处理
|
||||
startPage();
|
||||
list = purchaseCheckInfoService.selectPutInListExamine(purchaseCheckInfo);
|
||||
}else {
|
||||
startPage();
|
||||
list = purchaseCheckInfoService.selectPutInListList(purchaseCheckInfo);
|
||||
}
|
||||
return getDataTable(list);
|
||||
|
|
|
|||
|
|
@ -25,6 +25,18 @@ public class PlanManagementDto {
|
|||
@ApiModelProperty(value = "计划ID")
|
||||
private Integer planId;
|
||||
|
||||
/** 借调计划ID */
|
||||
@ApiModelProperty(value = "借调计划ID")
|
||||
private Long borrowId;
|
||||
|
||||
/** 需求单位ID */
|
||||
@ApiModelProperty(value = "需求单位ID")
|
||||
private Integer needUnitId;
|
||||
|
||||
/** 借出单位ID */
|
||||
@ApiModelProperty(value = "借出单位ID")
|
||||
private Integer borrowUnitId;
|
||||
|
||||
/** 备注 */
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
|
|
|||
|
|
@ -66,7 +66,8 @@
|
|||
WHERE
|
||||
1=1
|
||||
<if test="name != null and name != ''">
|
||||
and (bu.unit_name like concat('%', #{name}, '%') or
|
||||
and (bu.unit_id = #{name} or
|
||||
bu.unit_name like concat('%', #{name}, '%') or
|
||||
mt2.type_name like concat('%',#{name},'%') or
|
||||
mt.type_name like concat('%',#{name},'%'))
|
||||
</if>
|
||||
|
|
|
|||
|
|
@ -409,6 +409,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
pmi.fix_code fixCode,
|
||||
pcd.type_id typeId,
|
||||
pcd.task_id taskId,
|
||||
pcd.remark remark,
|
||||
mt.CODE specsCode,
|
||||
mt.unit_name unitName,
|
||||
mt1.CODE typeCode,
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
) b
|
||||
<where>
|
||||
<if test="deviceTypeId!=null and deviceTypeId!=''">
|
||||
INSTR(b.typeId2,#{deviceTypeId}) > 0
|
||||
b.typeId2 = #{deviceTypeId}
|
||||
</if>
|
||||
<if test="wxTime!=null and wxTime!=''">
|
||||
AND b.wxTime BETWEEN CONCAT(#{wxTime},' 00:00:00') AND CONCAT(#{wxTime},' 23:59:59')
|
||||
|
|
|
|||
Loading…
Reference in New Issue