|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //生成任务记录 | 
|---|
|  |  |  | PlatformJob platformJob = platformBooks.toPlatformJob(); | 
|---|
|  |  |  | platformJob.setId(null); | 
|---|
|  |  |  | platformJob.setPlatformGroupId(platformReason.getGroupId().intValue()); | 
|---|
|  |  |  | platformJob.setType(Constants.platformJobType.sgscxh); | 
|---|
|  |  |  | platformJob.setStatus(Constants.PlatformJobStatus.WART_SIGN_IN.getKey()); | 
|---|
|  |  |  | 
|---|
|  |  |  | platformLog.setObjId(platformJob.getId().toString()); | 
|---|
|  |  |  | platformLog.setAfterContent(JSONObject.toJSONString(platformJob)); | 
|---|
|  |  |  | platformLogMapper.insert(platformLog); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|
|  |  |  | } | 
|---|