Commit 7232a1e5 by zhangxingmin

Merge remote-tracking branch 'origin/dev' into test

# Conflicts:
#	yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
parents a8b60061 4b7e7bb2
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<dependency> <dependency>
<groupId>com.alibaba</groupId> <groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId> <artifactId>fastjson</artifactId>
<version>1.2.42</version> <version>1.2.83</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>mysql</groupId> <groupId>mysql</groupId>
......
...@@ -803,6 +803,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService { ...@@ -803,6 +803,14 @@ public class AgmsHiringServiceImpl implements AgmsHiringService {
setting.setPractitionerId(practitioner.getId()); setting.setPractitionerId(practitioner.getId());
setting.setPractitionerTypeId(28L); setting.setPractitionerTypeId(28L);
setting.setPractitionerLevel(membership.getMdDropOptionId()); setting.setPractitionerLevel(membership.getMdDropOptionId());
try {
MdDropOptions levelInfo = mdDropOptionsDALService.findById(membership.getMdDropOptionId());
MdDropOptions dropOptions = mdDropOptionsDALService.selectByMasterCodeAndOptionsCode("practitioner_level", levelInfo.getDropOptionCode());
if (dropOptions != null) {
setting.setPractitionerLevel(dropOptions.getId());
}
} catch (Exception e) {
}
setting.setIsActive(1); setting.setIsActive(1);
setting.setCreatedAt(new Date()); setting.setCreatedAt(new Date());
setting.setCreatedBy(operater); setting.setCreatedBy(operater);
......
...@@ -257,6 +257,21 @@ public class PractitionerHiringController { ...@@ -257,6 +257,21 @@ public class PractitionerHiringController {
} }
/** /**
* 手工生成报聘合同
*
* @param requestVO
* @return
*/
@RequestMapping("/handGeneratePDF")
public Object handGeneratePDF(@RequestBody GeneratePDFRequestVO requestVO){
JsonResult result = new JsonResult();
GeneratePDFResponseVO responseVO = practitionerHiringService.handGeneratePDF(requestVO);
result.addResult(responseVO);
result.setData(responseVO);
return result;
}
/**
* 报聘成功后查看经纪人信息 * 报聘成功后查看经纪人信息
* @param requestVO 请求数据 * @param requestVO 请求数据
* @return 响应数据 * @return 响应数据
......
...@@ -60,4 +60,6 @@ public interface PractitionerHiringService { ...@@ -60,4 +60,6 @@ public interface PractitionerHiringService {
CommonResultResponseVO hiringSubmit(HiringBasicInfoIdRequestVO requestVO); CommonResultResponseVO hiringSubmit(HiringBasicInfoIdRequestVO requestVO);
SaveWeChatQRcodeResponseVO saveWeChatQRcode(SaveWeChatQRcodeRequestVO requestVO); SaveWeChatQRcodeResponseVO saveWeChatQRcode(SaveWeChatQRcodeRequestVO requestVO);
GeneratePDFResponseVO handGeneratePDF(GeneratePDFRequestVO requestVO);
} }
...@@ -4,9 +4,11 @@ import com.libs.pdf.PDFSign; ...@@ -4,9 +4,11 @@ import com.libs.pdf.PDFSign;
import com.libs.pdf.PDFTemplate; import com.libs.pdf.PDFTemplate;
import com.yd.api.practitioner.service.PractitionerHiringContractService; import com.yd.api.practitioner.service.PractitionerHiringContractService;
import com.yd.dal.entity.customer.*; import com.yd.dal.entity.customer.*;
import com.yd.dal.entity.meta.MdDropOptions;
import com.yd.dal.mapper.customer.*; import com.yd.dal.mapper.customer.*;
import com.yd.dal.mapper.practitioner.PractitionerHiringMapper; import com.yd.dal.mapper.practitioner.PractitionerHiringMapper;
import com.yd.dal.service.customer.AclPractitionerSubordinateSystemDALService; import com.yd.dal.service.customer.AclPractitionerSubordinateSystemDALService;
import com.yd.dal.service.meta.MdDropOptionsDALService;
import com.yd.rmi.ali.oss.service.OssService; import com.yd.rmi.ali.oss.service.OssService;
import com.yd.rmi.cache.SystemConfigService; import com.yd.rmi.cache.SystemConfigService;
import com.yd.util.CommonUtil; import com.yd.util.CommonUtil;
...@@ -46,6 +48,8 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -46,6 +48,8 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
private AclInsurerBranchDeptMapper deptMapper; private AclInsurerBranchDeptMapper deptMapper;
@Autowired @Autowired
private AclPractitionerSubordinateSystemDALService aclPractitionerSubordinateSystemDALService; private AclPractitionerSubordinateSystemDALService aclPractitionerSubordinateSystemDALService;
@Autowired
private MdDropOptionsDALService mdDropOptionsDALService;
/** /**
...@@ -217,18 +221,17 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -217,18 +221,17 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
data.put("firstPartyAddress", firstPartyAddress); data.put("firstPartyAddress", firstPartyAddress);
// 设置一些地址 // 设置一些地址
this.setSomeAddress(data, hiringBasicInfoId); this.setSomeAddress(data, hiringBasicInfoId);
// Calendar now = Calendar.getInstance();
Calendar now = Calendar.getInstance(); // data.put("contactYear", now.get(Calendar.YEAR) + "");
data.put("contactYear", now.get(Calendar.YEAR) + ""); // data.put("contactMonth", (now.get(Calendar.MONTH) + 1) + "");
data.put("contactMonth", (now.get(Calendar.MONTH) + 1) + ""); // data.put("contactDay", now.get(Calendar.DAY_OF_MONTH) + "");
data.put("contactDay", now.get(Calendar.DAY_OF_MONTH) + "");
//8页 //8页
data.put("secondParty801", basicInfo.getName()); data.put("secondParty801", basicInfo.getName());
Calendar secondBirthday = Calendar.getInstance(); Calendar secondBirthday = Calendar.getInstance();
Date practitionerBirthdate = CommonUtil.stringParseDate(basicInfo.getPractitionerBirthdate(), "yyyy-MM-dd"); Date practitionerBirthdate = CommonUtil.stringParseDate(basicInfo.getPractitionerBirthdate(), "yyyy-MM-dd");
secondBirthday.setTime(practitionerBirthdate); secondBirthday.setTime(practitionerBirthdate);
data.put("secondBirthYear801", secondBirthday.get(Calendar.YEAR) + ""); data.put("secondBirthYear801", secondBirthday.get(Calendar.YEAR) + "");
data.put("secondBirthMonth801", (secondBirthday.get(Calendar.MONTH) + 1) + ""); data.put("secondBirthMonth801", (secondBirthday.get(Calendar.MONTH) + 1) + "");
data.put("secondBirthDay801", secondBirthday.get(Calendar.DAY_OF_MONTH) + ""); data.put("secondBirthDay801", secondBirthday.get(Calendar.DAY_OF_MONTH) + "");
...@@ -258,6 +261,11 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -258,6 +261,11 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
data.put("secondMentor801", mentorName); data.put("secondMentor801", mentorName);
data.put("secondSubsystem", subsystemName); data.put("secondSubsystem", subsystemName);
data.put("secondSubsystemNo", ""); data.put("secondSubsystemNo", "");
data.put("contactYear", applyDate.get(Calendar.YEAR) + "");
data.put("contactMonth", (applyDate.get(Calendar.MONTH) + 1) + "");
data.put("contactDay", applyDate.get(Calendar.DAY_OF_MONTH) + "");
// 签核人员 // 签核人员
this.setApprovepeople(data, hiringBasicInfoId); this.setApprovepeople(data, hiringBasicInfoId);
...@@ -435,6 +443,8 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -435,6 +443,8 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
images.put("secondSignature1401", signature); images.put("secondSignature1401", signature);
images.put("secondSignature1601", signature); images.put("secondSignature1601", signature);
images.put("secondSignature1701", signature); images.put("secondSignature1701", signature);
images.put("secondPartyImg", signature);
images.put("secondParty802Img", signature);
// 证件照 // 证件照
String IDFront = this.getImgTolocal(localDirectory,"IDFront.png", basicInfo.getIdFrontPageOssPath()); String IDFront = this.getImgTolocal(localDirectory,"IDFront.png", basicInfo.getIdFrontPageOssPath());
String IDBack = this.getImgTolocal(localDirectory,"IDBack.png", basicInfo.getIdBackPageOssPath()); String IDBack = this.getImgTolocal(localDirectory,"IDBack.png", basicInfo.getIdBackPageOssPath());
...@@ -465,32 +475,62 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -465,32 +475,62 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
images.put("secondPosition4", unCheckFile); images.put("secondPosition4", unCheckFile);
images.put("secondPosition5", unCheckFile); images.put("secondPosition5", unCheckFile);
images.put("secondPosition6", unCheckFile); images.put("secondPosition6", unCheckFile);
images.put("secondPosition7", unCheckFile);
images.put("secondPosition8", unCheckFile);
images.put("secondPosition9", unCheckFile);
images.put("secondPosition10", unCheckFile);
images.put("secondPosition11", unCheckFile);
Long mdDropOptionId = memberShip == null ? null : memberShip.getMdDropOptionId(); Long mdDropOptionId = memberShip == null ? null : memberShip.getMdDropOptionId();
if (Long.valueOf("30").equals(mdDropOptionId)) { if(mdDropOptionId != null){
MdDropOptions mdDropOptions = mdDropOptionsDALService.findById(mdDropOptionId);
if(mdDropOptions != null){
if ("S3".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition1", checkFile); images.put("secondPosition1", checkFile);
return; return;
} }
if (Long.valueOf("32").equals(mdDropOptionId)) { if ("S2".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition2", checkFile); images.put("secondPosition2", checkFile);
return; return;
} }
if (Long.valueOf("33").equals(mdDropOptionId)) { if ("S1".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition3", checkFile); images.put("secondPosition3", checkFile);
return; return;
} }
if (Long.valueOf("34").equals(mdDropOptionId)) { if ("M3".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition4", checkFile); images.put("secondPosition4", checkFile);
return; return;
} }
if (Long.valueOf("35").equals(mdDropOptionId)) { if ("M2".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition5", checkFile); images.put("secondPosition5", checkFile);
return; return;
} }
if (Long.valueOf("36").equals(mdDropOptionId)) { if ("M1".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition6", checkFile); images.put("secondPosition6", checkFile);
return; return;
} }
if ("A3".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition7", checkFile);
return;
}
if ("A2".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition8", checkFile);
return;
}
if ("A1".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition9", checkFile);
return;
}
if ("A0".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition10", checkFile);
return;
}
if ("IA".equals(mdDropOptions.getDropOptionCode())) {
images.put("secondPosition11", checkFile);
return;
}
}
}
} }
......
...@@ -1025,6 +1025,57 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService ...@@ -1025,6 +1025,57 @@ public class PractitionerHiringServiceImpl implements PractitionerHiringService
return resp; return resp;
} }
@Override
public GeneratePDFResponseVO handGeneratePDF(GeneratePDFRequestVO requestVO) {
GeneratePDFResponseVO resp = new GeneratePDFResponseVO();
try {
Long hiringBasicInfoId = requestVO.getHiringBasicInfoId();
Long practitionerId = requestVO.getPractitionerId();
if (hiringBasicInfoId == null) {
resp.setCommonResult(new CommonResult(false, "此经纪人无电子合同"));
return resp;
}
AclPractitioner practitioner = aclPractitionerMapper.selectByPrimaryKey(practitionerId);
String practitionerCode = practitioner == null ? null : practitioner.getPractitionerCode().trim();
String practitionerRegNo = practitioner == null ? null : practitioner.getPractitionerRegNo();
if (StringUtils.isBlank(practitionerRegNo)) {
resp.setCommonResult(new CommonResult(false, "执业编号不能为空,请保存后再生成合同"));
return resp;
}
if (StringUtils.isBlank(practitionerCode)) {
resp.setCommonResult(new CommonResult(false, "内部编号不能为空,请保存后再生成合同"));
return resp;
}
// 合同编号已存在就不生成新的
String contractNo = practitioner.getContractNo();
if (StringUtils.isEmpty(contractNo)) {
contractNo = hiringContractService.getNextContractNo();
practitioner.setContractNo(contractNo);
}
String contractOssPath = hiringContractService.generatePractitionerContract(practitioner);
//4、经纪人表生成经纪人记录ag_acl_practitioner,ag_acl_practitioner.contract_oss_path
// 经纪人经纪人类型级别定义表ag_acl_practitioner_setting
AclPractitioner updateObj = new AclPractitioner();
updateObj.setId(practitionerId);
updateObj.setContractNo(contractNo);
updateObj.setContractOssPath(contractOssPath);
aclPractitionerMapper.updateByPrimaryKeySelective(updateObj);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
resp.setContractOssPath(contractOssPath);
} catch (Exception e) {
e.printStackTrace();
resp.setCommonResult(new CommonResult(false, e.getMessage()));
}
return resp;
}
private void distributeToSubsystemOwner(AclPractitionerHiringMembership hiringMemberShip) { private void distributeToSubsystemOwner(AclPractitionerHiringMembership hiringMemberShip) {
String mdDropOptionName = hiringMemberShip.getMdDropOptionName(); String mdDropOptionName = hiringMemberShip.getMdDropOptionName();
......
...@@ -7,4 +7,5 @@ import lombok.Data; ...@@ -7,4 +7,5 @@ import lombok.Data;
public class QueryCanSeeResponseVO { public class QueryCanSeeResponseVO {
private CommonResult commonResult; private CommonResult commonResult;
private String canSeeYdCollege; private String canSeeYdCollege;
private String cffpRoleCode;
} }
...@@ -86,4 +86,9 @@ public class SaveBasicInfoRequestVO { ...@@ -86,4 +86,9 @@ public class SaveBasicInfoRequestVO {
* email地址 * email地址
*/ */
private String email; private String email;
/**
* 视频URl
*/
private String videoOssPath;
} }
...@@ -134,6 +134,11 @@ public class PractitionerHiringBasicInfo { ...@@ -134,6 +134,11 @@ public class PractitionerHiringBasicInfo {
private String personalSignOssPath; private String personalSignOssPath;
/** /**
* 视频URl
*/
private String videoOssPath;
/**
* 获取 邀请人名字 * 获取 邀请人名字
* *
* @return inviteePractitionerName 邀请人名字 * @return inviteePractitionerName 邀请人名字
...@@ -519,6 +524,14 @@ public class PractitionerHiringBasicInfo { ...@@ -519,6 +524,14 @@ public class PractitionerHiringBasicInfo {
this.payrollOssPath = payrollOssPath; this.payrollOssPath = payrollOssPath;
} }
public String getVideoOssPath() {
return videoOssPath;
}
public void setVideoOssPath(String videoOssPath) {
this.videoOssPath = videoOssPath;
}
public String getApproveStatus() { public String getApproveStatus() {
return approveStatus; return approveStatus;
} }
......
...@@ -253,6 +253,11 @@ public class AclPractitioner { ...@@ -253,6 +253,11 @@ public class AclPractitioner {
private String canSeeYdCollege; private String canSeeYdCollege;
/** /**
* cffp角色代码,通过,分割
*/
private String cffpRoleCode;
/**
* 详细地址 * 详细地址
*/ */
private String detailAddress; private String detailAddress;
......
...@@ -165,6 +165,11 @@ public class AclPractitionerHiringBasicInfo { ...@@ -165,6 +165,11 @@ public class AclPractitionerHiringBasicInfo {
private String personalSignOssPath; private String personalSignOssPath;
/** /**
* 视频URl
*/
private String videoOssPath;
/**
* 0=No, 1=Yes * 0=No, 1=Yes
*/ */
private Integer isActive; private Integer isActive;
......
package com.yd.dal.entity.practitioner.opportunity; package com.yd.dal.entity.practitioner.opportunity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
import java.util.Date;
@Data @Data
public class OwnOpportunityInfo { public class OwnOpportunityInfo {
private Long opportunityId; private Long opportunityId;
...@@ -17,5 +20,6 @@ public class OwnOpportunityInfo { ...@@ -17,5 +20,6 @@ public class OwnOpportunityInfo {
private Long expertType;//0.经纪人指派 1.专家指派 private Long expertType;//0.经纪人指派 1.专家指派
private Long sfpMainId; private Long sfpMainId;
private String wechatNo; private String wechatNo;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
private Date returnVisitTime;
} }
...@@ -55,6 +55,7 @@ public class AgAclLifePractitionerSalary implements Serializable { ...@@ -55,6 +55,7 @@ public class AgAclLifePractitionerSalary implements Serializable {
* 0,预览薪资单,1,经纪人查看薪资单 * 0,预览薪资单,1,经纪人查看薪资单
*/ */
private Integer isActive; private Integer isActive;
private Long payoutBatchId;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -149,6 +150,7 @@ public class AgAclLifePractitionerSalary implements Serializable { ...@@ -149,6 +150,7 @@ public class AgAclLifePractitionerSalary implements Serializable {
&& (this.getPayableAmount() == null ? other.getPayableAmount() == null : this.getPayableAmount().equals(other.getPayableAmount())) && (this.getPayableAmount() == null ? other.getPayableAmount() == null : this.getPayableAmount().equals(other.getPayableAmount()))
&& (this.getTaxoutAmount() == null ? other.getTaxoutAmount() == null : this.getTaxoutAmount().equals(other.getTaxoutAmount())) && (this.getTaxoutAmount() == null ? other.getTaxoutAmount() == null : this.getTaxoutAmount().equals(other.getTaxoutAmount()))
&& (this.getNetAmount() == null ? other.getNetAmount() == null : this.getNetAmount().equals(other.getNetAmount())) && (this.getNetAmount() == null ? other.getNetAmount() == null : this.getNetAmount().equals(other.getNetAmount()))
&& (this.getPayoutBatchId() == null ? other.getPayoutBatchId() == null : this.getPayoutBatchId().equals(other.getPayoutBatchId()))
&& (this.getPdfOssPath() == null ? other.getPdfOssPath() == null : this.getPdfOssPath().equals(other.getPdfOssPath())); && (this.getPdfOssPath() == null ? other.getPdfOssPath() == null : this.getPdfOssPath().equals(other.getPdfOssPath()));
} }
...@@ -163,6 +165,7 @@ public class AgAclLifePractitionerSalary implements Serializable { ...@@ -163,6 +165,7 @@ public class AgAclLifePractitionerSalary implements Serializable {
result = prime * result + ((getPayableAmount() == null) ? 0 : getPayableAmount().hashCode()); result = prime * result + ((getPayableAmount() == null) ? 0 : getPayableAmount().hashCode());
result = prime * result + ((getTaxoutAmount() == null) ? 0 : getTaxoutAmount().hashCode()); result = prime * result + ((getTaxoutAmount() == null) ? 0 : getTaxoutAmount().hashCode());
result = prime * result + ((getNetAmount() == null) ? 0 : getNetAmount().hashCode()); result = prime * result + ((getNetAmount() == null) ? 0 : getNetAmount().hashCode());
result = prime * result + ((getPayoutBatchId() == null) ? 0 : getPayoutBatchId().hashCode());
result = prime * result + ((getPdfOssPath() == null) ? 0 : getPdfOssPath().hashCode()); result = prime * result + ((getPdfOssPath() == null) ? 0 : getPdfOssPath().hashCode());
return result; return result;
} }
...@@ -193,4 +196,13 @@ public class AgAclLifePractitionerSalary implements Serializable { ...@@ -193,4 +196,13 @@ public class AgAclLifePractitionerSalary implements Serializable {
public void setIsBasic(String isBasic) { public void setIsBasic(String isBasic) {
this.isBasic = isBasic; this.isBasic = isBasic;
} }
public Long getPayoutBatchId() {
return payoutBatchId;
}
public void setPayoutBatchId(Long payoutBatchId) {
this.payoutBatchId = payoutBatchId;
}
} }
...@@ -42,4 +42,6 @@ public interface AclCustomerFortuneMapper { ...@@ -42,4 +42,6 @@ public interface AclCustomerFortuneMapper {
List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId); List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId);
List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId); List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId);
List<AclCustomerFortune> queryByPractitionerIdAndPayoutBatchId(AclCustomerFortune aclCustomerFortune);
} }
\ No newline at end of file
...@@ -24,4 +24,9 @@ public interface AgAclLifePractitionerSalaryMapper { ...@@ -24,4 +24,9 @@ public interface AgAclLifePractitionerSalaryMapper {
@Param("isActive") Integer isActive, @Param("isHistory") String isHistory); @Param("isActive") Integer isActive, @Param("isHistory") String isHistory);
List<AgAclLifePractitionerSalary> queryByRecord(AgAclLifePractitionerSalary lifePractitionerSalary); List<AgAclLifePractitionerSalary> queryByRecord(AgAclLifePractitionerSalary lifePractitionerSalary);
int deleteByPractitionerIdAndYearMonth(AgAclLifePractitionerSalary lifePractitionerSalary);
int deleteSalaryTaxByPractitionerIdAndYearMonth(AgAclLifePractitionerSalary lifePractitionerSalary);
} }
...@@ -33,4 +33,7 @@ public interface AclCustomerFortuneDALService { ...@@ -33,4 +33,7 @@ public interface AclCustomerFortuneDALService {
List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId); List<AclCustomerFortune> queryLifeFortuneListByOrderId(Long orderId);
List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId); List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId);
List<AclCustomerFortune> queryByPractitionerIdAndPayoutBatchId(AclCustomerFortune aclCustomerFortune);
} }
...@@ -13,4 +13,6 @@ public interface AclCustomerFortunePayoutBatchDALService { ...@@ -13,4 +13,6 @@ public interface AclCustomerFortunePayoutBatchDALService {
void save(AclCustomerFortunePayoutBatch customerFortunePayoutBatch); void save(AclCustomerFortunePayoutBatch customerFortunePayoutBatch);
List<String> findAll(); List<String> findAll();
AclCustomerFortunePayoutBatch selectByPrimaryKey(Long id);
} }
...@@ -68,4 +68,9 @@ public class AclCustomerFortuneDALServiceImpl implements AclCustomerFortuneDALSe ...@@ -68,4 +68,9 @@ public class AclCustomerFortuneDALServiceImpl implements AclCustomerFortuneDALSe
public List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId) { public List<AclCustomerFortune> queryLifeFortuneListByCommissionId(Long commissionId) {
return aclCustomerFortuneMapper.queryLifeFortuneListByCommissionId(commissionId); return aclCustomerFortuneMapper.queryLifeFortuneListByCommissionId(commissionId);
} }
@Override
public List<AclCustomerFortune> queryByPractitionerIdAndPayoutBatchId(AclCustomerFortune aclCustomerFortune) {
return aclCustomerFortuneMapper.queryByPractitionerIdAndPayoutBatchId(aclCustomerFortune);
}
} }
...@@ -31,4 +31,10 @@ public class AclCustomerFortunePayoutBatchDALServiceImpl implements AclCustomerF ...@@ -31,4 +31,10 @@ public class AclCustomerFortunePayoutBatchDALServiceImpl implements AclCustomerF
public List<String> findAll() { public List<String> findAll() {
return customerFortunePayoutBatchMapper.selectAll(); return customerFortunePayoutBatchMapper.selectAll();
} }
@Override
public AclCustomerFortunePayoutBatch selectByPrimaryKey(Long id) {
return customerFortunePayoutBatchMapper.selectByPrimaryKey(id);
}
} }
package com.yd.dal.service.marketing.Impl; package com.yd.dal.service.marketing.Impl;
import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.apache.commons.beanutils.BeanPropertyValueEqualsPredicate;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;
import com.github.pagehelper.Page; import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import com.yd.dal.entity.marketing.MktAnnouncement; import com.yd.dal.entity.marketing.MktAnnouncement;
import com.yd.dal.mapper.marketing.MktAnnouncementMapper; import com.yd.dal.mapper.marketing.MktAnnouncementMapper;
import com.yd.dal.service.marketing.MktAnnouncementDALService; import com.yd.dal.service.marketing.MktAnnouncementDALService;
import org.apache.commons.beanutils.BeanPropertyValueEqualsPredicate;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@Service("mktAnnouncementDALService") @Service("mktAnnouncementDALService")
public class MktAnnouncementDALServiceImpl implements MktAnnouncementDALService { public class MktAnnouncementDALServiceImpl implements MktAnnouncementDALService {
...@@ -32,7 +30,7 @@ public class MktAnnouncementDALServiceImpl implements MktAnnouncementDALService ...@@ -32,7 +30,7 @@ public class MktAnnouncementDALServiceImpl implements MktAnnouncementDALService
MktAnnouncement info = new MktAnnouncement(); MktAnnouncement info = new MktAnnouncement();
info.setAnnouncementType(announcementType); info.setAnnouncementType(announcementType);
info.setIsActive(1); info.setIsActive(1);
PageHelper.orderBy("seq desc , created_at desc"); PageHelper.orderBy("seq asc , created_at desc");
Page<MktAnnouncement> mktAnnouncementPageInfo = mktAnnouncementMapper.selectByObj(info); Page<MktAnnouncement> mktAnnouncementPageInfo = mktAnnouncementMapper.selectByObj(info);
PageInfo<MktAnnouncement> pageInfo = new PageInfo<>(mktAnnouncementPageInfo); PageInfo<MktAnnouncement> pageInfo = new PageInfo<>(mktAnnouncementPageInfo);
List<MktAnnouncement> list = pageInfo.getList(); List<MktAnnouncement> list = pageInfo.getList();
......
...@@ -34,6 +34,8 @@ public class SearchStaffSalaryDetailsResponseBody { ...@@ -34,6 +34,8 @@ public class SearchStaffSalaryDetailsResponseBody {
private List<RecommendSystemCommission> RecommendSystemCommissionList; private List<RecommendSystemCommission> RecommendSystemCommissionList;
private List<RecommendSystemCommission> RecommendSystemCommissionC16List;
private List<FirstYearPerformanceCommission> FirstYearPerformanceCommissionList; private List<FirstYearPerformanceCommission> FirstYearPerformanceCommissionList;
private List<RenewalYearPerformanceCommission> RenewalYearPerformanceCommissionList;//续年度绩效奖金 private List<RenewalYearPerformanceCommission> RenewalYearPerformanceCommissionList;//续年度绩效奖金
...@@ -154,6 +156,14 @@ public class SearchStaffSalaryDetailsResponseBody { ...@@ -154,6 +156,14 @@ public class SearchStaffSalaryDetailsResponseBody {
RecommendSystemCommissionList = recommendSystemCommissionList; RecommendSystemCommissionList = recommendSystemCommissionList;
} }
public List<RecommendSystemCommission> getRecommendSystemCommissionC16List() {
return RecommendSystemCommissionC16List;
}
@JsonProperty("RecommendSystemCommissionC16List")
public void setRecommendSystemCommissionC16List(List<RecommendSystemCommission> recommendSystemCommissionC16List) {
RecommendSystemCommissionC16List = recommendSystemCommissionC16List;
}
public List<FirstYearPerformanceCommission> getFirstYearPerformanceCommissionList() { public List<FirstYearPerformanceCommission> getFirstYearPerformanceCommissionList() {
return FirstYearPerformanceCommissionList; return FirstYearPerformanceCommissionList;
} }
......
...@@ -18,16 +18,17 @@ import java.util.Map; ...@@ -18,16 +18,17 @@ import java.util.Map;
public class HttpUtil { public class HttpUtil {
public static String defaultEncoding= "utf-8"; public static String defaultEncoding= "utf-8";
/** /**
* 通过url取得文件返回InputStream类型数据 * 通过url取得文件返回InputStream类型数据
* *
*/ */
public static Map<String,Object> getInput(String path) { public static Map<String,Object> getInput(String path) {
URL url = null; URL url = null;
InputStream is =null; InputStream is = null;
boolean success=true; boolean success = true;
String message="下载文件成功"; String message = "下载文件成功";
Map<String,Object> resp=new HashMap<>(); Map<String,Object> resp = new HashMap<>();
try { try {
url = new URL(path); url = new URL(path);
...@@ -36,14 +37,15 @@ public class HttpUtil { ...@@ -36,14 +37,15 @@ public class HttpUtil {
conn.connect(); conn.connect();
is = conn.getInputStream(); //得到网络返回的输入流 is = conn.getInputStream(); //得到网络返回的输入流
} catch (IOException e) { } catch (IOException e) {
success=false; success = false;
message="下载文件失败"; message = "下载文件失败";
} finally { } finally {
resp.put("is",is); resp.put("is", is);
resp.put("message",message); resp.put("message", message);
resp.put("success",success); resp.put("success", success);
return resp;
} }
return resp;
} }
/** /**
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<result column="bankAccountId" jdbcType="VARCHAR" property="bankAccountId"/> <result column="bankAccountId" jdbcType="VARCHAR" property="bankAccountId"/>
<result column="personalSignOssPath" jdbcType="VARCHAR" property="personalSignOssPath"/> <result column="personalSignOssPath" jdbcType="VARCHAR" property="personalSignOssPath"/>
<result column="payrollOssPath" jdbcType="VARCHAR" property="payrollOssPath" /> <result column="payrollOssPath" jdbcType="VARCHAR" property="payrollOssPath" />
<result column="videoOssPath" jdbcType="VARCHAR" property="videoOssPath" />
<result column="approveStatus" jdbcType="VARCHAR" property="approveStatus" /> <result column="approveStatus" jdbcType="VARCHAR" property="approveStatus" />
</resultMap> </resultMap>
<select id="findPractitionerHiringBasicInfo" resultMap="practitionerHiringBasicInfo"> <select id="findPractitionerHiringBasicInfo" resultMap="practitionerHiringBasicInfo">
...@@ -55,7 +56,8 @@ ...@@ -55,7 +56,8 @@
b.bank_account_opening bankAccountOpening, b.bank_account_opening bankAccountOpening,
b.bank_account_id bankAccountId, b.bank_account_id bankAccountId,
b.payroll_oss_path payrollOssPath, b.payroll_oss_path payrollOssPath,
b.personal_sign_oss_path personalSignOssPath b.personal_sign_oss_path personalSignOssPath,
b.video_oss_path videoOssPath
from ag_acl_practitioner_hiring_basic_info b from ag_acl_practitioner_hiring_basic_info b
left join ag_acl_practitioner p on b.invitee_practitioner_id = p.id left join ag_acl_practitioner p on b.invitee_practitioner_id = p.id
where b.id = #{hiringBasicInfoId,jdbcType=BIGINT} where b.id = #{hiringBasicInfoId,jdbcType=BIGINT}
......
...@@ -1057,4 +1057,13 @@ ...@@ -1057,4 +1057,13 @@
where 1=1 where 1=1
and f.commission_id = #{commissionId,jdbcType=BIGINT} and f.commission_id = #{commissionId,jdbcType=BIGINT}
</select> </select>
<select id="queryByPractitionerIdAndPayoutBatchId" resultMap="BaseResultMap" parameterType="com.yd.dal.entity.customer.AclCustomerFortune">
select
<include refid="Base_Column_List" />
from ag_acl_customer_fortune f
where f.commission_payout_status = 2 and f.practitioner_id = #{practitionerId,jdbcType=BIGINT}
and f.payout_batch_id = #{payoutBatchId,jdbcType=BIGINT}
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -208,6 +208,6 @@ ...@@ -208,6 +208,6 @@
payout_yearmonth payout_yearmonth
from ag_acl_customer_fortune_payout_batch from ag_acl_customer_fortune_payout_batch
where payout_yearmonth is not null where payout_yearmonth is not null
order by payout_yearmonth order by payout_yearmonth desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -549,7 +549,8 @@ ...@@ -549,7 +549,8 @@
#{item} #{item}
</foreach> </foreach>
and w.is_paid != 1 and w.is_paid != 1
and (f.payout_batch_id = #{payoutBatchId,jdbcType=BIGINT} or w.withdraw_amount = 0) and f.payout_batch_id = #{payoutBatchId,jdbcType=BIGINT}
<!-- and (f.payout_batch_id = #{payoutBatchId,jdbcType=BIGINT} or w.withdraw_amount = 0) -->
group by w.customer_id group by w.customer_id
</select> </select>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
<result column="bank_account_opening" jdbcType="VARCHAR" property="bankAccountOpening" /> <result column="bank_account_opening" jdbcType="VARCHAR" property="bankAccountOpening" />
<result column="bank_account_id" jdbcType="VARCHAR" property="bankAccountId" /> <result column="bank_account_id" jdbcType="VARCHAR" property="bankAccountId" />
<result column="personal_sign_oss_path" jdbcType="VARCHAR" property="personalSignOssPath" /> <result column="personal_sign_oss_path" jdbcType="VARCHAR" property="personalSignOssPath" />
<result column="video_oss_path" jdbcType="VARCHAR" property="videoOssPath" />
<result column="is_active" jdbcType="INTEGER" property="isActive" /> <result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" /> <result column="created_by" jdbcType="BIGINT" property="createdBy" />
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id, id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, political_outlook, resident_address, wechat_id, wechat_QRcode_oss_path, email, personer_picture_oss_path, payroll_oss_path, id_front_page_oss_path, city_name, political_outlook, resident_address, wechat_id, wechat_QRcode_oss_path, email, personer_picture_oss_path, payroll_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_code, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path, id_back_page_oss_path, last_graduate_code, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at, bank_account_opening, bank_account_id, personal_sign_oss_path,video_oss_path, is_active, created_at,
created_by, updated_at, updated_by, approve_status created_by, updated_at, updated_by, approve_status
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
...@@ -73,7 +74,7 @@ ...@@ -73,7 +74,7 @@
id_front_page_oss_path, id_back_page_oss_path, id_front_page_oss_path, id_back_page_oss_path,
last_graduate_grade, last_graduate_school, last_graduate_grade, last_graduate_school,
last_graduate_certification_oss_path, bank_account_opening, last_graduate_certification_oss_path, bank_account_opening,
bank_account_id, personal_sign_oss_path, is_active, bank_account_id, personal_sign_oss_path,video_oss_path, is_active,
created_at, created_by, updated_at, created_at, created_by, updated_at,
updated_by) updated_by)
values (#{practitionerPotentialId,jdbcType=BIGINT}, #{inviteePractitionerId,jdbcType=BIGINT}, values (#{practitionerPotentialId,jdbcType=BIGINT}, #{inviteePractitionerId,jdbcType=BIGINT},
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
#{idFrontPageOssPath,jdbcType=VARCHAR}, #{idBackPageOssPath,jdbcType=VARCHAR}, #{idFrontPageOssPath,jdbcType=VARCHAR}, #{idBackPageOssPath,jdbcType=VARCHAR},
#{lastGraduateGrade,jdbcType=VARCHAR}, #{lastGraduateSchool,jdbcType=VARCHAR}, #{lastGraduateGrade,jdbcType=VARCHAR}, #{lastGraduateSchool,jdbcType=VARCHAR},
#{lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{bankAccountOpening,jdbcType=VARCHAR}, #{lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{bankAccountOpening,jdbcType=VARCHAR},
#{bankAccountId,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{bankAccountId,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR}, #{videoOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT}) #{updatedBy,jdbcType=BIGINT})
</insert> </insert>
...@@ -168,6 +169,9 @@ ...@@ -168,6 +169,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
personal_sign_oss_path, personal_sign_oss_path,
</if> </if>
<if test="videoOssPath != null">
video_oss_path,
</if>
<if test="isActive != null"> <if test="isActive != null">
is_active, is_active,
</if> </if>
...@@ -260,6 +264,9 @@ ...@@ -260,6 +264,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
#{personalSignOssPath,jdbcType=VARCHAR}, #{personalSignOssPath,jdbcType=VARCHAR},
</if> </if>
<if test="videoOssPath != null">
#{videoOssPath,jdbcType=VARCHAR},
</if>
<if test="isActive != null"> <if test="isActive != null">
#{isActive,jdbcType=INTEGER}, #{isActive,jdbcType=INTEGER},
</if> </if>
...@@ -368,6 +375,9 @@ ...@@ -368,6 +375,9 @@
<if test="personalSignOssPath != null"> <if test="personalSignOssPath != null">
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR}, personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
</if> </if>
<if test="videoOssPath != null">
video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
</if>
<if test="approveStatus != null"> <if test="approveStatus != null">
approve_status = #{approveStatus,jdbcType=VARCHAR}, approve_status = #{approveStatus,jdbcType=VARCHAR},
</if> </if>
...@@ -419,6 +429,7 @@ ...@@ -419,6 +429,7 @@
bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR}, bank_account_opening = #{bankAccountOpening,jdbcType=VARCHAR},
bank_account_id = #{bankAccountId,jdbcType=VARCHAR}, bank_account_id = #{bankAccountId,jdbcType=VARCHAR},
personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR}, personal_sign_oss_path = #{personalSignOssPath,jdbcType=VARCHAR},
video_oss_path = #{videoOssPath,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER}, is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT}, created_by = #{createdBy,jdbcType=BIGINT},
...@@ -555,6 +566,11 @@ ...@@ -555,6 +566,11 @@
when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR} when id = #{item.id,jdbcType=BIGINT} then #{item.personalSignOssPath,jdbcType=VARCHAR}
</foreach> </foreach>
</trim> </trim>
<trim prefix="video_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.videoOssPath,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,"> <trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER} when id = #{item.id,jdbcType=BIGINT} then #{item.isActive,jdbcType=INTEGER}
...@@ -765,6 +781,13 @@ ...@@ -765,6 +781,13 @@
</if> </if>
</foreach> </foreach>
</trim> </trim>
<trim prefix="video_oss_path = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.videoOssPath != null">
when id = #{item.id,jdbcType=BIGINT} then #{item.videoOssPath,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="is_active = case" suffix="end,"> <trim prefix="is_active = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.isActive != null"> <if test="item.isActive != null">
...@@ -813,7 +836,7 @@ ...@@ -813,7 +836,7 @@
id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id, id_type, id_no, gender, practitioner_birthdate, province_id, province_name, city_id,
city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path, city_name, resident_address, wechat_id, email, personer_picture_oss_path, id_front_page_oss_path,
id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path, id_back_page_oss_path, last_graduate_grade, last_graduate_school, last_graduate_certification_oss_path,
bank_account_opening, bank_account_id, personal_sign_oss_path, is_active, created_at, bank_account_opening, bank_account_id, personal_sign_oss_path, video_oss_path, is_active, created_at,
created_by, updated_at, updated_by) created_by, updated_at, updated_by)
values values
<foreach collection="list" item="item" separator=","> <foreach collection="list" item="item" separator=",">
...@@ -827,7 +850,7 @@ ...@@ -827,7 +850,7 @@
#{item.idFrontPageOssPath,jdbcType=VARCHAR}, #{item.idBackPageOssPath,jdbcType=VARCHAR}, #{item.idFrontPageOssPath,jdbcType=VARCHAR}, #{item.idBackPageOssPath,jdbcType=VARCHAR},
#{item.lastGraduateGrade,jdbcType=VARCHAR}, #{item.lastGraduateSchool,jdbcType=VARCHAR}, #{item.lastGraduateGrade,jdbcType=VARCHAR}, #{item.lastGraduateSchool,jdbcType=VARCHAR},
#{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{item.bankAccountOpening,jdbcType=VARCHAR}, #{item.lastGraduateCertificationOssPath,jdbcType=VARCHAR}, #{item.bankAccountOpening,jdbcType=VARCHAR},
#{item.bankAccountId,jdbcType=VARCHAR}, #{item.personalSignOssPath,jdbcType=VARCHAR}, #{item.bankAccountId,jdbcType=VARCHAR}, #{item.personalSignOssPath,jdbcType=VARCHAR}, #{item.videoOssPath,jdbcType=VARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT}, #{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}) #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT})
</foreach> </foreach>
......
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
<result column="can_login_dyd" jdbcType="BIGINT" property="canLoginDyd" /> <result column="can_login_dyd" jdbcType="BIGINT" property="canLoginDyd" />
<result column="can_see_salary_list" jdbcType="BIGINT" property="canSeeSalaryList" /> <result column="can_see_salary_list" jdbcType="BIGINT" property="canSeeSalaryList" />
<result column="can_see_yd_college" jdbcType="VARCHAR" property="canSeeYdCollege" /> <result column="can_see_yd_college" jdbcType="VARCHAR" property="canSeeYdCollege" />
<result column="cffp_role_code" jdbcType="VARCHAR" property="cffpRoleCode" />
<result column="raise_id" jdbcType="BIGINT" property="raiseId" /> <result column="raise_id" jdbcType="BIGINT" property="raiseId" />
<result column="s1_id" jdbcType="BIGINT" property="s1Id" /> <result column="s1_id" jdbcType="BIGINT" property="s1Id" />
...@@ -69,7 +70,7 @@ ...@@ -69,7 +70,7 @@
province_id, province_name, city_id, city_name, cert_list, bio_intro, bio_intro_two, wechat_id, province_id, province_name, city_id, city_name, cert_list, bio_intro, bio_intro_two, wechat_id,
qq_id, is_profile_show, is_name_show, is_mobile_show, education_level, graduated_university, qq_id, is_profile_show, is_name_show, is_mobile_show, education_level, graduated_university,
mentor_id,in_mentor_id, introducer_id, gender, contract_oss_path, hiring_basic_info_id, can_login_dyd, mentor_id,in_mentor_id, introducer_id, gender, contract_oss_path, hiring_basic_info_id, can_login_dyd,
can_see_salary_list,can_see_yd_college,raise_id,s1_id,s2_id,s3_id,email,email_is_active can_see_salary_list,can_see_yd_college,cffp_role_code,raise_id,s1_id,s2_id,s3_id,email,email_is_active
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
<!--@mbg.generated--> <!--@mbg.generated-->
...@@ -1518,6 +1519,7 @@ ...@@ -1518,6 +1519,7 @@
<result column="expertType" property="expertType" /> <result column="expertType" property="expertType" />
<result column="sfpMainId" property="sfpMainId" /> <result column="sfpMainId" property="sfpMainId" />
<result column="wechatNo" property="wechatNo" /> <result column="wechatNo" property="wechatNo" />
<result column="returnVisitTime" property="returnVisitTime" />
</resultMap> </resultMap>
<select id="ownOpportunityQuery" resultMap="opportunityQuery"> <select id="ownOpportunityQuery" resultMap="opportunityQuery">
SELECT SELECT
...@@ -1534,7 +1536,8 @@ ...@@ -1534,7 +1536,8 @@
p.remark remark, p.remark remark,
p.appointment_record_id appointmentRecordId, p.appointment_record_id appointmentRecordId,
p.sfp_main_id sfpMainId, p.sfp_main_id sfpMainId,
c.wechat_no wechatNo c.wechat_no wechatNo,
(SELECT t.created_at from ag_mkt_leads_assigned_track t LEFT JOIN ag_md_drop_options op ON op.id = t.md_drop_option_id where t.leads_assigned_id = a.id and op.drop_option_code='returnvisit' ORDER BY t.created_at DESC LIMIT 1) returnVisitTime
FROM FROM
ag_mkt_leads_assigneds a ag_mkt_leads_assigneds a
left join ag_mkt_leads_expert_request r on r.customer_id = a.customer_id and r.is_active =1 left join ag_mkt_leads_expert_request r on r.customer_id = a.customer_id and r.is_active =1
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
and and
announcement_at &lt;= #{date} announcement_at &lt;= #{date}
and seq != 0 and seq != 0
order by seq desc , announcement_at desc order by seq asc , announcement_at desc
</select> </select>
<select id="findByIsActiveAndAnnouncementAtBeforeTop" resultMap="BaseResultMap"> <select id="findByIsActiveAndAnnouncementAtBeforeTop" resultMap="BaseResultMap">
select select
...@@ -225,6 +225,6 @@ ...@@ -225,6 +225,6 @@
and and
announcement_at &lt;= #{date} announcement_at &lt;= #{date}
and seq = 0 and seq = 0
order by seq desc , announcement_at desc order by seq asc , announcement_at desc
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -167,4 +167,18 @@ ...@@ -167,4 +167,18 @@
and is_active = #{isActive,jdbcType=VARCHAR} and is_active = #{isActive,jdbcType=VARCHAR}
</if> </if>
</select> </select>
<delete id="deleteByPractitionerIdAndYearMonth" parameterType="com.yd.dal.entity.practitioner.payscale.AgAclLifePractitionerSalary">
delete from ag_acl_life_practitioner_salary
where is_basic = 1 and is_active = 0 and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and `year_month` = #{yearMonth,jdbcType=VARCHAR}
</delete>
<delete id="deleteSalaryTaxByPractitionerIdAndYearMonth" parameterType="com.yd.dal.entity.practitioner.payscale.AgAclLifePractitionerSalary">
delete from ag_acl_life_practitioner_salary_tax
where is_active = 1 and practitioner_id = #{practitionerId,jdbcType=BIGINT}
and salary_year_month = #{yearMonth,jdbcType=VARCHAR}
</delete>
</mapper> </mapper>
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