List<QualityVO> qualityList = JSONObject.parseArray(qualityjson, QualityVO.class);
if (!AssertUtil.isEmpty(qualityList)){
for (int i=0; i<qualityList.size();i++)
{
String uuid= UUID32.getID();
qualityList.get(i).setID(uuid);
qualityList.get(i).setQUALITYID(qualityList.get(i).getId());
qualityList.get(i).setId(uuid);
qualityList.get(i).setVIEWSTATE("0");
//将质量问题存入数据库
boardservice.saveQuality(qualityList.get(i));
TbQyUserInfoVO tbQyUserInfoVO =contactService.findUserByWxUserId(qualityList.get(i).getMANAGER());
if (!AssertUtil.isEmpty(tbQyUserInfoVO)){
UserInfoVO userInfoVO= contactService.getUserInfoByUserId(tbQyUserInfoVO.getUserId());
boardservice.sendQualityMsg(qualityList.get(i),userInfoVO,userInfoVO.getCorpId(),userInfoVO.getOrgId());
}else{
addJsonObj("-1","推送失败,通讯录没有该联系人");
}
}
addJsonObj("qualityList",qualityList);
}