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