| | |
| | | CA_CHANGUNIT_APPLY_SIGN(24, "æ¢åç³è¯·ä¼ä¸ç¾ç« ","",1), |
| | | CA_UPLOAD_AGAIN(25, "忬¡æä¿","",1), |
| | | |
| | | |
| | | WTB_FINISH_FAQRS(26, "å§æä¿ - ä¼ä¸å®æç¾ç½²æ¹æ¡ç¡®è®¤ä¹¦","",0), |
| | | WTB_FINISH_MEMBER_LIST(27, "å§æä¿ - ä¼ä¸å®æç¾ç½²äººååå","",0), |
| | | |
| | | CA_WTB_FINISH_MEMBER_LIST(28, "å§æä¿ - å åä¿ç¾ç½²äººååå","",1), |
| | | |
| | | UPLOAD_AGAIN(29, "忬¡æä¿","",0), |
| | | |
| | | PALTFORM_EDIT_BD(30, "ä¿®æ¹ä¿å","ä¿®æ¹åå ï¼${param}",0), |
| | | SHOP_CLOSE_WTB_APPLY(31, "å
³éç³è¯·","åå ï¼${param}",0), |
| | | |
| | | |
| | | /** |
| | | * å§æä¿åå¹¶å |
| | | */ |
| | | IA_HBD_UPLOAD(32, "æäº¤ç³è¯·","",3), |
| | | IA_HBD_UPLOAD_TBD(33, "ä¸ä¼ æä¿å","",3), |
| | | IA_HBD_SIGNATURE_TBD(34, "ç¾ç½²æä¿å","",3), |
| | | IA_HBD_UPLOAD_INSURANCE(35, "ä¸ä¼ ä¿é©å","ä¿é©çæèµ·æï¼${param1}åæ´ä¸º${param2}",3), |
| | | IA_HBD_CLOSE(36, "éåç³è¯·","åå ï¼${param}",3), |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.dao.business.dto; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2024/4/1 14:57 |
| | | */ |
| | | @Data |
| | | public class CloseDTO { |
| | | |
| | | @ApiModelProperty(value = "ä¸å¡ä¸»é®") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "éååå ") |
| | | private String reason; |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | this.beforeContent=before; |
| | | this.afterContent=after; |
| | | } |
| | | |
| | | public ApplyLog(ApplyChange apply,String title,String content,Integer objId,Integer objType, String before,String after){ |
| | | this.title =title; |
| | | this.content=content; |
| | |
| | | this.afterContent=after; |
| | | } |
| | | |
| | | public ApplyLog(UnionApply apply,String title,String content,Integer objId,Integer objType, String before,String after){ |
| | | this.title =title; |
| | | this.content=content; |
| | | this.applyId = apply.getId(); |
| | | this.createDate =apply.getEditDate(); |
| | | this.creator =apply.getEditor(); |
| | | this.status = apply.getStatus(); |
| | | this.objId=objId; |
| | | this.objType = objType; |
| | | this.beforeContent=before; |
| | | this.afterContent=after; |
| | | } |
| | | |
| | | |
| | | @TableId(type = IdType.AUTO) |
| | | @ApiModelProperty(value = "主é®", example = "1") |
| | | @ExcelColumn(name="主é®") |
| | |
| | | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDTO; |
| | | import com.doumee.dao.business.dto.UploadMultifileDTO; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.model.UnionApply; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | /** |
| | | * åæ¶åå¹¶å |
| | | * @param id |
| | | * @param closeDTO |
| | | */ |
| | | void cancelMerge(Integer id); |
| | | void cancelMerge(CloseDTO closeDTO); |
| | | |
| | | /** |
| | | * ä¸ä¼ æä¿å |
| | |
| | | // applyLogMapper.insert(log); |
| | | // |
| | | // startSendEmail(f, model.getCompanyName(),model.getSolutionsName(),model.getSolutionEmail()); |
| | | |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.IA_HBD_SIGNATURE_TBD; |
| | | ApplyLog log = new ApplyLog(model,applyLogType.getName(), null |
| | | ,model.getId(),applyLogType.getKey(),null, JSONObject.toJSONString(model)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | return f; |
| | | } |
| | | |
| | |
| | | .selectAs(Solutions::getTimeUnit,InsuranceApply::getTimeUnit) |
| | | .selectAs(Solutions::getType,InsuranceApply::getSolutionType) |
| | | .selectAs(Solutions::getName,InsuranceApply::getSolutionsName) |
| | | .selectAs(Solutions::getName,InsuranceApply::getShopName) |
| | | .selectAs(Company::getName,InsuranceApply::getCompanyName) |
| | | .select(" ( select max(ac.APPLY_START_TIME) from apply_change ac where ac.apply_id = t.id and ac.status = 2 ) as lastChangeDate") |
| | | .select(" ( select count(DISTINCT(ad.MEMBER_ID)) from apply_detail ad where ad.apply_id = t.id ) as insureNum") |
| | | .select(" t3.name as shopName") |
| | | .leftJoin(Solutions.class,Solutions::getId,InsuranceApply::getSolutionId) |
| | | .leftJoin(Company.class,Company::getId,InsuranceApply::getCompanyId) |
| | | .leftJoin(Company.class,Company::getId,Solutions::getShopId) |
| | |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.core.utils.Utils; |
| | | import com.doumee.dao.business.CompanyMapper; |
| | | import com.doumee.dao.business.MultifileMapper; |
| | | import com.doumee.dao.business.SolutionsMapper; |
| | | import com.doumee.dao.business.UnionApplyMapper; |
| | | import com.doumee.dao.business.*; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.join.ApplyDetailJoinMapper; |
| | | import com.doumee.dao.business.join.InsuranceApplyJoinMapper; |
| | |
| | | |
| | | @Autowired |
| | | private SmsEmailService smsEmailService; |
| | | @Autowired |
| | | private ApplyLogMapper applyLogMapper; |
| | | |
| | | @Value("${debug_model}") |
| | | private boolean debugModel; |
| | |
| | | .set(ApplyDetail::getUnionApplyId,unionApply.getId()) |
| | | .in(ApplyDetail::getApplyId,saveUnionApplyDTO.getApplyIds())); |
| | | |
| | | |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.IA_HBD_UPLOAD; |
| | | ApplyLog log = new ApplyLog(unionApply,applyLogType.getName(), null |
| | | ,unionApply.getId(),applyLogType.getKey(),null, JSONObject.toJSONString(unionApply)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | return unionApply.getId(); |
| | | |
| | | } |
| | |
| | | |
| | | /** |
| | | * åæ¶ä¿ååå¹¶ |
| | | * @param id |
| | | * @param closeDTO |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class,BusinessException.class}) |
| | | public void cancelMerge(Integer id){ |
| | | public void cancelMerge(CloseDTO closeDTO){ |
| | | LoginUserInfo user = (LoginUserInfo) SecurityUtils.getSubject().getPrincipal(); |
| | | if(!user.getType().equals(Constants.TWO)){ |
| | | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"éåæ·ç¨æ·ï¼æ æ³è¿è¡è¯¥æä½ï¼"); |
| | | } |
| | | UnionApply unionApply = unionApplyMapper.selectById(id); |
| | | if(Objects.isNull(closeDTO)||Objects.isNull(closeDTO.getId())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST); |
| | | } |
| | | UnionApply unionApply = unionApplyMapper.selectById(closeDTO.getId()); |
| | | if(Objects.isNull(unionApply)||!Constants.equalsInteger(unionApply.getIsdeleted(),Constants.ZERO)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |
| | |
| | | .set(UnionApply::getStatus,Constants.UnionApplyStatus.CLOSE.getKey()) |
| | | .eq(UnionApply::getId,unionApply.getId()) |
| | | ); |
| | | |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.IA_HBD_CLOSE; |
| | | String info =applyLogType.getInfo(); |
| | | info = info.replace("${param}", closeDTO.getReason()); |
| | | ApplyLog log = new ApplyLog(unionApply,applyLogType.getName(), info |
| | | ,unionApply.getId(),applyLogType.getKey(),null, null); |
| | | applyLogMapper.insert(log); |
| | | |
| | | applyLogMapper.insert(log); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | Constants.ApplyLogType applyLogType = Constants.ApplyLogType.IA_HBD_UPLOAD_TBD; |
| | | ApplyLog log = new ApplyLog(unionApply,applyLogType.getName(), null |
| | | ,unionApply.getId(),applyLogType.getKey(),null, JSONObject.toJSONString(unionApply)); |
| | | applyLogMapper.insert(log); |
| | | |
| | | |
| | | } |
| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.dto.SaveUnionApplyDTO; |
| | | import com.doumee.dao.business.dto.SmsCheckDTO; |
| | | import com.doumee.dao.business.dto.UnionApplyBXDDTO; |
| | | import com.doumee.dao.business.dto.UploadMultifileDTO; |
| | | import com.doumee.dao.business.dto.*; |
| | | import com.doumee.dao.business.model.UnionApply; |
| | | import com.doumee.service.business.UnionApplyService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | } |
| | | |
| | | @ApiOperation("å
³éåå¹¶å") |
| | | @GetMapping("/close") |
| | | @PostMapping("/close") |
| | | @RequiresPermissions("business:unionapply:close") |
| | | public ApiResponse close(@RequestParam Integer id) { |
| | | unionApplyService.cancelMerge(id); |
| | | public ApiResponse close(@RequestBody CloseDTO closeDTO) { |
| | | unionApplyService.cancelMerge(closeDTO); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |