|
@ -37,7 +37,6 @@ import com.elink.esua.epdc.commons.tools.security.content.dto.form.ParentAndAllD |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.form.SaveCheckRecordsDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.form.SaveCheckRecordsDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.result.CheckResultDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.result.CheckResultDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.result.CheckResultMessageDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.content.dto.result.CheckResultMessageDTO; |
|
|
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; |
|
|
import com.elink.esua.epdc.commons.tools.utils.LocalDateUtils; |
|
|
import com.elink.esua.epdc.commons.tools.utils.LocalDateUtils; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
@ -312,17 +311,13 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
public Result activityClock(AppActUserClockLogDTO appActUserClockLogDTO) { |
|
|
public Result activityClock(AppActUserClockLogDTO appActUserClockLogDTO) { |
|
|
//内容审核 - start
|
|
|
//内容审核 - start
|
|
|
Boolean isConReview = appActUserClockLogDTO.getIsConReview(); |
|
|
Boolean isConReview = appActUserClockLogDTO.getIsConReview(); |
|
|
String userName = null; |
|
|
|
|
|
if(null != SecurityUser.getUser()){ |
|
|
|
|
|
userName = SecurityUser.getUser().getUsername(); |
|
|
|
|
|
} |
|
|
|
|
|
String mobile = null; |
|
|
String mobile = null; |
|
|
Result<UserDTO> user = userInfoFeignClient.getUserInfoById(appActUserClockLogDTO.getUserId()); |
|
|
Result<UserDTO> user = userInfoFeignClient.getUserInfoById(appActUserClockLogDTO.getUserId()); |
|
|
if(null != user.getData()){ |
|
|
if(null != user.getData()){ |
|
|
mobile = user.getData().getMobile(); |
|
|
mobile = user.getData().getMobile(); |
|
|
} |
|
|
} |
|
|
// 获取所有上级机构名称和ID拼接
|
|
|
// 获取所有上级机构名称和ID拼接
|
|
|
ParentAndAllDeptDTO deptDto = adminFeignClient.getParentAndAllDept(SecurityUser.getDeptId()).getData(); |
|
|
ParentAndAllDeptDTO deptDto = adminFeignClient.getParentAndAllDept(appActUserClockLogDTO.getDeptId()).getData(); |
|
|
List<String> textList = new ArrayList<>(); |
|
|
List<String> textList = new ArrayList<>(); |
|
|
textList.add(appActUserClockLogDTO.getClockDesc()); |
|
|
textList.add(appActUserClockLogDTO.getClockDesc()); |
|
|
CheckResultDTO contentResult = CheckDataUtils.checkContent(textList); |
|
|
CheckResultDTO contentResult = CheckDataUtils.checkContent(textList); |
|
@ -331,7 +326,7 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
((contentResult != null && !contentResult.getAllPass()) || (imgResult != null && !imgResult.getAllPass()))){ |
|
|
((contentResult != null && !contentResult.getAllPass()) || (imgResult != null && !imgResult.getAllPass()))){ |
|
|
//组装要保存的信息
|
|
|
//组装要保存的信息
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
userName, CheckDataUtils.cate_two, CheckDataUtils.decision_one, ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getUserName(), CheckDataUtils.cate_two, CheckDataUtils.decision_one, ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getImages(), null,contentResult, imgResult,null,mobile,"0",deptDto); |
|
|
appActUserClockLogDTO.getImages(), null,contentResult, imgResult,null,mobile,"0",deptDto); |
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
contentSecurityFeign.insertViolationsRecord(record); |
|
|
return new Result().error(CheckDataUtils.violations_code,CheckDataUtils.violations_message); |
|
|
return new Result().error(CheckDataUtils.violations_code,CheckDataUtils.violations_message); |
|
@ -378,7 +373,7 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
//接口异常,保存至待审核信息
|
|
|
//接口异常,保存至待审核信息
|
|
|
if((contentResult == null || imgResult == null) && !isConReview) { |
|
|
if((contentResult == null || imgResult == null) && !isConReview) { |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getUserName(), CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, null,mobile,"1",deptDto); |
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, null,mobile,"1",deptDto); |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
} |
|
|
} |
|
@ -393,7 +388,7 @@ public class ActUserClockLogServiceImpl extends BaseServiceImpl<ActUserClockLogD |
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
if (CheckDataUtils.review.equals(twoTypes.getSuggestion())) { |
|
|
//组装要保存的信息
|
|
|
//组装要保存的信息
|
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
SaveCheckRecordsDTO record = CheckDataUtils.getPackageRecords(appActUserClockLogDTO.getUserId(), |
|
|
userName, CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getUserName(), CheckDataUtils.cate_two, null,ModuleName.HELP_SIGNIN.getCode(), textList, |
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, twoTypes,mobile,"0",deptDto); |
|
|
appActUserClockLogDTO.getImages(), entity.getId(),null,null, twoTypes,mobile,"0",deptDto); |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
contentSecurityFeign.insertRecords(record); |
|
|
} |
|
|
} |
|
|