Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
985cf96d
Commit
985cf96d
authored
May 13, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-经纪人商机保存
parent
40ad5d99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
24 deletions
+49
-24
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+1
-1
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
+48
-23
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
985cf96d
...
...
@@ -581,7 +581,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
info
.
setFyp
(
mktLeadsAssigneds
.
getFyp
());
info
.
setPieces
(
mktLeadsAssigneds
.
getPieces
());
info
.
setRemark
(
mktLeadsAssigneds
.
getRemark
());
info
.
setTimeToClose
(
CommonUtil
.
dateParseString
(
mktLeadsAssigneds
.
getTimeToClose
(),
"yyyy-MM-dd
HH:mm:ss
"
));
info
.
setTimeToClose
(
CommonUtil
.
dateParseString
(
mktLeadsAssigneds
.
getTimeToClose
(),
"yyyy-MM-dd"
));
info
.
setOpportunityDate
(
CommonUtil
.
dateParseString
(
mktLeadsAssigneds
.
getCreatedAt
(),
"yyyy-MM-dd HH:mm:ss"
));
info
.
setOpportunityCustomerTags
(
OpportunityCustomerTags
(
customerId
));
return
info
;
...
...
yd-api/src/main/resources/mapper/marketing/MktLeadsAssignedsMapper.xml
View file @
985cf96d
...
...
@@ -2,13 +2,16 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yd.dal.mapper.marketing.MktLeadsAssignedsMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.yd.dal.entity.marketing.MktLeadsAssigneds"
>
<!--@mbg.generated-->
<!--@Table ag_mkt_leads_assigneds-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"assigned_practitioner_id"
jdbcType=
"BIGINT"
property=
"assignedPractitionerId"
/>
<result
column=
"customer_id"
jdbcType=
"BIGINT"
property=
"customerId"
/>
<result
column=
"FYP"
jdbcType=
"DECIMAL"
property=
"fyp"
/>
<result
column=
"FYC"
jdbcType=
"DECIMAL"
property=
"fyc"
/>
<result
column=
"time_to_close"
jdbcType=
"TIMESTAMP"
property=
"timeToClose"
/>
<result
column=
"pieces"
jdbcType=
"BIGINT"
property=
"pieces"
/>
<result
column=
"pieces"
jdbcType=
"INTEGER"
property=
"pieces"
/>
<result
column=
"remark"
jdbcType=
"LONGVARCHAR"
property=
"remark"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
<result
column=
"created_by"
jdbcType=
"BIGINT"
property=
"createdBy"
/>
...
...
@@ -16,30 +19,37 @@
<result
column=
"updated_by"
jdbcType=
"BIGINT"
property=
"updatedBy"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, assigned_practitioner_id, customer_id, FYP, FYC, time_to_close, is_active, created_at,
created_by, updated_at, updated_by,pieces
<!--@mbg.generated-->
id, assigned_practitioner_id, customer_id, FYP, FYC, time_to_close, pieces, remark,
is_active, created_at, created_by, updated_at, updated_by
</sql>
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
<!--@mbg.generated-->
select
<include
refid=
"Base_Column_List"
/>
from ag_mkt_leads_assigneds
where id = #{id,jdbcType=BIGINT}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
<!--@mbg.generated-->
delete from ag_mkt_leads_assigneds
where id = #{id,jdbcType=BIGINT}
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.marketing.MktLeadsAssigneds"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_mkt_leads_assigneds (assigned_practitioner_id, customer_id,
FYP, FYC, time_to_close,
is_active, created_at, created_by,
updated_at, updated_by,pieces)
pieces, remark, is_active,
created_at, created_by, updated_at,
updated_by)
values (#{assignedPractitionerId,jdbcType=BIGINT}, #{customerId,jdbcType=BIGINT},
#{fyp,jdbcType=DECIMAL}, #{fyc,jdbcType=DECIMAL}, #{timeToClose,jdbcType=TIMESTAMP},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT},#{pieces,jdbcType=BIGINT})
#{pieces,jdbcType=INTEGER}, #{remark,jdbcType=LONGVARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.marketing.MktLeadsAssigneds"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_mkt_leads_assigneds
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"assignedPractitionerId != null"
>
...
...
@@ -57,6 +67,12 @@
<if
test=
"timeToClose != null"
>
time_to_close,
</if>
<if
test=
"pieces != null"
>
pieces,
</if>
<if
test=
"remark != null"
>
remark,
</if>
<if
test=
"isActive != null"
>
is_active,
</if>
...
...
@@ -72,9 +88,6 @@
<if
test=
"updatedBy != null"
>
updated_by,
</if>
<if
test=
"pieces!=null"
>
pieces,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"assignedPractitionerId != null"
>
...
...
@@ -92,6 +105,12 @@
<if
test=
"timeToClose != null"
>
#{timeToClose,jdbcType=TIMESTAMP},
</if>
<if
test=
"pieces != null"
>
#{pieces,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
#{remark,jdbcType=LONGVARCHAR},
</if>
<if
test=
"isActive != null"
>
#{isActive,jdbcType=INTEGER},
</if>
...
...
@@ -107,12 +126,10 @@
<if
test=
"updatedBy != null"
>
#{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"pieces != null"
>
#{pieces,jdbcType=INTEGER}
</if>
</trim>
</insert>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.yd.dal.entity.marketing.MktLeadsAssigneds"
>
<!--@mbg.generated-->
update ag_mkt_leads_assigneds
<set>
<if
test=
"assignedPractitionerId != null"
>
...
...
@@ -130,6 +147,12 @@
<if
test=
"timeToClose != null"
>
time_to_close = #{timeToClose,jdbcType=TIMESTAMP},
</if>
<if
test=
"pieces != null"
>
pieces = #{pieces,jdbcType=INTEGER},
</if>
<if
test=
"remark != null"
>
remark = #{remark,jdbcType=LONGVARCHAR},
</if>
<if
test=
"isActive != null"
>
is_active = #{isActive,jdbcType=INTEGER},
</if>
...
...
@@ -145,27 +168,27 @@
<if
test=
"updatedBy != null"
>
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
<if
test=
"pieces != null"
>
pieces = #{pieces,jdbcType=INTEGER}
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.marketing.MktLeadsAssigneds"
>
<!--@mbg.generated-->
update ag_mkt_leads_assigneds
set assigned_practitioner_id = #{assignedPractitionerId,jdbcType=BIGINT},
customer_id = #{customerId,jdbcType=BIGINT},
FYP = #{fyp,jdbcType=DECIMAL},
FYC = #{fyc,jdbcType=DECIMAL},
time_to_close = #{timeToClose,jdbcType=TIMESTAMP},
pieces = #{pieces,jdbcType=INTEGER},
remark = #{remark,jdbcType=LONGVARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT},
pieces = #{pieces,jdbcType=INTEGER}
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select
id=
"findByMktLeadsAssigneds"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
@@ -184,11 +207,17 @@
and FYP = #{fyp,jdbcType=DECIMAL}
</if>
<if
test=
"fyc != null"
>
and
FYC = #{fyc,jdbcType=DECIMAL}
and FYC = #{fyc,jdbcType=DECIMAL}
</if>
<if
test=
"timeToClose != null"
>
and time_to_close = #{timeToClose,jdbcType=TIMESTAMP}
</if>
<if
test=
"pieces != null"
>
and pieces = #{pieces,jdbcType=INTEGER}
</if>
<if
test=
"remark != null"
>
and remark = #{remark,jdbcType=LONGVARCHAR}
</if>
<if
test=
"isActive != null"
>
and is_active = #{isActive,jdbcType=INTEGER}
</if>
...
...
@@ -204,9 +233,6 @@
<if
test=
"updatedBy != null"
>
and updated_by = #{updatedBy,jdbcType=BIGINT}
</if>
<if
test=
"pieces != null"
>
and pieces = #{pieces,jdbcType=INTEGER}
</if>
</where>
</select>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment