app专用接口编写
This commit is contained in:
parent
b71e854c27
commit
ab672a0d69
|
|
@ -280,6 +280,12 @@
|
|||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.7.17</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.22</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
|
|||
|
|
@ -290,4 +290,564 @@ public class RegistrationBean {
|
|||
* 第几条
|
||||
*/
|
||||
private String type;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getWorkerId() {
|
||||
return workerId;
|
||||
}
|
||||
|
||||
public void setWorkerId(String workerId) {
|
||||
this.workerId = workerId;
|
||||
}
|
||||
|
||||
public String getFacePath() {
|
||||
return facePath;
|
||||
}
|
||||
|
||||
public void setFacePath(String facePath) {
|
||||
this.facePath = facePath;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String getPosition() {
|
||||
return position;
|
||||
}
|
||||
|
||||
public void setPosition(String position) {
|
||||
this.position = position;
|
||||
}
|
||||
|
||||
public String getBirthday() {
|
||||
return birthday;
|
||||
}
|
||||
|
||||
public void setBirthday(String birthday) {
|
||||
this.birthday = birthday;
|
||||
}
|
||||
|
||||
public String getPhone() {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
public String getIdNumber() {
|
||||
return idNumber;
|
||||
}
|
||||
|
||||
public void setIdNumber(String idNumber) {
|
||||
this.idNumber = idNumber;
|
||||
}
|
||||
|
||||
public String getPlace() {
|
||||
return place;
|
||||
}
|
||||
|
||||
public void setPlace(String place) {
|
||||
this.place = place;
|
||||
}
|
||||
|
||||
public String getWriteTime() {
|
||||
return writeTime;
|
||||
}
|
||||
|
||||
public void setWriteTime(String writeTime) {
|
||||
this.writeTime = writeTime;
|
||||
}
|
||||
|
||||
public String getMail() {
|
||||
return mail;
|
||||
}
|
||||
|
||||
public void setMail(String mail) {
|
||||
this.mail = mail;
|
||||
}
|
||||
|
||||
public String getZzmm() {
|
||||
return zzmm;
|
||||
}
|
||||
|
||||
public void setZzmm(String zzmm) {
|
||||
this.zzmm = zzmm;
|
||||
}
|
||||
|
||||
public String getHyzk() {
|
||||
return hyzk;
|
||||
}
|
||||
|
||||
public void setHyzk(String hyzk) {
|
||||
this.hyzk = hyzk;
|
||||
}
|
||||
|
||||
public String getNation() {
|
||||
return nation;
|
||||
}
|
||||
|
||||
public void setNation(String nation) {
|
||||
this.nation = nation;
|
||||
}
|
||||
|
||||
public String getHealth() {
|
||||
return health;
|
||||
}
|
||||
|
||||
public void setHealth(String health) {
|
||||
this.health = health;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public String getSbCard() {
|
||||
return sbCard;
|
||||
}
|
||||
|
||||
public void setSbCard(String sbCard) {
|
||||
this.sbCard = sbCard;
|
||||
}
|
||||
|
||||
public String getYbCard() {
|
||||
return ybCard;
|
||||
}
|
||||
|
||||
public void setYbCard(String ybCard) {
|
||||
this.ybCard = ybCard;
|
||||
}
|
||||
|
||||
public String getHkxz() {
|
||||
return hkxz;
|
||||
}
|
||||
|
||||
public void setHkxz(String hkxz) {
|
||||
this.hkxz = hkxz;
|
||||
}
|
||||
|
||||
public String getHkxzName() {
|
||||
return hkxzName;
|
||||
}
|
||||
|
||||
public void setHkxzName(String hkxzName) {
|
||||
this.hkxzName = hkxzName;
|
||||
}
|
||||
|
||||
public String getHkdz() {
|
||||
return hkdz;
|
||||
}
|
||||
|
||||
public void setHkdz(String hkdz) {
|
||||
this.hkdz = hkdz;
|
||||
}
|
||||
|
||||
public String getGzTimeOne() {
|
||||
return gzTimeOne;
|
||||
}
|
||||
|
||||
public void setGzTimeOne(String gzTimeOne) {
|
||||
this.gzTimeOne = gzTimeOne;
|
||||
}
|
||||
|
||||
public String getGzUnitOne() {
|
||||
return gzUnitOne;
|
||||
}
|
||||
|
||||
public void setGzUnitOne(String gzUnitOne) {
|
||||
this.gzUnitOne = gzUnitOne;
|
||||
}
|
||||
|
||||
public String getGzPositionOne() {
|
||||
return gzPositionOne;
|
||||
}
|
||||
|
||||
public void setGzPositionOne(String gzPositionOne) {
|
||||
this.gzPositionOne = gzPositionOne;
|
||||
}
|
||||
|
||||
public String getGzTimeTwo() {
|
||||
return gzTimeTwo;
|
||||
}
|
||||
|
||||
public void setGzTimeTwo(String gzTimeTwo) {
|
||||
this.gzTimeTwo = gzTimeTwo;
|
||||
}
|
||||
|
||||
public String getGzUnitTwo() {
|
||||
return gzUnitTwo;
|
||||
}
|
||||
|
||||
public void setGzUnitTwo(String gzUnitTwo) {
|
||||
this.gzUnitTwo = gzUnitTwo;
|
||||
}
|
||||
|
||||
public String getGzPositionTwo() {
|
||||
return gzPositionTwo;
|
||||
}
|
||||
|
||||
public void setGzPositionTwo(String gzPositionTwo) {
|
||||
this.gzPositionTwo = gzPositionTwo;
|
||||
}
|
||||
|
||||
public String getGzTimeThree() {
|
||||
return gzTimeThree;
|
||||
}
|
||||
|
||||
public void setGzTimeThree(String gzTimeThree) {
|
||||
this.gzTimeThree = gzTimeThree;
|
||||
}
|
||||
|
||||
public String getGzUnitThree() {
|
||||
return gzUnitThree;
|
||||
}
|
||||
|
||||
public void setGzUnitThree(String gzUnitThree) {
|
||||
this.gzUnitThree = gzUnitThree;
|
||||
}
|
||||
|
||||
public String getGzPositionThree() {
|
||||
return gzPositionThree;
|
||||
}
|
||||
|
||||
public void setGzPositionThree(String gzPositionThree) {
|
||||
this.gzPositionThree = gzPositionThree;
|
||||
}
|
||||
|
||||
public String getJyTimeOne() {
|
||||
return jyTimeOne;
|
||||
}
|
||||
|
||||
public void setJyTimeOne(String jyTimeOne) {
|
||||
this.jyTimeOne = jyTimeOne;
|
||||
}
|
||||
|
||||
public String getJySchoolOne() {
|
||||
return jySchoolOne;
|
||||
}
|
||||
|
||||
public void setJySchoolOne(String jySchoolOne) {
|
||||
this.jySchoolOne = jySchoolOne;
|
||||
}
|
||||
|
||||
public String getJySpecialityOne() {
|
||||
return jySpecialityOne;
|
||||
}
|
||||
|
||||
public void setJySpecialityOne(String jySpecialityOne) {
|
||||
this.jySpecialityOne = jySpecialityOne;
|
||||
}
|
||||
|
||||
public String getJyTimeTwo() {
|
||||
return jyTimeTwo;
|
||||
}
|
||||
|
||||
public void setJyTimeTwo(String jyTimeTwo) {
|
||||
this.jyTimeTwo = jyTimeTwo;
|
||||
}
|
||||
|
||||
public String getJySchoolTwo() {
|
||||
return jySchoolTwo;
|
||||
}
|
||||
|
||||
public void setJySchoolTwo(String jySchoolTwo) {
|
||||
this.jySchoolTwo = jySchoolTwo;
|
||||
}
|
||||
|
||||
public String getJySpecialityTwo() {
|
||||
return jySpecialityTwo;
|
||||
}
|
||||
|
||||
public void setJySpecialityTwo(String jySpecialityTwo) {
|
||||
this.jySpecialityTwo = jySpecialityTwo;
|
||||
}
|
||||
|
||||
public String getJyTimeThree() {
|
||||
return jyTimeThree;
|
||||
}
|
||||
|
||||
public void setJyTimeThree(String jyTimeThree) {
|
||||
this.jyTimeThree = jyTimeThree;
|
||||
}
|
||||
|
||||
public String getJySchoolThree() {
|
||||
return jySchoolThree;
|
||||
}
|
||||
|
||||
public void setJySchoolThree(String jySchoolThree) {
|
||||
this.jySchoolThree = jySchoolThree;
|
||||
}
|
||||
|
||||
public String getJySpecialityThree() {
|
||||
return jySpecialityThree;
|
||||
}
|
||||
|
||||
public void setJySpecialityThree(String jySpecialityThree) {
|
||||
this.jySpecialityThree = jySpecialityThree;
|
||||
}
|
||||
|
||||
public String getZsName() {
|
||||
return zsName;
|
||||
}
|
||||
|
||||
public void setZsName(String zsName) {
|
||||
this.zsName = zsName;
|
||||
}
|
||||
|
||||
public String getZsLevel() {
|
||||
return zsLevel;
|
||||
}
|
||||
|
||||
public void setZsLevel(String zsLevel) {
|
||||
this.zsLevel = zsLevel;
|
||||
}
|
||||
|
||||
public String getGiveTime() {
|
||||
return giveTime;
|
||||
}
|
||||
|
||||
public void setGiveTime(String giveTime) {
|
||||
this.giveTime = giveTime;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getJtNameOne() {
|
||||
return jtNameOne;
|
||||
}
|
||||
|
||||
public void setJtNameOne(String jtNameOne) {
|
||||
this.jtNameOne = jtNameOne;
|
||||
}
|
||||
|
||||
public String getJtRelationOne() {
|
||||
return jtRelationOne;
|
||||
}
|
||||
|
||||
public void setJtRelationOne(String jtRelationOne) {
|
||||
this.jtRelationOne = jtRelationOne;
|
||||
}
|
||||
|
||||
public String getJtUnitOne() {
|
||||
return jtUnitOne;
|
||||
}
|
||||
|
||||
public void setJtUnitOne(String jtUnitOne) {
|
||||
this.jtUnitOne = jtUnitOne;
|
||||
}
|
||||
|
||||
public String getJtPhoneOne() {
|
||||
return jtPhoneOne;
|
||||
}
|
||||
|
||||
public void setJtPhoneOne(String jtPhoneOne) {
|
||||
this.jtPhoneOne = jtPhoneOne;
|
||||
}
|
||||
|
||||
public String getJtNameTwo() {
|
||||
return jtNameTwo;
|
||||
}
|
||||
|
||||
public void setJtNameTwo(String jtNameTwo) {
|
||||
this.jtNameTwo = jtNameTwo;
|
||||
}
|
||||
|
||||
public String getJtRelationTwo() {
|
||||
return jtRelationTwo;
|
||||
}
|
||||
|
||||
public void setJtRelationTwo(String jtRelationTwo) {
|
||||
this.jtRelationTwo = jtRelationTwo;
|
||||
}
|
||||
|
||||
public String getJtUnitTwo() {
|
||||
return jtUnitTwo;
|
||||
}
|
||||
|
||||
public void setJtUnitTwo(String jtUnitTwo) {
|
||||
this.jtUnitTwo = jtUnitTwo;
|
||||
}
|
||||
|
||||
public String getJtPhoneTwo() {
|
||||
return jtPhoneTwo;
|
||||
}
|
||||
|
||||
public void setJtPhoneTwo(String jtPhoneTwo) {
|
||||
this.jtPhoneTwo = jtPhoneTwo;
|
||||
}
|
||||
|
||||
public String getJtNameThree() {
|
||||
return jtNameThree;
|
||||
}
|
||||
|
||||
public void setJtNameThree(String jtNameThree) {
|
||||
this.jtNameThree = jtNameThree;
|
||||
}
|
||||
|
||||
public String getJtRelationThree() {
|
||||
return jtRelationThree;
|
||||
}
|
||||
|
||||
public void setJtRelationThree(String jtRelationThree) {
|
||||
this.jtRelationThree = jtRelationThree;
|
||||
}
|
||||
|
||||
public String getJtUnitThree() {
|
||||
return jtUnitThree;
|
||||
}
|
||||
|
||||
public void setJtUnitThree(String jtUnitThree) {
|
||||
this.jtUnitThree = jtUnitThree;
|
||||
}
|
||||
|
||||
public String getJtPhoneThree() {
|
||||
return jtPhoneThree;
|
||||
}
|
||||
|
||||
public void setJtPhoneThree(String jtPhoneThree) {
|
||||
this.jtPhoneThree = jtPhoneThree;
|
||||
}
|
||||
|
||||
public String getSignPath() {
|
||||
return signPath;
|
||||
}
|
||||
|
||||
public void setSignPath(String signPath) {
|
||||
this.signPath = signPath;
|
||||
}
|
||||
|
||||
public String getAddDate() {
|
||||
return addDate;
|
||||
}
|
||||
|
||||
public void setAddDate(String addDate) {
|
||||
this.addDate = addDate;
|
||||
}
|
||||
|
||||
public String getGzTime() {
|
||||
return gzTime;
|
||||
}
|
||||
|
||||
public void setGzTime(String gzTime) {
|
||||
this.gzTime = gzTime;
|
||||
}
|
||||
|
||||
public String getGzUnit() {
|
||||
return gzUnit;
|
||||
}
|
||||
|
||||
public void setGzUnit(String gzUnit) {
|
||||
this.gzUnit = gzUnit;
|
||||
}
|
||||
|
||||
public String getGzPosition() {
|
||||
return gzPosition;
|
||||
}
|
||||
|
||||
public void setGzPosition(String gzPosition) {
|
||||
this.gzPosition = gzPosition;
|
||||
}
|
||||
|
||||
public String getJyTime() {
|
||||
return jyTime;
|
||||
}
|
||||
|
||||
public void setJyTime(String jyTime) {
|
||||
this.jyTime = jyTime;
|
||||
}
|
||||
|
||||
public String getJySchool() {
|
||||
return jySchool;
|
||||
}
|
||||
|
||||
public void setJySchool(String jySchool) {
|
||||
this.jySchool = jySchool;
|
||||
}
|
||||
|
||||
public String getJySpeciality() {
|
||||
return jySpeciality;
|
||||
}
|
||||
|
||||
public void setJySpeciality(String jySpeciality) {
|
||||
this.jySpeciality = jySpeciality;
|
||||
}
|
||||
|
||||
public String getJtName() {
|
||||
return jtName;
|
||||
}
|
||||
|
||||
public void setJtName(String jtName) {
|
||||
this.jtName = jtName;
|
||||
}
|
||||
|
||||
public String getJtRelation() {
|
||||
return jtRelation;
|
||||
}
|
||||
|
||||
public void setJtRelation(String jtRelation) {
|
||||
this.jtRelation = jtRelation;
|
||||
}
|
||||
|
||||
public String getJtUnit() {
|
||||
return jtUnit;
|
||||
}
|
||||
|
||||
public void setJtUnit(String jtUnit) {
|
||||
this.jtUnit = jtUnit;
|
||||
}
|
||||
|
||||
public String getJtPhone() {
|
||||
return jtPhone;
|
||||
}
|
||||
|
||||
public void setJtPhone(String jtPhone) {
|
||||
this.jtPhone = jtPhone;
|
||||
}
|
||||
|
||||
public String getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(String createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
|
||||
public String getUpdateTime() {
|
||||
return updateTime;
|
||||
}
|
||||
|
||||
public void setUpdateTime(String updateTime) {
|
||||
this.updateTime = updateTime;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.bonus.hnrn.rnama.person.controller;
|
||||
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import com.bonus.hnrn.rnama.core.advice.LogAnnotation;
|
||||
import com.bonus.hnrn.rnama.core.entity.FaceContrastBean;
|
||||
import com.bonus.hnrn.rnama.core.entity.MapBean;
|
||||
|
|
@ -69,4 +70,49 @@ public class PersonIdentifyController {
|
|||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 发送短信
|
||||
*/
|
||||
@PostMapping("sentMsg")
|
||||
public AjaxRes selectWorkerPhotoByIdNumber(PhoneMsgBean bean){
|
||||
AjaxRes ar = new AjaxRes();
|
||||
try{
|
||||
String url = "http://api.ktsms.cn/sms_token?ddtkey="+bean.getDdtkey()+"&secretkey="+bean.getSecretkey();
|
||||
String msg = bean.getContent();
|
||||
String uri = url+"&mobile="+ bean.getMobile() + "&content=" + msg;
|
||||
String body = HttpRequest.post(uri).execute(false).body();
|
||||
if(body.contains("ok")){
|
||||
ar.setRes(1);
|
||||
ar.setResMsg("发送成功");
|
||||
}else{
|
||||
ar.setRes(0);
|
||||
ar.setResMsg("发送失败");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
ar.setRes(0);
|
||||
ar.setResMsg("error");
|
||||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
/**
|
||||
* 合同签署(分包商签署)-根据登录账号查询分包的信息
|
||||
*/
|
||||
@PostMapping("selectSubMsgByPhone")
|
||||
public AjaxRes selectSubMsgByPhone(SubMsgBean bean){
|
||||
AjaxRes ar = new AjaxRes();
|
||||
try{
|
||||
SubMsgBean o = service.selectSubMsgByPhone(bean);
|
||||
ar.setRes(1);
|
||||
ar.setResMsg("success");
|
||||
ar.setSucceed(o);
|
||||
} catch (Exception e) {
|
||||
ar.setRes(0);
|
||||
ar.setResMsg("error");
|
||||
}
|
||||
return ar;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,4 +15,6 @@ public interface PersonIdentifyDao {
|
|||
WorkerBean selectWorkerContractMsgByIdNumber(WorkerBean bean);
|
||||
|
||||
WorkerPhotoBean selectWorkerPhotoByIdNumber(WorkerPhotoBean bean);
|
||||
|
||||
SubMsgBean selectSubMsgByPhone(SubMsgBean bean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,26 @@
|
|||
package com.bonus.hnrn.rnama.person.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class PhoneMsgBean implements Serializable {
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
private String ddtkey;
|
||||
/**
|
||||
* 密码
|
||||
*/
|
||||
private String secretkey;
|
||||
/**
|
||||
* 手机号
|
||||
*/
|
||||
private String mobile;
|
||||
/**
|
||||
* 短信内容
|
||||
*/
|
||||
private String content;
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
package com.bonus.hnrn.rnama.person.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class SubMsgBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 分包id
|
||||
*/
|
||||
private String subId;
|
||||
|
||||
/**
|
||||
* 分包id
|
||||
*/
|
||||
private String subName;
|
||||
/**
|
||||
* 法人代表
|
||||
*/
|
||||
private String represent;
|
||||
/**
|
||||
* 联系电话
|
||||
*/
|
||||
private String subPhone;
|
||||
|
||||
/**
|
||||
* 正面身份证照片路径
|
||||
*/
|
||||
private String idCardJustUrl;
|
||||
|
||||
/**
|
||||
* 反面身份证照片路径
|
||||
*/
|
||||
private String idCardBackUrl;
|
||||
|
||||
/**
|
||||
* 电子签名/印章照片路径
|
||||
*/
|
||||
private String signatureUrl;
|
||||
|
||||
/**
|
||||
* 电子公章照片路径
|
||||
*/
|
||||
private String sealUrl;
|
||||
|
||||
/**
|
||||
* 营业执照片路径
|
||||
*/
|
||||
private String businessUrl;
|
||||
|
||||
/**
|
||||
* 安全许可证照片路径
|
||||
*/
|
||||
private String safetyUrl;
|
||||
|
||||
/**
|
||||
* 登录账号电话
|
||||
*/
|
||||
private String phone;
|
||||
}
|
||||
|
|
@ -1,14 +1,13 @@
|
|||
package com.bonus.hnrn.rnama.person.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class WorkerPhotoBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public class WorkerPhotoBean implements Serializable {
|
||||
|
||||
/**
|
||||
* 人员
|
||||
|
|
|
|||
|
|
@ -22,4 +22,8 @@ public interface PersonIdentifyService {
|
|||
* 获取人员相关照片
|
||||
*/
|
||||
WorkerPhotoBean selectWorkerPhotoByIdNumber(WorkerPhotoBean bean);
|
||||
/**
|
||||
* 合同签署(分包商签署)-根据登录账号查询分包的信息
|
||||
*/
|
||||
SubMsgBean selectSubMsgByPhone(SubMsgBean bean);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,4 +47,9 @@ public class PersonIdentifyServiceImpl implements PersonIdentifyService {
|
|||
return ben;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SubMsgBean selectSubMsgByPhone(SubMsgBean bean) {
|
||||
return dao.selectSubMsgByPhone(bean);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,17 +33,39 @@
|
|||
|
||||
<select id="selectWorkerPhotoByIdNumber" resultType="com.bonus.hnrn.rnama.person.entity.WorkerPhotoBean">
|
||||
SELECT
|
||||
id_number idNumber,
|
||||
bwp.id_number idNumber,
|
||||
MAX(CASE WHEN PHOTO_TYPE = '1' THEN PHOTO_PATH END) AS frontPhoto,
|
||||
MAX(CASE WHEN PHOTO_TYPE = '2' THEN PHOTO_PATH END) AS backPhoto,
|
||||
MAX(CASE WHEN PHOTO_TYPE = '3' THEN PHOTO_PATH END) AS facePhoto,
|
||||
MAX(CASE WHEN PHOTO_TYPE = '4' THEN PHOTO_PATH END) AS bankPhoto,
|
||||
GROUP_CONCAT(DISTINCT bww.witness_path) AS bankPhoto,
|
||||
MAX(CASE WHEN PHOTO_TYPE = '5' THEN PHOTO_PATH END) AS signaturePhoto
|
||||
FROM
|
||||
bns_smz_bm_worker_photo
|
||||
bns_smz_bm_worker_photo bwp
|
||||
LEFT JOIN bns_smz_bm_worker_witness bww ON bww.ID_NUMBER = bwp.ID_NUMBER
|
||||
AND bww.is_active = 1
|
||||
AND bww.witness_type = 2
|
||||
WHERE
|
||||
ID_NUMBER = #{idNumber}
|
||||
bwp.ID_NUMBER = #{idNumber}
|
||||
GROUP BY
|
||||
ID_NUMBER
|
||||
bwp.ID_NUMBER
|
||||
</select>
|
||||
|
||||
<select id="selectSubMsgByPhone" resultType="com.bonus.hnrn.rnama.person.entity.SubMsgBean">
|
||||
SELECT
|
||||
bs.id as subId,
|
||||
bs.sub_name,
|
||||
bs.represent,
|
||||
bs.re_contact as subPhone,
|
||||
bs.id_card_just_url,
|
||||
bs.id_card_back_url,
|
||||
bs.signature_url,
|
||||
bs.seal_url,
|
||||
bs.business_url,
|
||||
bs.safety_url
|
||||
FROM
|
||||
bns_smz_sys_user su
|
||||
LEFT JOIN bns_smz_bm_subcontractor bs ON su.sub_id = bs.id
|
||||
WHERE
|
||||
su.phone = #{phone}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue