Browse Source

#工作票作废

zhongwei
yang_shj 1 year ago
parent
commit
bbdf45936f
  1. 2
      hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfig.java
  2. 8
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java
  3. 2
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/IWorkTicketInfoService.java
  4. 6
      hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/WorkTicketInfoServiceImpl.java

2
hzims-service/hzims-alarm/src/main/java/com/hnac/hzims/alarm/mqtt/MqttConfig.java

@ -46,7 +46,7 @@ public class MqttConfig {
// private String mqtt_system_topname;
@PostConstruct
public void registerMqtt(){
try {
try{
com.hnac.hzinfo.subscribe.MqttConfig mqttConfig = new com.hnac.hzinfo.subscribe.MqttConfig();
mqttConfig.setUrl(mqtt_fdp_url);
mqttConfig.setGroup(mqtt_fdp_group);

8
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/controller/WorkTicketInfoController.java

@ -262,5 +262,13 @@ public class WorkTicketInfoController {
return R.data(workTicketInfoService.work(Condition.getPage(query),work));
}
@ApiLog
@PostMapping("/cancel")
@ApiOperationSupport(order = 50)
@ApiOperation(value = "线下工作票作废")
public R cancel(WorkTicketInfoEntity entity) {
return R.status(workTicketInfoService.cancel(entity));
}
}

2
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/IWorkTicketInfoService.java

@ -185,4 +185,6 @@ public interface IWorkTicketInfoService extends BaseService<WorkTicketInfoEntity
IPage<WorkTicketInfoVO> work(IPage<WorkTicketInfoEntity> page, WorkVO work);
List<WorkTicketExportVO> exportWorkTicket(WorkTicketInfoDto req);
Boolean cancel(WorkTicketInfoEntity entity);
}

6
hzims-service/ticket/src/main/java/com/hnac/hzims/ticket/workTicket/service/impl/WorkTicketInfoServiceImpl.java

@ -1272,4 +1272,10 @@ public class WorkTicketInfoServiceImpl extends BaseServiceImpl<WorkTicketInfoMap
}
return list;
}
@Override
public Boolean cancel(WorkTicketInfoEntity entity) {
entity.setFlowTaskName("线下作废");
return this.updateById(entity);
}
}

Loading…
Cancel
Save