Commit 5af5f5ea by 李小惠

添加查询条件

parent 77a35a3c
...@@ -18,6 +18,8 @@ public class LogDetailDto implements Serializable { ...@@ -18,6 +18,8 @@ public class LogDetailDto implements Serializable {
*/ */
private String inventoryId; private String inventoryId;
private String bussinessType;
/** /**
* 出入库汇总ID * 出入库汇总ID
*/ */
......
...@@ -19,9 +19,7 @@ public class OrderMainReq extends BaseRequest { ...@@ -19,9 +19,7 @@ public class OrderMainReq extends BaseRequest {
@NotBlank(message = "业务类型不能为空",groups = {edit.class}) @NotBlank(message = "业务类型不能为空",groups = {edit.class})
private String orderType; private String orderType;
//实例流程id
private String processInstanceId;
private String processId; private String processId;
private String bussinessType; private String bussinessType;
......
...@@ -24,9 +24,11 @@ public class QueryReassignmentReq extends BaseRequest { ...@@ -24,9 +24,11 @@ public class QueryReassignmentReq extends BaseRequest {
private String agent; private String agent;
/** /**
* 工作流id * 工作流定义id
*/ */
private String processDefinitionId; private String processDefinitionId;
//实例id
private String processId;
private String orderCode; private String orderCode;
......
...@@ -32,6 +32,8 @@ public class UpdateReassignmentReq extends BaseRequest { ...@@ -32,6 +32,8 @@ public class UpdateReassignmentReq extends BaseRequest {
*/ */
private String processDefinitionId; private String processDefinitionId;
private String processId;
/** /**
* 业务类型 * 业务类型
*/ */
......
...@@ -472,7 +472,7 @@ public class BusFormServiceImpl extends ServiceImpl<BusFormMapper, BusForm> impl ...@@ -472,7 +472,7 @@ public class BusFormServiceImpl extends ServiceImpl<BusFormMapper, BusForm> impl
LambdaQueryWrapper<BusForm> eq = new LambdaQueryWrapper<BusForm>() LambdaQueryWrapper<BusForm> eq = new LambdaQueryWrapper<BusForm>()
//组织机构 //组织机构
.eq(ObjectUtil.isNotNull(req.getOrgId()) && !req.getBussinessType().equals("allocate"),BusForm::getOrgId,req.getOrgId()) .eq(ObjectUtil.isNotNull(req.getOrgId()) && !req.getBussinessType().equals("allocate"),BusForm::getOrgId,req.getOrgId())
.eq(ObjectUtil.isNotNull(req.getProcessId()),BusForm::getProcessId,req.getProcessId())
//装备名称模糊查询 //装备名称模糊查询
.like(ObjectUtil.isNotNull(req.getTypeName()),BusForm::getInvList,req.getTypeName()) .like(ObjectUtil.isNotNull(req.getTypeName()),BusForm::getInvList,req.getTypeName())
//单号 //单号
......
...@@ -1058,7 +1058,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain ...@@ -1058,7 +1058,7 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
if (req.getOrderType().equals("workOrder")){ if (req.getOrderType().equals("workOrder")){
OrderDto orderDto = new OrderDto(); OrderDto orderDto = new OrderDto();
OrderMain one = getOne(new LambdaQueryWrapper<OrderMain>() OrderMain one = getOne(new LambdaQueryWrapper<OrderMain>()
.eq(OrderMain::getProcessId, req.getProcessInstanceId())); .eq(OrderMain::getProcessId, req.getProcessId()));
if (ObjectUtil.isNull(one)){ if (ObjectUtil.isNull(one)){
return processOrderDto; return processOrderDto;
} }
...@@ -1075,19 +1075,19 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain ...@@ -1075,19 +1075,19 @@ public class OrderMainServiceImpl extends ServiceImpl<OrderMainMapper, OrderMain
} else if (req.getOrderType().equals("bussinessOrder")) { } else if (req.getOrderType().equals("bussinessOrder")) {
BusFormDto busFormDto = new BusFormDto(); BusFormDto busFormDto = new BusFormDto();
BusForm one = busFormService.getOne(new LambdaQueryWrapper<BusForm>() BusForm one = busFormService.getOne(new LambdaQueryWrapper<BusForm>()
.eq(BusForm::getProcessId, req.getProcessInstanceId())); .eq(BusForm::getProcessId, req.getProcessId()));
BeanPlusUtil.copyProperties(one,busFormDto); BeanPlusUtil.copyProperties(one,busFormDto);
processOrderDto.setBusFormDto(busFormDto); processOrderDto.setBusFormDto(busFormDto);
} else if (req.getOrderType().equals("stacktakeOrder")) { } else if (req.getOrderType().equals("stacktakeOrder")) {
StocktakeDto stocktakeDto = new StocktakeDto(); StocktakeDto stocktakeDto = new StocktakeDto();
Stocktake one = stocktakeService.getOne(new LambdaQueryWrapper<Stocktake>() Stocktake one = stocktakeService.getOne(new LambdaQueryWrapper<Stocktake>()
.eq(Stocktake::getProcessId, req.getProcessInstanceId())); .eq(Stocktake::getProcessId, req.getProcessId()));
BeanPlusUtil.copyProperties(one,stocktakeDto); BeanPlusUtil.copyProperties(one,stocktakeDto);
processOrderDto.setStocktakeDto(stocktakeDto); processOrderDto.setStocktakeDto(stocktakeDto);
} else if (req.getOrderType().equals("reassigment")) { } else if (req.getOrderType().equals("reassigment")) {
ReassignmentDto reassignmentDto = new ReassignmentDto(); ReassignmentDto reassignmentDto = new ReassignmentDto();
Reassignment one = reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>() Reassignment one = reassignmentService.getOne(new LambdaQueryWrapper<Reassignment>()
.eq(Reassignment::getProcessId, req.getProcessInstanceId())); .eq(Reassignment::getProcessId, req.getProcessId()));
BeanPlusUtil.copyProperties(one,reassignmentDto); BeanPlusUtil.copyProperties(one,reassignmentDto);
processOrderDto.setReassignmentDto(reassignmentDto); processOrderDto.setReassignmentDto(reassignmentDto);
} }
......
...@@ -1099,6 +1099,7 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman ...@@ -1099,6 +1099,7 @@ public class PolicemanServiceImpl extends ServiceImpl<PolicemanMapper, Policeman
LambdaQueryWrapper<Reassignment> eq = new LambdaQueryWrapper<Reassignment>() LambdaQueryWrapper<Reassignment> eq = new LambdaQueryWrapper<Reassignment>()
.eq(ObjectUtil.isNotNull(req.getOrgId()), Reassignment::getOrgId, req.getOrgId()) .eq(ObjectUtil.isNotNull(req.getOrgId()), Reassignment::getOrgId, req.getOrgId())
.eq(ObjectUtil.isNotNull(req.getReassignmentType()),Reassignment::getReassignmentType,req.getReassignmentType()) .eq(ObjectUtil.isNotNull(req.getReassignmentType()),Reassignment::getReassignmentType,req.getReassignmentType())
.eq(ObjectUtil.isNotNull(req.getProcessId()),Reassignment::getProcessId,req.getProcessId())
.eq(ObjectUtil.isNotNull(req.getExamineState()) && !req.getExamineState().trim().isEmpty(), Reassignment::getExamineState, req.getExamineState()) .eq(ObjectUtil.isNotNull(req.getExamineState()) && !req.getExamineState().trim().isEmpty(), Reassignment::getExamineState, req.getExamineState())
.like(ObjectUtil.isNotNull(req.getPoliceName()), Reassignment::getPoliceName, req.getPoliceName()) .like(ObjectUtil.isNotNull(req.getPoliceName()), Reassignment::getPoliceName, req.getPoliceName())
.like(ObjectUtil.isNotNull(req.getTypeName()),Reassignment::getInvList,req.getTypeName()) .like(ObjectUtil.isNotNull(req.getTypeName()),Reassignment::getInvList,req.getTypeName())
......
...@@ -72,6 +72,9 @@ ...@@ -72,6 +72,9 @@
<if test="null != req.bussinessType and '' != req.bussinessType "> <if test="null != req.bussinessType and '' != req.bussinessType ">
and bussiness_type = #{req.bussinessType} and bussiness_type = #{req.bussinessType}
</if> </if>
<if test="null != req.processId and '' != req.processId ">
and process_id=#{req.processId}
</if>
<if test="null != req.typeName and '' != req.typeName "> <if test="null != req.typeName and '' != req.typeName ">
and inv_list like concat('%',#{req.typeName},'%') and inv_list like concat('%',#{req.typeName},'%')
</if> </if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论