Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dataC_api
Project
Project
Details
Activity
Releases
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
高宇
dataC_api
Commits
b58f7154
Commit
b58f7154
authored
May 20, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jnp7sj
parent
b2dbabeb
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
360 additions
and
832 deletions
+360
-832
jnP7sjController.java
...a/org/rcisoft/bus/jnP7sj/controller/jnP7sjController.java
+97
-6
jnP7sjRepository.java
...ain/java/org/rcisoft/bus/jnP7sj/dao/jnP7sjRepository.java
+18
-0
jnP7sj.java
src/main/java/org/rcisoft/bus/jnP7sj/entity/jnP7sj.java
+20
-73
jnP7sjServiceImpl.java
...rg/rcisoft/bus/jnP7sj/service/impl/jnP7sjServiceImpl.java
+71
-1
jnP7sjService.java
...in/java/org/rcisoft/bus/jnP7sj/service/jnP7sjService.java
+16
-13
Jnsp7xtmVo.java
src/main/java/org/rcisoft/bus/jnsp7xtm/vo/Jnsp7xtmVo.java
+0
-75
taskInfoController.java
...g/rcisoft/bus/taskInfo/controller/taskInfoController.java
+0
-120
TaskInfoRepository.java
...java/org/rcisoft/bus/taskInfo/dao/TaskInfoRepository.java
+0
-17
taskInfo.java
src/main/java/org/rcisoft/bus/taskInfo/entity/taskInfo.java
+0
-17
taskInfoServiceImpl.java
...cisoft/bus/taskInfo/service/impl/taskInfoServiceImpl.java
+0
-72
taskInfoService.java
...ava/org/rcisoft/bus/taskInfo/service/taskInfoService.java
+0
-21
Jnsp7xtmDqsjRepository.xml
...urces/mapper/bus/jnP7sj/mapper/Jnsp7xtmDqsjRepository.xml
+0
-366
jnP7sjRepository.xml
...n/resources/mapper/bus/jnP7sj/mapper/jnP7sjRepository.xml
+138
-0
TaskInfoRepository.xml
...sources/mapper/bus/taskInfo/mapper/TaskInfoRepository.xml
+0
-51
No files found.
src/main/java/org/rcisoft/bus/jnP7sj/controller/jnP7sjController.java
View file @
b58f7154
package
org
.
rcisoft
.
bus
.
jnP7sj
.
controller
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.service.jnP7sjService
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.constant.CyMessCons
;
import
org.rcisoft.core.controller.CyPaginationController
;
import
org.rcisoft.core.model.CyGridModel
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.result.CyResult
;
import
org.rcisoft.core.util.CyResultGenUtil
;
import
org.rcisoft.util.ExportToExcelUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
javax.
naming.Binding
;
import
javax.
servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
java.util.List
;
public
class
jnP7sjController
{
@Autowired
@RestController
@RequestMapping
(
"/jnP7sj"
)
public
class
jnP7sjController
extends
CyPaginationController
<
jnP7sj
>
{
@Autowired
private
jnP7sjService
jnP7sjServiceImpl
;
public
CyResult
add
(
@Valid
jnP7sj
jnP7sj
,
BindingResult
bindingResult
){
CyPersistModel
data
=
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-新增jnP7sj"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@ApiOperation
(
value
=
"添加jnP7sj"
,
notes
=
"添加jnP7sj"
)
@PostMapping
(
value
=
"/add"
)
public
CyResult
add
(
@Valid
jnP7sj
jnP7sj
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
jnP7sjServiceImpl
.
persist
(
jnP7sj
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sj
);
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-逻辑删除jnP7sj"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@ApiOperation
(
value
=
"逻辑删除jnP7sj"
,
notes
=
"逻辑删除jnP7sj"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/deleteLogical/{businessId:\\w+}"
)
public
CyResult
deleteLogical
(
@PathVariable
Integer
businessId
,
jnP7sj
jnP7sj
)
{
jnP7sj
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
jnP7sjServiceImpl
.
removeLogical
(
jnP7sj
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sj
);
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-删除jnP7sj"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@ApiOperation
(
value
=
"删除jnP7sj"
,
notes
=
"删除jnP7sj"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/delete/{businessId:\\w+}"
)
public
CyResult
dalete
(
@PathVariable
Integer
businessId
,
jnP7sj
jnP7sj
)
{
jnP7sj
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
jnP7sjServiceImpl
.
remove
(
jnP7sj
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sj
);
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-修改jnP7sj"
,
businessType
=
CyLogTypeEnum
.
UPDATE
)
@ApiOperation
(
value
=
"修改jnP7sj"
,
notes
=
"修改jnP7sj"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@PutMapping
(
"/update/{businessId:\\w+}"
)
public
CyResult
update
(
@PathVariable
Integer
businessId
,
jnP7sj
jnP7sj
)
{
jnP7sj
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
jnP7sjServiceImpl
.
merge
(
jnP7sj
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sj
);
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-查询jnP7sj"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询单一jnP7sj"
,
notes
=
"查询单一jnP7sj"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@GetMapping
(
"/detail/{businessId:\\w+}"
)
public
CyResult
detail
(
@PathVariable
Integer
businessId
)
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_ERROR
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sjServiceImpl
.
findById
(
businessId
));
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-查询jnP7sj"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询jnP7sj集合"
,
notes
=
"查询jnP7sj集合"
)
@GetMapping
(
value
=
"/queryjnP7sjs"
)
public
CyResult
queryjnP7sjs
(
jnP7sj
jnP7sj
){
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
jnP7sjServiceImpl
.
findAll
(
jnP7sj
));
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-查询jnP7sj"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"分页查询jnP7sj集合"
,
notes
=
"分页查询jnP7sj集合"
)
@GetMapping
(
value
=
"/queryjnP7sjByPagination"
)
public
CyGridModel
listByPagination
(
jnP7sj
jnP7sj
)
{
jnP7sjServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
jnP7sj
);
return
getGridModelResponse
();
}
@CyOpeLogAnno
(
title
=
"system-jnP7sj管理-查询jnP7sj"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@ApiOperation
(
value
=
"导出jnP7sj信息"
,
notes
=
"导出jnP7sj信息"
)
@GetMapping
(
value
=
"/export"
)
public
void
outjnP7sj
(
HttpServletResponse
response
,
jnP7sj
jnP7sj
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
String
excelName
=
""
;
switch
(
excelId
){
case
"0"
:
excelName
=
"jnP7sj信息.xls"
;
break
;
case
"1"
:
excelName
=
"jnP7sj信息.xlsx"
;
break
;
case
"2"
:
excelName
=
"jnP7sj信息.csv"
;
break
;
}
List
<
jnP7sj
>
jnP7sjList
=
jnP7sjServiceImpl
.
export
(
jnP7sj
);
ExportToExcelUtil
.
exportExcel
(
jnP7sjList
,
"jnP7sj信息"
,
"jnP7sj信息"
,
jnP7sj
.
class
,
excelName
,
response
);
}
}
src/main/java/org/rcisoft/bus/jnP7sj/dao/
Jnsp7xtmDq
sjRepository.java
→
src/main/java/org/rcisoft/bus/jnP7sj/dao/
jnP7
sjRepository.java
View file @
b58f7154
...
...
@@ -2,26 +2,17 @@ package org.rcisoft.bus.jnP7sj.dao;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.session.ResultHandler
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.
bus.jnsp7xtm.vo.Jnsp7xtmVo
;
import
org.rcisoft.
core.mapper.CyBaseMapper
;
import
org.rcisoft.core.model.CyPageInfo
;
import
java.util.List
;
public
interface
Jnsp7xtmDqsjRepository
{
public
interface
jnP7sjRepository
extends
CyBaseMapper
<
jnP7sj
>
{
List
<
jnP7sj
>
queryjnP7sj
(
@Param
(
"entity"
)
jnP7sj
jnP7sj
);
IPage
<
jnP7sj
>
queryjnP7Paged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
jnP7sj
jnP7sj
);
IPage
<
jnP7sj
>
queryjnP7
sj
Paged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
jnP7sj
jnP7sj
);
List
<
String
>
getMonthList
();
void
truncateJnsp7xtmDqsj
(
@Param
(
"shema"
)
String
shema
);
void
streamQuery
(
@Param
(
"handler"
)
ResultHandler
<
Jnsp7xtmVo
>
handler
);
void
batchAddJnp7sj
(
@Param
(
"list"
)
List
<
jnP7sj
>
list
);
}
src/main/java/org/rcisoft/bus/jnP7sj/entity/jnP7sj.java
View file @
b58f7154
package
org
.
rcisoft
.
bus
.
jnP7sj
.
entity
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.*
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.
apache.ibatis.type.JdbcType
;
import
org.
rcisoft.core.entity.CyIdIncreEntity
;
import
java.math.BigDecimal
;
@Data
@TableName
(
"jnsp7xtm_dqsj"
)
public
class
jnP7sj
{
@TableId
(
value
=
"business_id"
,
type
=
IdType
.
AUTO
)
@TableField
(
fill
=
FieldFill
.
INSERT
,
jdbcType
=
JdbcType
.
INTEGER
)
@ApiModelProperty
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"integer"
)
private
Integer
businessId
;
public
class
jnP7sj
extends
CyIdIncreEntity
<
jnP7sj
>
{
@Excel
(
name
=
"term"
,
orderNum
=
"0"
,
width
=
20
)
private
Integer
businessId
;
@Excel
(
name
=
"term"
,
orderNum
=
"1"
,
width
=
20
)
private
String
term
;
@Excel
(
name
=
"half"
,
orderNum
=
"
1
"
,
width
=
20
)
@Excel
(
name
=
"half"
,
orderNum
=
"
2
"
,
width
=
20
)
private
String
half
;
@Excel
(
name
=
"quarter"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"quarter"
,
orderNum
=
"
3
"
,
width
=
20
)
private
String
quarter
;
@Excel
(
name
=
"month"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"month"
,
orderNum
=
"
4
"
,
width
=
20
)
private
String
month
;
@Excel
(
name
=
"cc"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"cc"
,
orderNum
=
"
5
"
,
width
=
20
)
private
String
cc
;
@Excel
(
name
=
"cn"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"cn"
,
orderNum
=
"
6
"
,
width
=
20
)
private
String
cn
;
@Excel
(
name
=
"io"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"io"
,
orderNum
=
"
7
"
,
width
=
20
)
private
String
io
;
@Excel
(
name
=
"route"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"route"
,
orderNum
=
"
8
"
,
width
=
20
)
private
String
route
;
@Excel
(
name
=
"pc"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"pc"
,
orderNum
=
"
9
"
,
width
=
20
)
private
String
pc
;
@Excel
(
name
=
"factory"
,
orderNum
=
"0"
,
width
=
20
)
@Excel
(
name
=
"factory"
,
orderNum
=
"
1
0"
,
width
=
20
)
private
String
factory
;
@Excel
(
name
=
"size"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"size"
,
orderNum
=
"
11
"
,
width
=
20
)
private
String
size
;
@Excel
(
name
=
"pn"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"pn"
,
orderNum
=
"
12
"
,
width
=
20
)
private
String
pn
;
@Excel
(
name
=
"sypn"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"sypn"
,
orderNum
=
"
13
"
,
width
=
20
)
private
String
sypn
;
@Excel
(
name
=
"po"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"po"
,
orderNum
=
"
14
"
,
width
=
20
)
private
BigDecimal
po
;
@Excel
(
name
=
"fc"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"fc"
,
orderNum
=
"
15
"
,
width
=
20
)
private
BigDecimal
fc
;
@Excel
(
name
=
"qty"
,
orderNum
=
"
0
"
,
width
=
20
)
@Excel
(
name
=
"qty"
,
orderNum
=
"
16
"
,
width
=
20
)
private
BigDecimal
qty
;
@Excel
(
name
=
"up"
,
orderNum
=
"0"
,
width
=
20
)
private
BigDecimal
up
;
@Excel
(
name
=
"currency"
,
orderNum
=
"0"
,
width
=
20
)
private
String
currency
;
@Excel
(
name
=
"rate"
,
orderNum
=
"0"
,
width
=
20
)
private
BigDecimal
rate
;
@Excel
(
name
=
"amt"
,
orderNum
=
"0"
,
width
=
20
)
private
BigDecimal
amt
;
@Excel
(
name
=
"custGroup"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custGroup
;
@Excel
(
name
=
"custGroup2"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custGroup2
;
@Excel
(
name
=
"custRt1"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custRt1
;
@Excel
(
name
=
"custIo"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custIo
;
@Excel
(
name
=
"custNewpic"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custNewpic
;
@Excel
(
name
=
"custGroup1"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custGroup1
;
@Excel
(
name
=
"custRt2"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custRt2
;
@Excel
(
name
=
"custRout"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custRout
;
@Excel
(
name
=
"custAddr"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custAddr
;
@Excel
(
name
=
"custG0"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custG0
;
@Excel
(
name
=
"custG20"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custG20
;
@Excel
(
name
=
"custG30"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custG30
;
@Excel
(
name
=
"custG201"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custG201
;
@Excel
(
name
=
"custSave"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custSave
;
@Excel
(
name
=
"custStype"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custStype
;
@Excel
(
name
=
"custG1"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custG1
;
@Excel
(
name
=
"custYj"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custYj
;
@Excel
(
name
=
"custYj2"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custYj2
;
@Excel
(
name
=
"custYj3"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custYj3
;
@Excel
(
name
=
"custGc"
,
orderNum
=
"0"
,
width
=
20
)
private
String
custGc
;
}
src/main/java/org/rcisoft/bus/jnP7sj/service/impl/jnP7sjServiceImpl.java
View file @
b58f7154
package
org
.
rcisoft
.
bus
.
jnP7sj
.
service
.
impl
;
public
class
jnP7sjServiceImpl
{
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.rcisoft.bus.jnP7sj.dao.jnP7sjRepository
;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.bus.jnP7sj.service.jnP7sjService
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.util.CyUserUtil
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Isolation
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Service
@Transactional
(
readOnly
=
true
,
propagation
=
Propagation
.
NOT_SUPPORTED
)
@Slf4j
public
class
jnP7sjServiceImpl
extends
ServiceImpl
<
jnP7sjRepository
,
jnP7sj
>
implements
jnP7sjService
{
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
public
CyPersistModel
persist
(
jnP7sj
jnP7sj
)
{
int
line
=
baseMapper
.
insert
(
jnP7sj
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"新增了ID为"
+
jnP7sj
.
getBusinessId
()+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
public
CyPersistModel
remove
(
jnP7sj
jnP7sj
)
{
int
line
=
baseMapper
.
realDelete
(
jnP7sj
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"删除了ID为"
+
jnP7sj
.
getBusinessId
()+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
public
CyPersistModel
removeLogical
(
jnP7sj
jnP7sj
)
{
jnP7sj
.
setDeleted
();
int
line
=
baseMapper
.
deleteById
(
jnP7sj
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"逻辑删除了ID为"
+
jnP7sj
.
getBusinessId
()+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
public
CyPersistModel
merge
(
jnP7sj
jnP7sj
)
{
int
line
=
baseMapper
.
updateById
(
jnP7sj
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()+
"修改了ID为"
+
jnP7sj
.
getBusinessId
()+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Override
public
jnP7sj
findById
(
int
id
)
{
return
baseMapper
.
selectById
(
id
);
}
@Override
public
IPage
<
jnP7sj
>
findAllByPagination
(
CyPageInfo
<
jnP7sj
>
paginationUtility
,
jnP7sj
jnP7sj
)
{
return
baseMapper
.
queryjnP7sjPaged
(
paginationUtility
,
jnP7sj
);
}
@Override
public
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
)
{
return
baseMapper
.
queryjnP7sj
(
jnP7sj
);
}
@Override
public
List
<
jnP7sj
>
export
(
jnP7sj
jnP7sj
)
{
List
<
jnP7sj
>
jnP7sjList
=
baseMapper
.
queryjnP7sj
(
jnP7sj
);
return
jnP7sjList
;
}
}
src/main/java/org/rcisoft/bus/jnP7sj/service/jnP7sjService.java
View file @
b58f7154
...
...
@@ -4,22 +4,25 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
org.rcisoft.bus.jnP7sj.entity.jnP7sj
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.bus.jnsp7xtm.dto.Jnsp7xtmOptionDto
;
import
java.util.List
;
public
interface
jnP7sjService
{
CyPersistModel
persist
(
jnP7sj
jnP7sj
);
CyPersistModel
remove
(
jnP7sj
jnP7sj
);
CyPersistModel
removeLogical
(
jnP7sj
jnP7sj
);
CyPersistModel
merge
(
jnP7sj
jnP7sj
);
jnP7sj
findById
(
int
id
);
IPage
<
jnP7sj
>
findAllByPagination
(
CyPageInfo
<
jnP7sj
>
pageInfo
,
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
export
(
jnP7sj
jnP7sj
);
Jnsp7xtmOptionDto
getMath
();
CyPersistModel
dataTableRese
();
CyPersistModel
monthlyTablePull
(
String
takeId
);
TaskInfo
addTaskInfo
();
CyPersistModel
persist
(
jnP7sj
jnP7sj
);
CyPersistModel
remove
(
jnP7sj
jnP7sj
);
CyPersistModel
removeLogical
(
jnP7sj
jnP7sj
);
CyPersistModel
merge
(
jnP7sj
jnP7sj
);
jnP7sj
findById
(
int
id
);
IPage
<
jnP7sj
>
findAllByPagination
(
CyPageInfo
<
jnP7sj
>
paginationUtility
,
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
findAll
(
jnP7sj
jnP7sj
);
List
<
jnP7sj
>
export
(
jnP7sj
jnP7sj
);
}
src/main/java/org/rcisoft/bus/jnsp7xtm/vo/Jnsp7xtmVo.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
jnsp7xtm
.
vo
;
import
lombok.Data
;
import
org.rcisoft.bus.jnsp7xtm.entity.Jnsp7xtm
;
/**
* @Author: gy
* @Date: 2024/5/14 13:43
* @Description:
*/
@Data
public
class
Jnsp7xtmVo
extends
Jnsp7xtm
{
private
String
sypn
;
private
String
custCode
;
private
String
custName
;
private
String
custGroup
;
private
String
custGroup2
;
private
String
custRt1
;
private
String
custIo
;
private
String
custNewpic
;
private
String
custGroup1
;
private
String
custRt2
;
private
String
custRout
;
private
String
custAddr
;
private
String
custG0
;
private
String
custG20
;
private
String
custG30
;
private
String
custG201
;
private
String
custSave
;
private
String
custStype
;
private
String
custG1
;
private
String
custYj
;
private
String
custYj2
;
private
String
custYj3
;
private
String
custGc
;
}
src/main/java/org/rcisoft/bus/taskInfo/controller/taskInfoController.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
taskInfo
.
controller
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.rcisoft.bus.taskInfo.entity.taskInfo
;
import
org.rcisoft.bus.taskInfo.service.taskInfoService
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.constant.CyMessCons
;
import
org.rcisoft.core.controller.CyPaginationController
;
import
org.rcisoft.core.model.CyGridModel
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.operlog.enums.CyLogTypeEnum
;
import
org.rcisoft.core.result.CyResult
;
import
org.rcisoft.core.util.CyEpExcelUtil
;
import
org.rcisoft.core.util.CyResultGenUtil
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.validation.Valid
;
import
java.util.List
;
@RestController
@RequestMapping
(
"/taskInfo"
)
public
class
taskInfoController
extends
CyPaginationController
<
taskInfo
>
{
@Autowired
private
taskInfoService
taskInfoServiceImpl
;
@CyOpeLogAnno
(
title
=
"system-taskInfo管理-新增taskInfo"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@ApiOperation
(
value
=
"添加taskInfo"
,
notes
=
"添加taskInfo"
)
@PostMapping
(
value
=
"/add"
)
public
CyResult
add
(
@Valid
taskInfo
taskInfo
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
taskInfoServiceImpl
.
persist
(
taskInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfo
);
}
@CyOpeLogAnno
(
title
=
"system-?????管理-删除?????"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@ApiOperation
(
value
=
"逻辑删除?????"
,
notes
=
"逻辑删除?????"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/deleteLogical/{businessId:\\w+}"
)
public
CyResult
deleteLogical
(
@Valid
taskInfo
taskInfo
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
taskInfoServiceImpl
.
persist
(
taskInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfo
);
}
@CyOpeLogAnno
(
title
=
"system-?????管理-删除?????"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@ApiOperation
(
value
=
"删除?????"
,
notes
=
"删除?????"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@DeleteMapping
(
"/deleteLogical/{businessId:\\w+}"
)
public
CyResult
delete
(
@Valid
taskInfo
taskInfo
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
taskInfoServiceImpl
.
persist
(
taskInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfo
);
}
@CyOpeLogAnno
(
title
=
"system-?????管理-修改?????"
,
businessType
=
CyLogTypeEnum
.
UPDATE
)
@ApiOperation
(
value
=
"修改?????"
,
notes
=
"修改?????"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@PutMapping
(
"/update/{businessId:\\w+}"
)
public
CyResult
update
(
@Valid
taskInfo
taskInfo
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
taskInfoServiceImpl
.
persist
(
taskInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfo
);
}
@CyOpeLogAnno
(
title
=
"system-?????管理-查询?????"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询单一?????"
,
notes
=
"查询单一?????"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
true
,
dataType
=
"varchar"
)})
@GetMapping
(
"/detail/{businessId:\\w+}"
)
public
CyResult
detail
(
@Valid
taskInfo
taskInfo
,
BindingResult
bindingResult
)
{
CyPersistModel
data
=
taskInfoServiceImpl
.
persist
(
taskInfo
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfo
);
}
@CyOpeLogAnno
(
title
=
"system-?????管理-查询?????"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"查询?????集合"
,
notes
=
"查询?????集合"
)
@GetMapping
(
value
=
"/listAll"
)
public
CyResult
listAll
(
taskInfo
taskInfo
)
{
return
CyResultGenUtil
.
builder
(
new
CyPersistModel
(
1
),
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
taskInfoServiceImpl
.
findAll
(
taskInfo
));
}
@CyOpeLogAnno
(
title
=
"system-?????管理-查询?????"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@ApiOperation
(
value
=
"分页查询?????集合"
,
notes
=
"分页查询?????集合"
)
@GetMapping
(
value
=
"/list"
)
public
CyGridModel
listByPagination
(
taskInfo
taskInfo
)
{
taskInfoServiceImpl
.
findAllByPagination
(
getPaginationUtility
(),
taskInfo
);
return
getGridModelResponse
();
}
@CyOpeLogAnno
(
title
=
"system-?????管理-查询?????"
,
businessType
=
CyLogTypeEnum
.
EXPORT
)
@ApiOperation
(
value
=
"导出?????信息"
,
notes
=
"导出?????信息"
)
@GetMapping
(
value
=
"/export"
)
public
void
outTaskInfo
(
HttpServletResponse
response
,
taskInfo
taskInfo
,
@PathVariable
@RequestParam
(
defaultValue
=
"0"
)
String
excelId
)
{
String
excelName
=
""
;
switch
(
excelId
){
case
"0"
:
excelName
=
"?????信息.xls"
;
break
;
case
"1"
:
excelName
=
"?????信息.xlsx"
;
break
;
case
"2"
:
excelName
=
"?????信息.csv"
;
break
;
}
List
<
taskInfo
>
taskInfoList
=
taskInfoServiceImpl
.
export
(
taskInfo
);
CyEpExcelUtil
.
exportExcel
(
taskInfoList
,
"?????信息"
,
"?????信息"
,
taskInfo
.
class
,
excelName
,
response
);
}
}
src/main/java/org/rcisoft/bus/taskInfo/dao/TaskInfoRepository.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
taskInfo
.
dao
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.apache.ibatis.annotations.Param
;
import
org.rcisoft.bus.taskInfo.entity.taskInfo
;
import
org.rcisoft.core.mapper.CyBaseMapper
;
import
org.rcisoft.core.model.CyPageInfo
;
import
java.util.List
;
public
interface
TaskInfoRepository
extends
CyBaseMapper
<
taskInfo
>
{
List
<
taskInfo
>
queryTaskInfos
(
@Param
(
"entity"
)
taskInfo
taskInfo
);
IPage
<
taskInfo
>
queryTaskInfosPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
taskInfo
taskInfo
);
}
src/main/java/org/rcisoft/bus/taskInfo/entity/taskInfo.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
taskInfo
.
entity
;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
org.rcisoft.core.entity.CyIdIncreEntity
;
@Data
@TableName
(
"task_info"
)
public
class
taskInfo
extends
CyIdIncreEntity
<
taskInfo
>
{
@Excel
(
name
=
"??id"
,
orderNum
=
"0"
,
width
=
20
)
private
String
tackId
;
@Excel
(
name
=
"?? 0:??? 1:???"
,
orderNum
=
"1"
,
width
=
20
)
private
String
status
;
@Excel
(
name
=
"??"
,
orderNum
=
"2"
,
width
=
20
)
private
String
type
;
}
src/main/java/org/rcisoft/bus/taskInfo/service/impl/taskInfoServiceImpl.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
taskInfo
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.rcisoft.bus.taskInfo.dao.TaskInfoRepository
;
import
org.rcisoft.bus.taskInfo.entity.taskInfo
;
import
org.rcisoft.bus.taskInfo.service.taskInfoService
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
org.rcisoft.core.util.CyUserUtil
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Service
@Slf4j
@Transactional
(
readOnly
=
true
,
propagation
=
Propagation
.
NOT_SUPPORTED
)
public
class
taskInfoServiceImpl
extends
ServiceImpl
<
TaskInfoRepository
,
taskInfo
>
implements
taskInfoService
{
@Override
public
CyPersistModel
persist
(
taskInfo
taskInfo
)
{
int
line
=
baseMapper
.
insert
(
taskInfo
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()
+
"新增了ID为"
+
taskInfo
.
getBusinessId
()
+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Override
public
CyPersistModel
remove
(
taskInfo
taskInfo
)
{
int
line
=
baseMapper
.
realDelete
(
taskInfo
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()
+
"删除了ID为"
+
taskInfo
.
getBusinessId
()
+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Override
public
CyPersistModel
removeLogical
(
taskInfo
taskInfo
)
{
int
line
=
baseMapper
.
deleteById
(
taskInfo
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()
+
"删除了ID为"
+
taskInfo
.
getBusinessId
()
+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Override
public
CyPersistModel
merge
(
taskInfo
taskInfo
)
{
int
line
=
baseMapper
.
updateById
(
taskInfo
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()
+
"修改了ID为"
+
taskInfo
.
getBusinessId
()
+
"的信息"
);
return
new
CyPersistModel
(
line
);
}
@Override
public
taskInfo
findById
(
int
id
)
{
return
baseMapper
.
selectById
(
id
);
}
@Override
public
IPage
<
taskInfo
>
findAllByPagination
(
CyPageInfo
<
taskInfo
>
paginationUtility
,
taskInfo
taskInfo
)
{
return
baseMapper
.
queryTaskInfosPaged
(
paginationUtility
,
taskInfo
);
}
@Override
public
List
<
taskInfo
>
findAll
(
taskInfo
taskInfo
)
{
return
baseMapper
.
queryTaskInfos
(
taskInfo
);
}
@Override
public
List
<
taskInfo
>
export
(
taskInfo
taskInfo
)
{
List
<
taskInfo
>
taskInfoList
=
baseMapper
.
queryTaskInfos
(
taskInfo
);
return
taskInfoList
;
}
}
src/main/java/org/rcisoft/bus/taskInfo/service/taskInfoService.java
deleted
100644 → 0
View file @
b2dbabeb
package
org
.
rcisoft
.
bus
.
taskInfo
.
service
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
org.rcisoft.bus.taskInfo.entity.taskInfo
;
import
org.rcisoft.core.model.CyPageInfo
;
import
org.rcisoft.core.model.CyPersistModel
;
import
java.util.List
;
public
interface
taskInfoService
{
CyPersistModel
persist
(
taskInfo
taskInfo
);
CyPersistModel
remove
(
taskInfo
taskInfo
);
CyPersistModel
removeLogical
(
taskInfo
taskInfo
);
CyPersistModel
merge
(
taskInfo
taskInfo
);
taskInfo
findById
(
int
id
);
IPage
<
taskInfo
>
findAllByPagination
(
CyPageInfo
<
taskInfo
>
paginationUtility
,
taskInfo
taskInfo
);
List
<
taskInfo
>
findAll
(
taskInfo
taskInfo
);
List
<
taskInfo
>
export
(
taskInfo
taskInfo
);
}
src/main/resources/mapper/bus/jnP7sj/mapper/Jnsp7xtmDqsjRepository.xml
deleted
100644 → 0
View file @
b2dbabeb
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/bus/jnP7sj/mapper/jnP7sjRepository.xml
0 → 100644
View file @
b58f7154
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"org.rcisoft.bus.jnP7sj.dao.jnP7sjRepository"
>
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.bus.jnP7sj.entity.jnP7sj"
>
<id
column=
"business_id"
jdbcType=
"BIGINT"
property=
"businessId"
/>
<result
column=
"term"
jdbcType=
"VARCHAR"
property=
"term"
/>
<result
column=
"half"
jdbcType=
"VARCHAR"
property=
"half"
/>
<result
column=
"quarter"
jdbcType=
"VARCHAR"
property=
"quarter"
/>
<result
column=
"month"
jdbcType=
"VARCHAR"
property=
"month"
/>
<result
column=
"cc"
jdbcType=
"VARCHAR"
property=
"cc"
/>
<result
column=
"cn"
jdbcType=
"VARCHAR"
property=
"cn"
/>
<result
column=
"io"
jdbcType=
"VARCHAR"
property=
"io"
/>
<result
column=
"route"
jdbcType=
"VARCHAR"
property=
"route"
/>
<result
column=
"pc"
jdbcType=
"VARCHAR"
property=
"pc"
/>
<result
column=
"factory"
jdbcType=
"VARCHAR"
property=
"factory"
/>
<result
column=
"size"
jdbcType=
"VARCHAR"
property=
"size"
/>
<result
column=
"pn"
jdbcType=
"VARCHAR"
property=
"pn"
/>
<result
column=
"po"
jdbcType=
"DECIMAL"
property=
"po"
/>
<result
column=
"fc"
jdbcType=
"DECIMAL"
property=
"fc"
/>
<result
column=
"qty"
jdbcType=
"DECIMAL"
property=
"qty"
/>
</resultMap>
<select
id=
"queryjnP7sj"
resultMap=
"BaseResultMap"
>
select * from jnsp7xtm_dqsj
where 1=1
<if
test=
"entity.term !=null and entity.term != '' "
>
and term = #{entity.term}
</if>
<if
test=
"entity.half !=null and entity.half != '' "
>
and half like concat('%',#{entity.half},'%')
</if>
<if
test=
"entity.quarter !=null and entity.quarter != '' "
>
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if
test=
"entity.month !=null and entity.month != '' "
>
and `month` like concat('%',#{entity.month},'%')
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if
test=
"entity.cc !=null and entity.cc != '' "
>
and cc like concat('%',#{entity.cc},'%')
</if>
<if
test=
"entity.cn !=null and entity.cn != '' "
>
and cn like concat('%',#{entity.cn},'%')
</if>
<if
test=
"entity.io !=null and entity.io != '' "
>
and io like concat('%',#{entity.io},'%')
</if>
<if
test=
"entity.route !=null and entity.route != '' "
>
and route like concat('%',#{entity.route},'%')
</if>
<if
test=
"entity.pc !=null and entity.pc != '' "
>
and pc like concat('%',#{entity.pc},'%')
</if>
<if
test=
"entity.factory !=null and entity.factory != '' "
>
and factory like concat('%',#{entity.factory},'%')
</if>
<if
test=
"entity.size !=null and entity.size != '' "
>
and size like concat('%',#{entity.size},'%')
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.po !=null and entity.po != '' "
>
and po = #{entity.po}
</if>
<if
test=
"entity.fc !=null and entity.fc != '' "
>
and fc = #{entity.fc}
</if>
<if
test=
"entity.qty !=null and entity.qty != '' "
>
and qty = #{entity.qty}
</if>
ORDER BY business_id DESC
</select>
<select
id=
"queryjnP7sjPaged"
resultMap=
"BaseResultMap"
>
select * from jnsp7xtm_dqsj
where 1=1
<if
test=
"entity.term !=null and entity.term != '' "
>
and term like concat('%',#{entity.term},'%')
</if>
<if
test=
"entity.half !=null and entity.half != '' "
>
and half like concat('%',#{entity.half},'%')
</if>
<if
test=
"entity.quarter !=null and entity.quarter != '' "
>
and quarter like concat('%',#{entity.quarter},'%')
</if>
<if
test=
"entity.month !=null and entity.month != '' "
>
and month = #{entity.month}
</if>
<if
test=
"entity.cc !=null and entity.cc != '' "
>
and cc like concat('%',#{entity.cc},'%')
</if>
<if
test=
"entity.sypn !=null and entity.sypn != '' "
>
and sypn like concat('%',#{entity.sypn},'%')
</if>
<if
test=
"entity.cn !=null and entity.cn != '' "
>
and cn like concat('%',#{entity.cn},'%')
</if>
<if
test=
"entity.io !=null and entity.io != '' "
>
and io like concat('%',#{entity.io},'%')
</if>
<if
test=
"entity.route !=null and entity.route != '' "
>
and route like concat('%',#{entity.route},'%')
</if>
<if
test=
"entity.pc !=null and entity.pc != '' "
>
and pc like concat('%',#{entity.pc},'%')
</if>
<if
test=
"entity.factory !=null and entity.factory != '' "
>
and factory like concat('%',#{entity.factory},'%')
</if>
<if
test=
"entity.size !=null and entity.size != '' "
>
and size like concat('%',#{entity.size},'%')
</if>
<if
test=
"entity.pn !=null and entity.pn != '' "
>
and pn like concat('%',#{entity.pn},'%')
</if>
<if
test=
"entity.po !=null and entity.po != '' "
>
and po = #{entity.po}
</if>
<if
test=
"entity.fc !=null and entity.fc != '' "
>
and fc = #{entity.fc}
</if>
<if
test=
"entity.qty !=null and entity.qty != '' "
>
and qty = #{entity.qty}
</if>
ORDER BY business_id DESC
</select>
<select
id=
"getMonthList"
resultMap=
"BaseResultMap"
>
SELECT
DISTINCT month
FROM
jnsp7xtm_dqsj
</select>
</mapper>
src/main/resources/mapper/bus/taskInfo/mapper/TaskInfoRepository.xml
deleted
100644 → 0
View file @
b2dbabeb
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper
namespace=
"org.rcisoft.bus.taskInfo.dao.TaskInfoRepository"
>
<resultMap
id=
"BaseResultMap"
type=
"org.rcisoft.bus.taskInfo.entity.taskInfo"
>
<id
column=
"business_id"
jdbcType=
"BIGINT"
property=
"businessId"
/>
<result
column=
"flag"
jdbcType=
"NCHAR"
property=
"flag"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_date"
jdbcType=
"TIMESTAMP"
property=
"updateDate"
/>
<result
column=
"remarks"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
<result
column=
"tack_id"
jdbcType=
"VARCHAR"
property=
"tackId"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"type"
jdbcType=
"VARCHAR"
property=
"type"
/>
<result
column=
"del_flag"
jdbcType=
"NCHAR"
property=
"delFlag"
/>
</resultMap>
<select
id=
"queryTaskInfos"
resultMap=
"BaseResultMap"
>
select *from task_info where 1=1
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag!= ' ' "
>
and flag=#{entity.flag}
</if>
<if
test=
"entity.taskId !=null and entity.tackId != '' "
>
and tack_id=#{entity.tackId}
</if>
<if
test=
"entity.status !=null and entity.status !=''"
>
and status like concat('%',#{entity.status},'%')
</if>
<if
test=
"entity.type !=null and entity.type !=''"
>
and type like concat('%',#{entity.type},'%')
</if>
ORDER BY business_id DESC
</select>
<select
id=
"queryTaskInfosPaged"
resultMap=
"BaseResultMap"
>
select *from task_info where 1=1
and del_flag = '0'
<if
test=
"entity.flag !=null and entity.flag!= ' ' "
>
and flag=#{entity.flag}
</if>
<if
test=
"entity.taskId !=null and entity.tackId != '' "
>
and tack_id=#{entity.tackId}
</if>
<if
test=
"entity.status !=null and entity.status !=''"
>
and status like concat('%',#{entity.status},'%')
</if>
<if
test=
"entity.type !=null and entity.type !=''"
>
and type like concat('%',#{entity.type},'%')
</if>
ORDER BY business_id DESC
</select>
</mapper>
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