Commit 33371d22 authored by huyuchen's avatar huyuchen

huych-含风险项目商险不购买申请提交

parent 41d2aa4b
......@@ -59,6 +59,18 @@ public class TInsuranceUnpurchaseApplyController {
return new R<>(tInsuranceUnpurchaseApplyService.getTInsuranceUnpurchaseApplyPage(page, searchVo));
}
/**
* 通过id查询含风险项目不购买申请表
*
* @param id id
* @return R
*/
@Operation(summary = "移动端通过id查询", description = "移动端通过id查询")
@GetMapping("/temp/{id}")
public R<TInsuranceUnpurchaseApply> getTempById(@PathVariable("id") String id) {
return tInsuranceUnpurchaseApplyService.getDetailInfoById(id);
}
/**
* 通过id查询含风险项目不购买申请表
*
......
......@@ -161,14 +161,18 @@ public class TInsuranceUnpurchaseApplyServiceImpl extends ServiceImpl<TInsurance
String applyDetail = baseMapper.getMaxInusuranceDetailCode();
//暂存不做校验
if (CommonConstants.ONE_STRING.equals(tInsuranceUnpurchaseApply.getSaveFlag())) {
tInsuranceUnpurchaseApply.setCreateTime(null);
tInsuranceUnpurchaseApply.setUpdateTime(null);
if (Common.isEmpty(tInsuranceUnpurchaseApply.getId())) {
tInsuranceUnpurchaseApply.setApplyNo(applyNo);
tInsuranceUnpurchaseApply.setCreateBy(user.getId());
tInsuranceUnpurchaseApply.setCreateName(user.getNickname());
tInsuranceUnpurchaseApply.setCreateUserDeptName(user.getDeptName());
tInsuranceUnpurchaseApply.setCreateUserDeptId(user.getDeptId().toString());
tInsuranceUnpurchaseApply.setCreateTime(null);
tInsuranceUnpurchaseApply.setUpdateTime(null);
baseMapper.insert(tInsuranceUnpurchaseApply);
}else {
baseMapper.updateById(tInsuranceUnpurchaseApply);
}
//更新附件
updateFileId(tInsuranceUnpurchaseApply);
......
......@@ -54,7 +54,7 @@ security:
- /tinsuranceunpurchaseapply/getAuditCount # 临时调试
- /tinsuranceunpurchaseapply/auditTemp # 临时调试
- /tauditrecord/getAuditInfoByDomainIdAndAuditType # 临时调试
- /tinsuranceunpurchaseapply/{id} # 临时调试
- /tinsuranceunpurchaseapply/temp/{id} # 临时调试
# 文件上传相关 支持阿里云、华为云、腾讯、minio
......
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