提交 5320c92f 作者: 张小凤

PilotCertificationServiceImpl(update)

上级 d4a4a243
...@@ -220,13 +220,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -220,13 +220,7 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
public ResultBody updateAuditStatus(PilotAuditStatusQO param, LoginSuccessDTO userLoginInfoFromRedis) { public ResultBody updateAuditStatus(PilotAuditStatusQO param, LoginSuccessDTO userLoginInfoFromRedis) {
int i = certificationDao.selectFirstApprove(param.getId()); int i = certificationDao.selectFirstApprove(param.getId());
UserAccountDO userAccountDO = certificationDao.selectUserAccountId(param); UserAccountDO userAccountDO = certificationDao.selectUserAccountId(param);
if (param.getAuditStatus() == 1 && i == 0) { extracted(param, i, userAccountDO);
//积分
extracted(userAccountDO.getId());
}
if (param.getAuditStatus() == 1) {
param.setIsFirstApprove(1);
}
param.setOperatorUserId(userLoginInfoFromRedis.getUserAccountId()); param.setOperatorUserId(userLoginInfoFromRedis.getUserAccountId());
certificationDao.updateAuditStatus(param); certificationDao.updateAuditStatus(param);
...@@ -238,6 +232,21 @@ public class PilotCertificationServiceImpl implements PilotCertificationService ...@@ -238,6 +232,21 @@ public class PilotCertificationServiceImpl implements PilotCertificationService
return ResultBody.success(); return ResultBody.success();
} }
private void extracted(PilotAuditStatusQO param, int i, UserAccountDO userAccountDO) {
if (param.getAuditStatus() == 1 && i == 0) {
//积分
extracted(userAccountDO.getId());
}
if (param.getAuditStatus() == 1) {
param.setIsFirstApprove(1);
}
if (param.getAuditStatus()==2 && i==0){
param.setIsFirstApprove(0);
}if(param.getAuditStatus()==2 && i ==1){
param.setIsFirstApprove(1);
}
}
private void sendMsgFlyerInfoAuth(UserAccountDO userAccountDO, String message, PilotAuditStatusQO param) { private void sendMsgFlyerInfoAuth(UserAccountDO userAccountDO, String message, PilotAuditStatusQO param) {
SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm");// 设置日期格式 SimpleDateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm");// 设置日期格式
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论