|
@@ -23,6 +23,7 @@ import com.jkcredit.invoice.model.vo.OperatorSendCodeVo;
|
|
|
import com.jkcredit.invoice.service.manager.ParamService;
|
|
|
import com.jkcredit.invoice.service.nocar.NoCarCompanyMangerOper;
|
|
|
import com.jkcredit.invoice.service.upservice.NoCarInterface;
|
|
|
+import com.jkcredit.invoice.util.DateUtil;
|
|
|
import com.jkcredit.invoice.util.RespR;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
@@ -110,6 +111,7 @@ public class NoCarCompanyMangerOperImpl extends ServiceImpl<NoCarCompanyMangerMa
|
|
|
|
|
|
@Override
|
|
|
public RespR operatorEvidence(OperatorEvidenceVo operatorEvidenceVo) {
|
|
|
+ log.info("开始上传证明文件:NoCarCompanyMangerOperImpl.operatorEvidenceAdd{}", operatorEvidenceVo);
|
|
|
OperatorEvidenceRequest operatorEvidenceRequest = new OperatorEvidenceRequest();
|
|
|
BeanUtils.copyProperties(operatorEvidenceVo,operatorEvidenceRequest);
|
|
|
RespR respR = noCarInterface.operatorEvidence(operatorEvidenceRequest);
|
|
@@ -121,7 +123,7 @@ public class NoCarCompanyMangerOperImpl extends ServiceImpl<NoCarCompanyMangerMa
|
|
|
updateWrapper.set("operator_evidence_contract_file_name",operatorEvidenceVo.getContractFileName());
|
|
|
updateWrapper.set("operator_evidence_base64_str",operatorEvidenceVo.getBase64Str());
|
|
|
updateWrapper.set("status", CommonConst.FOR);
|
|
|
- updateWrapper.eq("companyNum",operatorEvidenceVo.getCompanyNum());
|
|
|
+ updateWrapper.eq("company_num",operatorEvidenceVo.getCompanyNum());
|
|
|
NoCarCompanyManger noCarCompanyManger = new NoCarCompanyManger();
|
|
|
noCarCompanyManger.setCompanyNum(operatorEvidenceVo.getCompanyNum());
|
|
|
noCarCompanyMangerMapper.update(noCarCompanyManger,updateWrapper);
|
|
@@ -148,6 +150,10 @@ public class NoCarCompanyMangerOperImpl extends ServiceImpl<NoCarCompanyMangerMa
|
|
|
if (respR.getCode() == 1) {
|
|
|
return new RespR(false, respR.getMsg());
|
|
|
} else {
|
|
|
+ UpdateWrapper<NoCarCompanyManger> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.set("status", CommonConst.FIVE);
|
|
|
+ updateWrapper.eq("company_num",customerRec.getCompanyNum());
|
|
|
+ noCarCompanyMangerMapper.update(noCarCompanyManger,updateWrapper);
|
|
|
return new RespR("success");
|
|
|
}
|
|
|
}
|
|
@@ -172,6 +178,11 @@ public class NoCarCompanyMangerOperImpl extends ServiceImpl<NoCarCompanyMangerMa
|
|
|
if (respR.getCode() == 1) {
|
|
|
return new RespR(false, respR.getMsg());
|
|
|
} else {
|
|
|
+ UpdateWrapper<NoCarCompanyManger> updateWrapper = new UpdateWrapper<>();
|
|
|
+ updateWrapper.set("status", CommonConst.SIX);
|
|
|
+ updateWrapper.set("last_time", DateUtil.getCurrentDateStr());
|
|
|
+ updateWrapper.eq("company_num",customerRec.getCompanyNum());
|
|
|
+ noCarCompanyMangerMapper.update(noCarCompanyManger,updateWrapper);
|
|
|
return new RespR("success");
|
|
|
}
|
|
|
}
|