|
|
@@ -67,6 +67,8 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
publicReleaseMapper.insertSelectiveGetId(in);
|
|
|
Admin my=adminMapper.selectByPrimaryKey(TokenManager.getAdminId());
|
|
|
Admin a=adminMapper.selectByPrimaryKey(my.getSuperiorId());
|
|
|
+ PublicReleaseLog log=new PublicReleaseLog(in.getId(),TokenManager.getAdminId(),1,"发起外出申请",new Date());
|
|
|
+ publicReleaseLogMapper.insertSelective(log);
|
|
|
String openid=a.getOpenId();
|
|
|
if (openid!=null) {
|
|
|
return weChatUtils.addNotice(openid, in.getStatus(),date,my.getName(),"["+my.getName()+"]发起外出审核");
|
|
|
@@ -137,11 +139,12 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public int pushPublicReleaseClockIn(Integer id) {
|
|
|
+ public int pushPublicReleaseClockIn(Integer id,String photoUrl) {
|
|
|
PublicRelease p=new PublicRelease();
|
|
|
PublicRelease use=publicReleaseMapper.selectByPrimaryKey(id);
|
|
|
p.setId(id);
|
|
|
p.setClockIn(1);
|
|
|
+ p.setPhotoUrl(photoUrl);
|
|
|
p.setClockInTime(new Date());
|
|
|
if (use.getClockIn()==0) {
|
|
|
FollowBusinessBo fbb=new FollowBusinessBo();
|