|
|
@@ -63,6 +63,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
private PublicExamineMapper publicExamineMapper;
|
|
|
@Autowired
|
|
|
private AdminUserCountMapper adminUserCountMapper;
|
|
|
+ @Autowired
|
|
|
+ private PublicReleaseClockMapper publicReleaseClockMapper;
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
@@ -1067,14 +1069,20 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
}
|
|
|
List<OutPublicReleaseDetails> prdList = publicReleaseDetailsMapper.selectByPCid(id);
|
|
|
String str = "";
|
|
|
+ Date date = new Date();
|
|
|
boolean flag=false;
|
|
|
Integer clockCount=0;
|
|
|
+ PublicReleaseClock pc=new PublicReleaseClock();
|
|
|
+ pc.setPrid(id);
|
|
|
+ pc.setPhotoUrl(photoUrl);
|
|
|
+ pc.setClockInTime(date);
|
|
|
for (OutPublicReleaseDetails prd : prdList) {
|
|
|
if (prd.getUid().equals(uid)){
|
|
|
String aid = TokenManager.getAdminId();
|
|
|
+ pc.setPrdid(prd.getId());
|
|
|
prd.setClockInRemarks(clockInRemarks);
|
|
|
prd.setPhotoUrl(photoUrl);
|
|
|
- prd.setClockInTime(new Date());
|
|
|
+ prd.setClockInTime(date);
|
|
|
if (prd.getClockIn() == 0) {
|
|
|
prd.setClockIn(clockIn);
|
|
|
//获取列表
|
|
|
@@ -1112,6 +1120,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
newp.setClockIn(1);
|
|
|
publicReleaseMapper.updateByPrimaryKeySelective(newp);
|
|
|
}
|
|
|
+ publicReleaseClockMapper.insertSelective(pc);
|
|
|
if (!flag){
|
|
|
return 0;
|
|
|
}
|