pad接口-仓库类指令工单查询:根据工单id查询工单及对应指令信息
This commit is contained in:
parent
f2d7d6208b
commit
8d9aac2e47
|
|
@ -1,8 +1,18 @@
|
|||
package com.nu.modules.pad.directiveorder.api;
|
||||
|
||||
import com.nu.entity.InvoicingDirectiveEntity;
|
||||
import com.nu.modules.invoicing.api.IInvoicingOrdersApi;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* 仓库类服务指令工单
|
||||
*/
|
||||
|
|
@ -10,5 +20,19 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
@RequestMapping("/api/pad/warehouse")
|
||||
public class WareHouseApi {
|
||||
|
||||
@Autowired
|
||||
private IInvoicingOrdersApi invoicingOrdersApi;
|
||||
|
||||
@ApiOperation(value = "仓库类服务指令工单-查询工单信息", notes = "仓库类服务指令工单-查询工单信息")
|
||||
@GetMapping(value = "/queryCareList")
|
||||
public Result<InvoicingDirectiveEntity> queryCareList(InvoicingDirectiveEntity dto,
|
||||
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
if(StringUtils.isBlank(dto.getId())){
|
||||
return Result.error("参数错误");
|
||||
}
|
||||
return Result.OK(invoicingOrdersApi.selectInfoById(dto.getId()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
package com.nu.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: 护理单元客户配置后勤类服务指令
|
||||
|
|
@ -87,19 +85,113 @@ public class InvoicingDirectiveEntity implements Serializable {
|
|||
/**创建人*/
|
||||
private String createBy;
|
||||
/**创建日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date createTime;
|
||||
/**更新人*/
|
||||
private String updateBy;
|
||||
/**更新日期*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date updateTime;
|
||||
/**所属部门*/
|
||||
private String sysOrgCode;
|
||||
/**是否是服务指令包 N否 Y是*/
|
||||
private String izPackage;
|
||||
/**执行类型 1单人 2协助 3转单*/
|
||||
private String optType;
|
||||
|
||||
/**单号*/
|
||||
private String orderNo;
|
||||
/**数据池子表ID*/
|
||||
private String poolId;
|
||||
/**业务主表id,或者主表单号*/
|
||||
private String bizId;
|
||||
/**业务类型*/
|
||||
private String bizType;
|
||||
/**员工ID*/
|
||||
private String employeeId;
|
||||
/**员工姓名*/
|
||||
private String employeeName;
|
||||
/**收费价格*/
|
||||
private BigDecimal tollPrice;
|
||||
/**提成价格*/
|
||||
private BigDecimal comPrice;
|
||||
/**实际提成价格*/
|
||||
private BigDecimal realComPrice;
|
||||
/**实际开始时间*/
|
||||
private Date beginTime;
|
||||
/**开始员工*/
|
||||
private String beginEmp;
|
||||
/**实际结束时间*/
|
||||
private Date finishTime;
|
||||
/**结束员工*/
|
||||
private String finishEmp;
|
||||
/**是否开始 Y是 N否*/
|
||||
private String izStart;
|
||||
/**是否完成 Y是 N否*/
|
||||
private String izFinish;
|
||||
/**是否回退 Y是 N否*/
|
||||
private String izRollback;
|
||||
/**创建人*/
|
||||
private String createEmp;
|
||||
/**更新人*/
|
||||
private String updateEmp;
|
||||
/**是否删除 0未删除 1删除*/
|
||||
private String delFlag;
|
||||
/**删除日期*/
|
||||
private Date delTime;
|
||||
/**删除人*/
|
||||
private String delEmp;
|
||||
/**发起人ID*/
|
||||
private String initiatorId;
|
||||
/**发起人姓名*/
|
||||
private String initiatorName;
|
||||
/**备注*/
|
||||
private String remarks;
|
||||
/**PAD路径*/
|
||||
private String padPath;
|
||||
|
||||
/**接单上限*/
|
||||
private Integer orderCap;
|
||||
|
||||
/**最大时间*/
|
||||
private Date maxTime;
|
||||
|
||||
/**单次*/
|
||||
private Integer orderNum;
|
||||
|
||||
/**总服务时长*/
|
||||
private Integer totalDuration;
|
||||
|
||||
/**总服务收益*/
|
||||
private BigDecimal totalComPrice;
|
||||
|
||||
/**是否空闲 1空闲 0非空闲*/
|
||||
private Integer izFree;
|
||||
|
||||
/**员工身上挂载的工单数,未完成工单即为挂单*/
|
||||
private Integer ownCn;
|
||||
|
||||
/**员工id集合逗号分隔*/
|
||||
private String employeeIds;
|
||||
|
||||
/**服务指令id集合逗号分隔*/
|
||||
private String directiveIds;
|
||||
|
||||
/**优先级 数值越高优先级越高*/
|
||||
//空闲状态提高3级 指定护理员提高2级
|
||||
private Integer level;
|
||||
|
||||
/**流程主表ID*/
|
||||
private String flowMainId;
|
||||
/**流程ID*/
|
||||
private String flowId;
|
||||
/**流程名称*/
|
||||
private String flowName;
|
||||
/**下一流程节点ID*/
|
||||
private String subId;
|
||||
/**流程编码*/
|
||||
private String flowCode;
|
||||
/**是否启用 Y启用 N未启用*/
|
||||
private String izEnabled;
|
||||
/** 是否判断单号为空 */
|
||||
private String izEmptyNo;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.nu.modules.invoicing.api;
|
||||
|
||||
import com.nu.entity.InvoicingDirectiveEntity;
|
||||
import com.nu.entity.InvoicingOrdersEntity;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
|
||||
|
|
@ -31,4 +32,10 @@ public interface IInvoicingOrdersApi {
|
|||
*/
|
||||
Map<String,String> finishOrder(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||
|
||||
/**
|
||||
* 根据工单id查询工单信息+对应服务指令信息
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
InvoicingDirectiveEntity selectInfoById(String id);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,6 +141,8 @@ public class InvoicingOrders implements Serializable {
|
|||
private String remarks;
|
||||
/**PAD路径*/
|
||||
private String padPath;
|
||||
/**执行类型 1单人 2协助 3转单*/
|
||||
private String optType;
|
||||
|
||||
/**接单上限*/
|
||||
@TableField(exist = false)
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package com.nu.modules.biz.invoicing.order.service.impl;
|
|||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.nu.entity.InvoicingDirectiveEntity;
|
||||
import com.nu.entity.InvoicingOrdersEntity;
|
||||
import com.nu.modules.biz.invoicing.order.entity.InvoicingOrders;
|
||||
import com.nu.modules.biz.invoicing.order.mapper.InvoicingOrdersMapper;
|
||||
|
|
@ -75,6 +76,7 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
|
|||
|
||||
/**
|
||||
* 获取指令工单信息
|
||||
*
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -95,6 +97,7 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
|
|||
|
||||
/**
|
||||
* 点击开始
|
||||
*
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -129,6 +132,7 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
|
|||
|
||||
/**
|
||||
* 点击完成
|
||||
*
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -172,8 +176,16 @@ public class InvoicingOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMappe
|
|||
return map;
|
||||
}
|
||||
|
||||
@Override
|
||||
public InvoicingDirectiveEntity selectInfoById(String id) {
|
||||
InvoicingDirectiveEntity result = new InvoicingDirectiveEntity();
|
||||
BeanUtils.copyProperties(baseMapper.selectById(id),result);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取单号
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
private void getOrderNo(InvoicingOrders orders) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue