|
|
@ -47,6 +47,7 @@ import org.apache.commons.lang3.BooleanUtils; |
|
|
|
import org.apache.commons.lang3.math.NumberUtils; |
|
|
|
import org.apache.commons.lang3.math.NumberUtils; |
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFDocument; |
|
|
|
import org.apache.poi.xwpf.usermodel.XWPFDocument; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
|
|
|
import org.springblade.core.log.logger.BladeLogger; |
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
@ -151,6 +152,8 @@ public class TicketProcessServiceImpl implements TicketProcessService { |
|
|
|
|
|
|
|
|
|
|
|
private final ISysClient sysClient; |
|
|
|
private final ISysClient sysClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final BladeLogger logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 启动开票流程 |
|
|
|
* 启动开票流程 |
|
|
@ -161,6 +164,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
|
public Long startUp(WorkTicketVo workTicketVo) { |
|
|
|
public Long startUp(WorkTicketVo workTicketVo) { |
|
|
|
|
|
|
|
logger.info("ticket:start:request",JSON.toJSONString(workTicketVo)); |
|
|
|
log.info("执行 com.hnac.hzims.ticket.twoTicket.service.impl【startUp】 。。。方法"); |
|
|
|
log.info("执行 com.hnac.hzims.ticket.twoTicket.service.impl【startUp】 。。。方法"); |
|
|
|
if (workTicketVo.getWorkTicket().getSignage() == null) { |
|
|
|
if (workTicketVo.getWorkTicket().getSignage() == null) { |
|
|
|
throw new ServiceException("票据抬头未配置,请您到站点管理配置"); |
|
|
|
throw new ServiceException("票据抬头未配置,请您到站点管理配置"); |
|
|
@ -198,6 +202,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { |
|
|
|
} |
|
|
|
} |
|
|
|
workTicketVo.getWorkTicket().setCode(code); |
|
|
|
workTicketVo.getWorkTicket().setCode(code); |
|
|
|
//3 .保存工作对象
|
|
|
|
//3 .保存工作对象
|
|
|
|
|
|
|
|
logger.info("ticket:start:vo",JSON.toJSONString(workTicketVo.getWorkTicket())); |
|
|
|
this.saveWorkTicketInfo(workTicketVo.getWorkTicket()); |
|
|
|
this.saveWorkTicketInfo(workTicketVo.getWorkTicket()); |
|
|
|
//4. 保存安全措施
|
|
|
|
//4. 保存安全措施
|
|
|
|
this.saveSafetyMeasures(workTicketVo.getSafetyMeasuresList(), workTicketVo.getWorkTicket()); |
|
|
|
this.saveSafetyMeasures(workTicketVo.getSafetyMeasuresList(), workTicketVo.getWorkTicket()); |
|
|
@ -744,6 +749,7 @@ public class TicketProcessServiceImpl implements TicketProcessService { |
|
|
|
workTicket.setIsRailway(false); |
|
|
|
workTicket.setIsRailway(false); |
|
|
|
workTicket.setIsLimited(false); |
|
|
|
workTicket.setIsLimited(false); |
|
|
|
boolean isSave = firstWorkTicketService.save(workTicket); |
|
|
|
boolean isSave = firstWorkTicketService.save(workTicket); |
|
|
|
|
|
|
|
logger.info("ticket:start:save",JSON.toJSONString(workTicket)); |
|
|
|
if (!isSave) { |
|
|
|
if (!isSave) { |
|
|
|
throw new IllegalArgumentException("保存工作对象错误"); |
|
|
|
throw new IllegalArgumentException("保存工作对象错误"); |
|
|
|
} |
|
|
|
} |
|
|
|