|
|
@ -90,6 +90,7 @@ public class WarrantServiceImpl implements WarrantService { |
|
|
|
// 将xml转为map
|
|
|
|
Map<String, Object> result = WXXmlToMapUtil.multilayerXmlToMap(msg); |
|
|
|
Map<String,Object> xml = (Map<String, Object>) result.get(ModuleConstant.XML); |
|
|
|
if (xml.get(ModuleConstant.MSG_TYPE).equals(ModuleConstant.EVENT_LOW)) { |
|
|
|
Long createTime = Long.valueOf(xml.get(ModuleConstant.CREATE_TIME).toString()); |
|
|
|
CodeAuditRecordFormDTO codeAuditRecord = componentVerifyTicketService.mapToEntity(xml, CodeAuditRecordFormDTO.class); |
|
|
|
codeAuditRecord.setWechatCreateTime(new Date(createTime)); |
|
|
@ -109,7 +110,7 @@ public class WarrantServiceImpl implements WarrantService { |
|
|
|
// 修改 code_audit_result 中的代码审核结果
|
|
|
|
String event = codeAuditRecord.getEvent(); |
|
|
|
String codeResult = null; |
|
|
|
switch (event){ |
|
|
|
switch (event) { |
|
|
|
case ModuleConstant.WEAPP_AUDIT_SUCCESS: |
|
|
|
codeResult = ModuleConstant.AUDIT_SUCCESS; |
|
|
|
case ModuleConstant.WEAPP_AUDIT_FAIL: |
|
|
@ -118,7 +119,10 @@ public class WarrantServiceImpl implements WarrantService { |
|
|
|
codeResult = ModuleConstant.DELAY; |
|
|
|
} |
|
|
|
String codeCustomerId = codeCustomerDao.selectCodeCustomerId(codeAuditRecord); |
|
|
|
codeAuditResultDao.updateAuditResult(customerId,codeCustomerId,codeResult); |
|
|
|
codeAuditResultDao.updateAuditResult(customerId, codeCustomerId, codeResult); |
|
|
|
}else if (xml.get(ModuleConstant.MSG_TYPE).equals(ModuleConstant.TEXT)){ |
|
|
|
|
|
|
|
} |
|
|
|
return ModuleConstant.SUCCESS; |
|
|
|
} |
|
|
|
} |
|
|
|