|
@@ -1,6 +1,7 @@
|
|
|
package com.sooka.sponest.data.other.patrolpoint.service.impl;
|
|
|
|
|
|
import com.ruoyi.common.core.utils.DateUtils;
|
|
|
+import com.ruoyi.common.core.utils.StringUtils;
|
|
|
import com.ruoyi.common.core.utils.uuid.IdUtils;
|
|
|
import com.ruoyi.common.datascope.annotation.DataScopeMutiDept;
|
|
|
import com.ruoyi.common.security.utils.SecurityUtils;
|
|
@@ -69,6 +70,9 @@ public class CenterdataTEmergencyPatrolpointServiceImpl extends BaseServiceImpl
|
|
|
centerdataTEmergencyPatrolpoint.setId(IdUtils.simpleUUID());
|
|
|
centerdataTEmergencyPatrolpoint.setCreateBy(SecurityUtils.getUserId().toString());
|
|
|
centerdataTEmergencyPatrolpoint.setCreateTime(DateUtils.getNowDate());
|
|
|
+ if (StringUtils.isNotEmpty(centerdataTEmergencyPatrolpoint.getDeptId())){
|
|
|
+ centerdataTEmergencyPatrolpoint.setDataDeptId(Long.valueOf(centerdataTEmergencyPatrolpoint.getDeptId()));
|
|
|
+ }
|
|
|
return centerdataTEmergencyPatrolpointMapper.insertCenterdataTEmergencyPatrolpoint(centerdataTEmergencyPatrolpoint);
|
|
|
}
|
|
|
|
|
@@ -82,6 +86,9 @@ public class CenterdataTEmergencyPatrolpointServiceImpl extends BaseServiceImpl
|
|
|
public int updateCenterdataTEmergencyPatrolpoint(CenterdataTEmergencyPatrolpoint centerdataTEmergencyPatrolpoint) {
|
|
|
centerdataTEmergencyPatrolpoint.setUpdateBy(SecurityUtils.getUserId());
|
|
|
centerdataTEmergencyPatrolpoint.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ if (StringUtils.isNotEmpty(centerdataTEmergencyPatrolpoint.getDeptId())){
|
|
|
+ centerdataTEmergencyPatrolpoint.setDataDeptId(Long.valueOf(centerdataTEmergencyPatrolpoint.getDeptId()));
|
|
|
+ }
|
|
|
return centerdataTEmergencyPatrolpointMapper.updateCenterdataTEmergencyPatrolpoint(centerdataTEmergencyPatrolpoint);
|
|
|
}
|
|
|
|