|
|
@@ -5,6 +5,7 @@ import com.github.pagehelper.PageInfo;
|
|
|
import com.usoftchina.saas.base.service.CommonBaseServiceImpl;
|
|
|
import com.usoftchina.saas.commons.api.MaxnumberService;
|
|
|
import com.usoftchina.saas.commons.api.MessageLogService;
|
|
|
+import com.usoftchina.saas.commons.dto.BatchDealBaseDTO;
|
|
|
import com.usoftchina.saas.commons.dto.DocBaseDTO;
|
|
|
import com.usoftchina.saas.commons.dto.DocSavedDTO;
|
|
|
import com.usoftchina.saas.commons.dto.ListReqDTO;
|
|
|
@@ -29,6 +30,7 @@ import org.springframework.util.StringUtils;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
+import java.util.Iterator;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Service
|
|
|
@@ -294,6 +296,34 @@ public class VerificationServiceImpl extends CommonBaseServiceImpl<VerificationM
|
|
|
messageLogService.unAudit(baseDTO);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void batchAudit(BatchDealBaseDTO baseDTO) {
|
|
|
+ Iterator isList = baseDTO.getBaseDTOs().iterator();
|
|
|
+ while (isList.hasNext()){
|
|
|
+ DocBaseDTO docBaseDTO = (DocBaseDTO) isList.next();
|
|
|
+ Long id = docBaseDTO.getId();
|
|
|
+ Verification verification = new Verification();
|
|
|
+ verification.setVc_status(Status.AUDITED.getDisplay());
|
|
|
+ verification.setVc_statuscode(Status.AUDITED.name());
|
|
|
+ verification.setVc_id(Integer.valueOf(String.valueOf(id)));
|
|
|
+ verificationMapper.updateByPrimaryKeySelective(verification);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void batchUnAudit(BatchDealBaseDTO baseDTO) {
|
|
|
+ Iterator isList = baseDTO.getBaseDTOs().iterator();
|
|
|
+ while (isList.hasNext()){
|
|
|
+ DocBaseDTO docBaseDTO = (DocBaseDTO) isList.next();
|
|
|
+ Long id = docBaseDTO.getId();
|
|
|
+ Verification verification = new Verification();
|
|
|
+ verification.setVc_status(Status.UNAUDITED.getDisplay());
|
|
|
+ verification.setVc_statuscode(Status.UNAUDITED.name());
|
|
|
+ verification.setVc_id(Integer.valueOf(String.valueOf(id)));
|
|
|
+ verificationMapper.updateByPrimaryKeySelective(verification);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
private String pushMaxnubmer(String code, Long id) {
|
|
|
if (null == code) {
|
|
|
throw new BizException(BizExceptionCode.NULL_CODE);
|