Commit c5d34da6 by jianan

客户告知书2

parent 85542eee
...@@ -3,9 +3,7 @@ package com.yd.api.practitioner; ...@@ -3,9 +3,7 @@ package com.yd.api.practitioner;
import com.yd.api.practitioner.service.PractitionerBasicInfoService; import com.yd.api.practitioner.service.PractitionerBasicInfoService;
import com.yd.api.practitioner.service.PractitionerService; import com.yd.api.practitioner.service.PractitionerService;
import com.yd.api.practitioner.service.ScheduleTrackService; import com.yd.api.practitioner.service.ScheduleTrackService;
import com.yd.api.practitioner.vo.informed.QueryInformedSheetByIdResponseVO; import com.yd.api.practitioner.vo.informed.*;
import com.yd.api.practitioner.vo.informed.SaveInformedSheetRequestVO;
import com.yd.api.practitioner.vo.informed.UpdateInformedSheetByIdRequestVO;
import com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO; import com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO;
import com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO; import com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO;
import com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO; import com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO;
...@@ -696,10 +694,19 @@ public class PractitionerController { ...@@ -696,10 +694,19 @@ public class PractitionerController {
return result; return result;
} }
@RequestMapping("/updateInformedSheetById") @RequestMapping("/signInformedSheet")
public Object updateInformedSheetById(@RequestBody UpdateInformedSheetByIdRequestVO requestVO) { public Object signInformedSheet(@RequestBody SignInformedSheetRequestVO requestVO) {
JsonResult result = new JsonResult(); JsonResult result = new JsonResult();
CommonResultIDResponseVO responseVO = practitionerService.updateInformedSheetById(requestVO); CommonResultIDResponseVO responseVO = practitionerService.signInformedSheet(requestVO);
result.addResult(responseVO);
result.setData(responseVO);
return result;
}
@RequestMapping("/queryInformedSheetList")
public Object queryInformedSheetList(@RequestBody QueryInformedSheetListRequestVO requestVO) {
JsonResult result = new JsonResult();
QueryInformedSheetListResponseVO responseVO = practitionerService.queryInformedSheetList(requestVO);
result.addResult(responseVO); result.addResult(responseVO);
result.setData(responseVO); result.setData(responseVO);
return result; return result;
......
package com.yd.api.practitioner.service; package com.yd.api.practitioner.service;
import com.yd.api.practitioner.vo.informed.QueryInformedSheetByIdResponseVO; import com.yd.api.practitioner.vo.informed.*;
import com.yd.api.practitioner.vo.informed.SaveInformedSheetRequestVO;
import com.yd.api.practitioner.vo.informed.UpdateInformedSheetByIdRequestVO;
import com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO; import com.yd.api.practitioner.vo.login.CanSeeSalaryListResponseVO;
import com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO; import com.yd.api.practitioner.vo.login.PractitionerLoginRequestVO;
import com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO; import com.yd.api.practitioner.vo.login.PractitionerLoginResponseVO;
...@@ -256,4 +254,8 @@ public interface PractitionerService { ...@@ -256,4 +254,8 @@ public interface PractitionerService {
QueryInformedSheetByIdResponseVO queryInformedSheetById(IDRequestVO requestVO); QueryInformedSheetByIdResponseVO queryInformedSheetById(IDRequestVO requestVO);
CommonResultIDResponseVO updateInformedSheetById(UpdateInformedSheetByIdRequestVO requestVO); CommonResultIDResponseVO updateInformedSheetById(UpdateInformedSheetByIdRequestVO requestVO);
CommonResultIDResponseVO signInformedSheet(SignInformedSheetRequestVO requestVO);
QueryInformedSheetListResponseVO queryInformedSheetList(QueryInformedSheetListRequestVO requestVO);
} }
...@@ -546,6 +546,9 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring ...@@ -546,6 +546,9 @@ public class PractitionerHiringContractServiceImpl implements PractitionerHiring
} }
//获取头像流 //获取头像流
InputStream inputStream = (InputStream) input.get("is"); InputStream inputStream = (InputStream) input.get("is");
if (null == inputStream) {
return null;
}
String filePath = localDirectory + filename; String filePath = localDirectory + filename;
byte[] data = new byte[1024]; byte[] data = new byte[1024];
......
package com.yd.api.practitioner.vo.informed;
import lombok.Data;
@Data
public class QueryInformedSheetListRequestVO {
private Long practitionerId;
private String customerName;
private String customerMobile;
private String policyNo;
private String signDate;
}
package com.yd.api.practitioner.vo.informed;
import com.yd.api.result.CommonResult;
import com.yd.dal.entity.customer.AgPoInformed;
import lombok.Data;
import java.util.List;
@Data
public class QueryInformedSheetListResponseVO {
private CommonResult commonResult;
private List<AgPoInformed> list;
}
package com.yd.api.practitioner.vo.informed;
import lombok.Data;
@Data
public class SignInformedSheetRequestVO {
private Long id;
private String imgStr;
}
...@@ -59,6 +59,11 @@ public class AgPoInformed implements Serializable { ...@@ -59,6 +59,11 @@ public class AgPoInformed implements Serializable {
private String signDate; private String signDate;
/** /**
* 客户签名url
*/
private String signOssPath;
/**
* 签署状态, 0=未签署; 1=已签署; * 签署状态, 0=未签署; 1=已签署;
*/ */
private String status; private String status;
...@@ -313,4 +318,12 @@ public class AgPoInformed implements Serializable { ...@@ -313,4 +318,12 @@ public class AgPoInformed implements Serializable {
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }
public String getSignOssPath() {
return signOssPath;
}
public void setSignOssPath(String signOssPath) {
this.signOssPath = signOssPath;
}
} }
\ No newline at end of file
...@@ -2,6 +2,8 @@ package com.yd.dal.mapper.customer; ...@@ -2,6 +2,8 @@ package com.yd.dal.mapper.customer;
import com.yd.dal.entity.customer.AgPoInformed; import com.yd.dal.entity.customer.AgPoInformed;
import java.util.List;
public interface AgPoInformedMapper { public interface AgPoInformedMapper {
int deleteByPrimaryKey(Long id); int deleteByPrimaryKey(Long id);
...@@ -14,4 +16,6 @@ public interface AgPoInformedMapper { ...@@ -14,4 +16,6 @@ public interface AgPoInformedMapper {
int updateByPrimaryKeySelective(AgPoInformed record); int updateByPrimaryKeySelective(AgPoInformed record);
int updateByPrimaryKey(AgPoInformed record); int updateByPrimaryKey(AgPoInformed record);
List<AgPoInformed> selectByRecord(AgPoInformed record);
} }
\ No newline at end of file
...@@ -226,4 +226,25 @@ ...@@ -226,4 +226,25 @@
updated_by = #{updatedBy,jdbcType=BIGINT} updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}
</update> </update>
<select id="selectByRecord" parameterType="com.yd.dal.entity.customer.AgPoInformed" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_po_informed
where 1=1
<if test="customerName != null">
and customer_name = #{customerName,jdbcType=VARCHAR}
</if>
<if test="customerMobile != null">
and customer_mobile = #{customerMobile,jdbcType=VARCHAR}
</if>
<if test="updatedAt != null">
and practitioner_id = #{updatedAt,jdbcType=BIGINT}
</if>
<if test="policyNo != null">
and policy_no = #{policyNo,jdbcType=VARCHAR}
</if>
<if test="signDate != null">
and sign_date = #{signDate,jdbcType=VARCHAR}
</if>
</select>
</mapper> </mapper>
\ No newline at end of file
...@@ -8,9 +8,13 @@ pdf.uncheck=/opt/tomcat8/conf/ydpdf/pdfres/uncheck.png ...@@ -8,9 +8,13 @@ pdf.uncheck=/opt/tomcat8/conf/ydpdf/pdfres/uncheck.png
pdf.temp.path=/opt/tomcat8/temp/ pdf.temp.path=/opt/tomcat8/temp/
pdf.firstParty=上海银盾保险经纪有限公司 pdf.firstParty=\u4E0A\u6D77\u94F6\u76FE\u4FDD\u9669\u7ECF\u7EAA\u6709\u9650\u516C\u53F8
pdf.firstPartyResponser=Wan Shuang Lian pdf.firstPartyResponser=Wan Shuang Lian
pdf.firstPartyAddress=上海市浦东新区张杨路560号中融恒瑞国际西楼1706室 pdf.firstPartyAddress=\u4E0A\u6D77\u5E02\u6D66\u4E1C\u65B0\u533A\u5F20\u6768\u8DEF560\u53F7\u4E2D\u878D\u6052\u745E\u56FD\u9645\u897F\u697C1706\u5BA4
pdf.position.x=450 pdf.position.x=450
pdf.position.y=150 pdf.position.y=150
#\u5BA2\u6237\u544A\u77E5\u4E66\u76EE\u5F55
informed.pdf.template=/opt/tomcat8/conf/ydpdf/informed/templateInformed.pdf
informed.pdf.temp.path=/opt/tomcat8/conf/ydpdf/informed
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