Commit b3bf52ec by 墨竹

fix:插入修改

parent cf24a4ab
......@@ -426,7 +426,6 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
* @param clerkIdList
*/
private void insertHmClerkRelation(HmQrcodeQDTO hmQrcodeQDTO, String wxEnterpriseId, Long hmId, List<String> clerkIdList,Boolean addFlag) {
List<HmClerkRelationQDTO> clerkRelationQDTOS = new ArrayList<>();
Date now = new Date();
for (String clerkId : clerkIdList) {
HmClerkRelationBO hmClerkRelationBO = hmClerkRelationService.queryByHmIdAndClerkId(hmId, clerkId);
......@@ -469,9 +468,8 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
hmClerkRelationQDTO.setUpdateTime(now);
hmClerkRelationQDTO.setOverFlag(0);
hmClerkRelationQDTO.setAddNum(0);
clerkRelationQDTOS.add(hmClerkRelationQDTO);
hmClerkRelationService.insert(hmClerkRelationQDTO);
}
hmClerkRelationService.insertBatch(clerkRelationQDTOS);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment