| | |
| | | package com.ruoyi.app.patrolplan.service.impl; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | @Override |
| | | public int insertArdAppPatrolplan(ArdAppPatrolplan ardAppPatrolplan) { |
| | | ardAppPatrolplan.setUserId(SecurityUtils.getUserId()); |
| | | ardAppPatrolplan.setCreateTime(DateUtils.getNowDate()); |
| | | Date date = new Date(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | ardAppPatrolplan.setCreateTime(sdf.format(date)); |
| | | return ardAppPatrolplanMapper.insertArdAppPatrolplan(ardAppPatrolplan); |
| | | } |
| | | |
| | |
| | | String userId = SecurityUtils.getUserId(); |
| | | ardAppPatrolplan.setUserId(userId); |
| | | ardAppPatrolplan.setCycle((String) para.get("cycle")); |
| | | ardAppPatrolplan.setCreateTime(new Date()); |
| | | Date date = new Date(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | ardAppPatrolplan.setCreateTime(sdf.format(date)); |
| | | int result = ardAppPatrolplanMapper.insertArdAppPatrolplan(ardAppPatrolplan);//新增主表 |
| | | List<String> alarmpointIdList = (List<String>) para.get("alarmpointIdList"); |
| | | List<ArdAppPatrolpoint> ardAppPatrolpointList = new ArrayList(); |