服务指令-退货流程指令工单
This commit is contained in:
parent
763ccf57a1
commit
49d84df535
|
|
@ -60,7 +60,7 @@ public interface IInvoicingOrdersApi {
|
|||
Result<String> flowQlhtzf(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||
|
||||
/**
|
||||
* 单元退货-单元申请 dyth_dysq
|
||||
* 单元退货-单元申请 dyth_dysq 暂时无用,预留
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
Result<String> flowDythDysq(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import com.nu.modules.biz.invoicing.order.entity.InvoicingOrders;
|
|||
public interface IThOrdersService extends IService<InvoicingOrders> {
|
||||
|
||||
/**
|
||||
* 单元退货-单元申请
|
||||
* 单元退货-单元申请 暂时无用,预留
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
void flowDythDysq(InvoicingOrdersEntity invoicingOrdersEntity);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class ThOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMapper, Invo
|
|||
private String serverNetUrl;
|
||||
|
||||
/**
|
||||
* 单元退货-单元申请
|
||||
* 单元退货-单元申请 暂时无用,预留
|
||||
* @param invoicingOrdersEntity
|
||||
*/
|
||||
@Override
|
||||
|
|
@ -49,7 +49,67 @@ public class ThOrdersServiceImpl extends ServiceImpl<InvoicingOrdersMapper, Invo
|
|||
*/
|
||||
@Override
|
||||
public void flowDythCksh(InvoicingOrdersEntity invoicingOrdersEntity){
|
||||
List<InvoicingOrders> flowList = baseMapper.getFlowList(invoicingOrdersEntity);
|
||||
if(flowList!=null){
|
||||
Calendar c = Calendar.getInstance();
|
||||
InvoicingOrders flow = flowList.get(0);
|
||||
if(flow!=null){
|
||||
InvoicingOrders employee = empOrdersService.employeeScreening(flow.getDirectiveId(), invoicingOrdersEntity.getCustomerId(), c.getTime());
|
||||
insertNextOrder(flow,invoicingOrdersEntity,employee.getEmployeeId(),employee.getEmployeeName(),invoicingOrdersEntity.getInitiatorId(),invoicingOrdersEntity.getInitiatorName(),flow.getFlowCode(),"N");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 增加下一步的工单
|
||||
* @param invoicingOrdersEntity
|
||||
* @param flowSub 下一节点
|
||||
* @param invoicingOrdersEntity 业务数据
|
||||
* @param employeeId 员工ID
|
||||
* @param employeeName 员工名称
|
||||
* @param bizType 操作指令编码
|
||||
*/
|
||||
private void insertNextOrder(InvoicingOrders flowSub,InvoicingOrdersEntity invoicingOrdersEntity,String employeeId,String employeeName,String initiatorId,String initiatorName,String bizType,String izRollback){
|
||||
Calendar c = Calendar.getInstance();
|
||||
getNetImages(flowSub);
|
||||
InvoicingOrders nextEntity = new InvoicingOrders();
|
||||
nextEntity.setBizId(invoicingOrdersEntity.getBizId());
|
||||
nextEntity.setBizType(bizType);
|
||||
nextEntity.setNuId(invoicingOrdersEntity.getNuId());
|
||||
nextEntity.setNuName(invoicingOrdersEntity.getNuName());
|
||||
nextEntity.setCustomerId(invoicingOrdersEntity.getCustomerId());
|
||||
nextEntity.setCustomerName(invoicingOrdersEntity.getCustomerName());
|
||||
nextEntity.setDirectiveId(flowSub.getDirectiveId());
|
||||
nextEntity.setDirectiveName(flowSub.getDirectiveName());
|
||||
nextEntity.setCycleTypeId(flowSub.getCycleTypeId());
|
||||
nextEntity.setCycleType(flowSub.getCycleType());
|
||||
nextEntity.setPreviewFile(flowSub.getPreviewFile());
|
||||
nextEntity.setNetPreviewFile(flowSub.getNetPreviewFile());
|
||||
nextEntity.setPreviewFileSmall(flowSub.getPreviewFileSmall());
|
||||
nextEntity.setNetPreviewFileSmall(flowSub.getNetPreviewFileSmall());
|
||||
nextEntity.setMp3File(flowSub.getMp3File());
|
||||
nextEntity.setNetMp3File(flowSub.getNetMp3File());
|
||||
nextEntity.setMp4File(flowSub.getMp4File());
|
||||
nextEntity.setNetMp4File(flowSub.getNetMp4File());
|
||||
nextEntity.setServiceDuration(flowSub.getServiceDuration());
|
||||
nextEntity.setServiceContent(flowSub.getServiceContent());
|
||||
nextEntity.setIzStart("N");
|
||||
nextEntity.setIzFinish("N");
|
||||
nextEntity.setIzRollback(izRollback);
|
||||
nextEntity.setCreateBy(invoicingOrdersEntity.getInitiatorId());
|
||||
nextEntity.setCreateTime(c.getTime());
|
||||
nextEntity.setDelFlag("0");
|
||||
nextEntity.setInitiatorId(initiatorId);
|
||||
nextEntity.setInitiatorName(initiatorName);
|
||||
nextEntity.setBeginTime(c.getTime());
|
||||
c.add(Calendar.MINUTE,Integer.valueOf(flowSub.getServiceDuration()));
|
||||
nextEntity.setEndTime(c.getTime());
|
||||
nextEntity.setEmployeeId(employeeId);
|
||||
nextEntity.setEmployeeName(employeeName);
|
||||
baseMapper.insert(nextEntity);
|
||||
|
||||
//ws推送 employeeId
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue