Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ry-crm
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
田光明
ry-crm
Commits
aa55d0e7
Commit
aa55d0e7
authored
Feb 24, 2025
by
EDY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c7f8100f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
14 deletions
+77
-14
BaseCustomInfoController.java
...oyi/web/controller/business/BaseCustomInfoController.java
+3
-0
BaseCustomInfo.java
...java/com/ruoyi/system/domain/business/BaseCustomInfo.java
+40
-0
BaseCustomInfoServiceImpl.java
...stem/service/business/impl/BaseCustomInfoServiceImpl.java
+10
-14
BaseCustomInfoMapper.xml
...c/main/resources/mapper/business/BaseCustomInfoMapper.xml
+24
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/web/controller/business/BaseCustomInfoController.java
View file @
aa55d0e7
package
com
.
ruoyi
.
web
.
controller
.
business
;
package
com
.
ruoyi
.
web
.
controller
.
business
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -79,6 +80,8 @@ public class BaseCustomInfoController extends BaseController
...
@@ -79,6 +80,8 @@ public class BaseCustomInfoController extends BaseController
public
AjaxResult
add
(
@RequestBody
BaseCustomInfo
baseCustomInfo
)
public
AjaxResult
add
(
@RequestBody
BaseCustomInfo
baseCustomInfo
)
{
{
baseCustomInfo
.
setFzr
(
getUsername
());
baseCustomInfo
.
setFzr
(
getUsername
());
baseCustomInfo
.
setCreateTime
(
new
Date
());
baseCustomInfo
.
setCreateBy
(
getUsername
());
return
toAjax
(
baseCustomInfoService
.
insertBaseCustomInfo
(
baseCustomInfo
));
return
toAjax
(
baseCustomInfoService
.
insertBaseCustomInfo
(
baseCustomInfo
));
}
}
...
...
ruoyi-system/src/main/java/com/ruoyi/system/domain/business/BaseCustomInfo.java
View file @
aa55d0e7
...
@@ -84,6 +84,14 @@ public class BaseCustomInfo extends BaseEntity
...
@@ -84,6 +84,14 @@ public class BaseCustomInfo extends BaseEntity
private
String
[]
customTrade
;
private
String
[]
customTrade
;
private
String
[]
customStatus
;
private
String
[]
purposeLevel
;
private
String
[]
productType
;
private
String
[]
customSource
;
public
void
setId
(
Long
id
)
public
void
setId
(
Long
id
)
{
{
this
.
id
=
id
;
this
.
id
=
id
;
...
@@ -268,4 +276,36 @@ public class BaseCustomInfo extends BaseEntity
...
@@ -268,4 +276,36 @@ public class BaseCustomInfo extends BaseEntity
public
void
setBz
(
String
bz
)
{
public
void
setBz
(
String
bz
)
{
this
.
bz
=
bz
;
this
.
bz
=
bz
;
}
}
public
String
[]
getCustomStatus
()
{
return
customStatus
;
}
public
void
setCustomStatus
(
String
[]
customStatus
)
{
this
.
customStatus
=
customStatus
;
}
public
String
[]
getPurposeLevel
()
{
return
purposeLevel
;
}
public
void
setPurposeLevel
(
String
[]
purposeLevel
)
{
this
.
purposeLevel
=
purposeLevel
;
}
public
String
[]
getProductType
()
{
return
productType
;
}
public
void
setProductType
(
String
[]
productType
)
{
this
.
productType
=
productType
;
}
public
String
[]
getCustomSource
()
{
return
customSource
;
}
public
void
setCustomSource
(
String
[]
customSource
)
{
this
.
customSource
=
customSource
;
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/service/business/impl/BaseCustomInfoServiceImpl.java
View file @
aa55d0e7
package
com
.
ruoyi
.
system
.
service
.
business
.
impl
;
package
com
.
ruoyi
.
system
.
service
.
business
.
impl
;
import
java.util.List
;
import
java.util.List
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.system.domain.business.BaseCustomInfo
;
import
com.ruoyi.system.domain.business.BaseCustomInfo
;
import
com.ruoyi.system.mapper.business.BaseCustomInfoMapper
;
import
com.ruoyi.system.mapper.business.BaseCustomInfoMapper
;
...
@@ -16,8 +17,7 @@ import org.springframework.stereotype.Service;
...
@@ -16,8 +17,7 @@ import org.springframework.stereotype.Service;
* @date 2025-02-10
* @date 2025-02-10
*/
*/
@Service
@Service
public
class
BaseCustomInfoServiceImpl
implements
IBaseCustomInfoService
public
class
BaseCustomInfoServiceImpl
implements
IBaseCustomInfoService
{
{
@Autowired
@Autowired
private
BaseCustomInfoMapper
baseCustomInfoMapper
;
private
BaseCustomInfoMapper
baseCustomInfoMapper
;
...
@@ -28,8 +28,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -28,8 +28,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 客户信息
* @return 客户信息
*/
*/
@Override
@Override
public
BaseCustomInfo
selectBaseCustomInfoById
(
Long
id
)
public
BaseCustomInfo
selectBaseCustomInfoById
(
Long
id
)
{
{
return
baseCustomInfoMapper
.
selectBaseCustomInfoById
(
id
);
return
baseCustomInfoMapper
.
selectBaseCustomInfoById
(
id
);
}
}
...
@@ -40,8 +39,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -40,8 +39,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 客户信息
* @return 客户信息
*/
*/
@Override
@Override
public
List
<
BaseCustomInfo
>
selectBaseCustomInfoList
(
BaseCustomInfo
baseCustomInfo
)
public
List
<
BaseCustomInfo
>
selectBaseCustomInfoList
(
BaseCustomInfo
baseCustomInfo
)
{
{
return
baseCustomInfoMapper
.
selectBaseCustomInfoList
(
baseCustomInfo
);
return
baseCustomInfoMapper
.
selectBaseCustomInfoList
(
baseCustomInfo
);
}
}
...
@@ -52,9 +50,10 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -52,9 +50,10 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
insertBaseCustomInfo
(
BaseCustomInfo
baseCustomInfo
)
public
int
insertBaseCustomInfo
(
BaseCustomInfo
baseCustomInfo
)
{
{
baseCustomInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
baseCustomInfo
.
setCreateTime
(
DateUtils
.
getNowDate
());
baseCustomInfo
.
setKhgs
(
baseCustomInfo
.
getKhgs
()
==
null
?
"无"
:
baseCustomInfo
.
getKhgs
());
baseCustomInfo
.
setKhgs
(
baseCustomInfo
.
getKhxm
()
==
null
?
"未知"
:
baseCustomInfo
.
getKhxm
());
return
baseCustomInfoMapper
.
insertBaseCustomInfo
(
baseCustomInfo
);
return
baseCustomInfoMapper
.
insertBaseCustomInfo
(
baseCustomInfo
);
}
}
...
@@ -65,8 +64,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -65,8 +64,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
updateBaseCustomInfo
(
BaseCustomInfo
baseCustomInfo
)
public
int
updateBaseCustomInfo
(
BaseCustomInfo
baseCustomInfo
)
{
{
baseCustomInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
baseCustomInfo
.
setUpdateTime
(
DateUtils
.
getNowDate
());
return
baseCustomInfoMapper
.
updateBaseCustomInfo
(
baseCustomInfo
);
return
baseCustomInfoMapper
.
updateBaseCustomInfo
(
baseCustomInfo
);
}
}
...
@@ -78,8 +76,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -78,8 +76,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
deleteBaseCustomInfoByIds
(
Long
[]
ids
)
public
int
deleteBaseCustomInfoByIds
(
Long
[]
ids
)
{
{
return
baseCustomInfoMapper
.
deleteBaseCustomInfoByIds
(
ids
);
return
baseCustomInfoMapper
.
deleteBaseCustomInfoByIds
(
ids
);
}
}
...
@@ -90,8 +87,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
...
@@ -90,8 +87,7 @@ public class BaseCustomInfoServiceImpl implements IBaseCustomInfoService
* @return 结果
* @return 结果
*/
*/
@Override
@Override
public
int
deleteBaseCustomInfoById
(
Long
id
)
public
int
deleteBaseCustomInfoById
(
Long
id
)
{
{
return
baseCustomInfoMapper
.
deleteBaseCustomInfoById
(
id
);
return
baseCustomInfoMapper
.
deleteBaseCustomInfoById
(
id
);
}
}
}
}
ruoyi-system/src/main/resources/mapper/business/BaseCustomInfoMapper.xml
View file @
aa55d0e7
...
@@ -48,6 +48,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -48,6 +48,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{hy}
#{hy}
</foreach>
</foreach>
</if>
</if>
<if
test=
"customStatus != null "
>
and khzt in
<foreach
collection=
"customStatus"
item=
"khzt"
open=
"("
separator=
","
close=
")"
>
#{khzt}
</foreach>
</if>
<if
test=
"purposeLevel != null "
>
and yxdj in
<foreach
collection=
"purposeLevel"
item=
"yxdj"
open=
"("
separator=
","
close=
")"
>
#{yxdj}
</foreach>
</if>
<if
test=
"productType != null "
>
and cplb in
<foreach
collection=
"productType"
item=
"cplb"
open=
"("
separator=
","
close=
")"
>
#{cplb}
</foreach>
</if>
<if
test=
"customSource != null "
>
and khly in
<foreach
collection=
"customSource"
item=
"khly"
open=
"("
separator=
","
close=
")"
>
#{khly}
</foreach>
</if>
<if
test=
"yxdj != null "
>
and yxdj = #{yxdj}
</if>
<if
test=
"yxdj != null "
>
and yxdj = #{yxdj}
</if>
<if
test=
"khzt != null "
>
and khzt = #{khzt}
</if>
<if
test=
"khzt != null "
>
and khzt = #{khzt}
</if>
<if
test=
"gs != null "
>
and gs = #{gs}
</if>
<if
test=
"gs != null "
>
and gs = #{gs}
</if>
...
...
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