| | |
| | | import com.whyc.pojo.WorksheetLink; |
| | | import com.whyc.pojo.WorksheetMain; |
| | | import com.whyc.util.DateUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | WorksheetAlarm worksheetAlarm = main.getWorksheetAlarm(); |
| | | //存入主表信息,子表信息,附表告警信息 |
| | | Date date = new Date(); |
| | | String formatDate = DateUtil.YYYY_MM_DD_HH_MM_SS_UNION.format(date); |
| | | //String formatDate = DateUtil.YYYY_MM_DD_HH_MM_SS_UNION.format(date); |
| | | String formatDate = ThreadLocalUtil.format(date,7); |
| | | main.setTitle("告警派工单-"+user.getUName()+"-"+formatDate); |
| | | main.setCreateUserId(user.getUId()); |
| | | main.setBeginTime(date); |