fix 最后一步打回

master
eason.qian 7 years ago
parent 7f40f73ad6
commit e2b3d6c686

@ -2766,16 +2766,15 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if (client == null) {
throw new InvalidShortIdException();
}
if (client.getIntValue("approve_result") < 3) {
throw new ForbiddenException();
}
int open_status = client.getIntValue("open_status");
if (open_status == 1) {
client.put("open_status", null);
} else {
client.put("open_status", open_status - 1);
}
client.put("approve_result", 5);
if(client.getInteger("approve_result")==null || client.getIntValue("approve_result")==4){
client.put("approve_result", 5);
}
client.put("approver", manager.getString("manager_id"));
client.put("approve_time", new Date());
if (refuse_remark != null && !refuse_remark.isEmpty()) {

Loading…
Cancel
Save