Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
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
鲁鑫
topsun-bpm
Commits
b97106ee
Commit
b97106ee
authored
Nov 30, 2023
by
覃振观
👶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
ae21331c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
55 additions
and
16 deletions
+55
-16
AttachmentExplainApplication.java
...mentExplain/application/AttachmentExplainApplication.java
+0
-0
AttachmentExplainApplicationImpl.java
...in/application/impl/AttachmentExplainApplicationImpl.java
+0
-0
AttachmentExplainController.java
...chmentExplain/controller/AttachmentExplainController.java
+0
-0
AttachmentExplain.java
...18n/attachmentExplain/domain/model/AttachmentExplain.java
+0
-0
AttachmentExplainQueryRequest.java
...ntExplain/domain/query/AttachmentExplainQueryRequest.java
+0
-0
AttachmentExplainRepository.java
...chmentExplain/repository/AttachmentExplainRepository.java
+0
-0
LeaveController.java
...va/com/huigou/topsun/demo/controller/LeaveController.java
+1
-1
ResourceSearchController.java
...igou/topsun/demo/controller/ResourceSearchController.java
+1
-1
ProductApplication.java
...huigou/topsun/product/application/ProductApplication.java
+3
-1
ProductApplicationImpl.java
...psun/product/application/impl/ProductApplicationImpl.java
+13
-6
ProductController.java
...m/huigou/topsun/product/controller/ProductController.java
+36
-7
ProofingMakeServiceImpl.java
...topsun/proofing/service/impl/ProofingMakeServiceImpl.java
+1
-0
No files found.
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/application/AttachmentExplainApplication.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/application/AttachmentExplainApplication.java
View file @
b97106ee
File moved
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/application/impl/AttachmentExplainApplicationImpl.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/application/impl/AttachmentExplainApplicationImpl.java
View file @
b97106ee
File moved
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/controller/AttachmentExplainController.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/controller/AttachmentExplainController.java
View file @
b97106ee
File moved
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/domain/model/AttachmentExplain.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/domain/model/AttachmentExplain.java
View file @
b97106ee
File moved
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/domain/query/AttachmentExplainQueryRequest.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/domain/query/AttachmentExplainQueryRequest.java
View file @
b97106ee
File moved
topsun
/src/main/java/com/huigou/topsun/base
/attachmentExplain/repository/AttachmentExplainRepository.java
→
topsun
-xt/src/main/resources/i18n
/attachmentExplain/repository/AttachmentExplainRepository.java
View file @
b97106ee
File moved
topsun/src/main/java/com/huigou/topsun/demo/controller/LeaveController.java
View file @
b97106ee
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Controller;
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Controller;
*/
*/
@ControllerMapping
(
"/leave"
)
@ControllerMapping
(
"/leave"
)
@Controller
@Controller
public
class
LeaveController
extends
CommonController
{
class
LeaveController
extends
CommonController
{
@Autowired
@Autowired
private
LeaveApplication
leaveApplication
;
private
LeaveApplication
leaveApplication
;
...
...
topsun/src/main/java/com/huigou/topsun/
easySearch
/controller/ResourceSearchController.java
→
topsun/src/main/java/com/huigou/topsun/
demo
/controller/ResourceSearchController.java
View file @
b97106ee
package
com
.
huigou
.
topsun
.
easySearch
.
controller
;
package
com
.
huigou
.
topsun
.
demo
.
controller
;
import
com.huigou.topsun.resource.service.ResourceFiledService
;
import
com.huigou.topsun.resource.service.ResourceFiledService
;
import
com.huigou.topsun.technology.application.ProcessApplication
;
import
com.huigou.topsun.technology.application.ProcessApplication
;
...
...
topsun/src/main/java/com/huigou/topsun/product/application/ProductApplication.java
View file @
b97106ee
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.product.application;
...
@@ -3,6 +3,8 @@ package com.huigou.topsun.product.application;
import
com.huigou.topsun.product.domain.Product
;
import
com.huigou.topsun.product.domain.Product
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -20,7 +22,7 @@ public interface ProductApplication {
...
@@ -20,7 +22,7 @@ public interface ProductApplication {
* @author qinzhenguan
* @author qinzhenguan
* @create: 2023/11/29 9:34
* @create: 2023/11/29 9:34
*/
*/
Page
<
Product
>
findProductPage
(
int
page
,
int
size
);
ArrayList
<
Map
<
String
,
Object
>
>
findProductPage
(
int
page
,
int
size
);
/**
/**
* description 获取产品所有信息
* description 获取产品所有信息
...
...
topsun/src/main/java/com/huigou/topsun/product/application/impl/ProductApplicationImpl.java
View file @
b97106ee
...
@@ -46,11 +46,18 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -46,11 +46,18 @@ public class ProductApplicationImpl implements ProductApplication {
private
final
ProductFaceColorRepository
faceColorRepository
;
private
final
ProductFaceColorRepository
faceColorRepository
;
@Override
@Override
public
Page
<
Product
>
findProductPage
(
int
page
,
int
size
)
{
public
ArrayList
<
Map
<
String
,
Object
>>
findProductPage
(
int
page
,
int
size
)
{
PageRequest
pageRequest
=
new
PageRequest
(
page
,
size
);
// PageRequest pageRequest = new PageRequest(page, size);
Page
<
Product
>
productPage
=
productRepository
.
findAll
(
pageRequest
);
// Page<Product> productPage = productRepository.findAll(pageRequest);
productPage
.
getContent
().
stream
().
map
(
Product:
:
toString
).
forEach
(
System
.
out
::
println
);
// mapList.getContent().stream().map(Product::toString).forEach(System.out::println);
return
productPage
;
ArrayList
<
Product
>
productPage
=
(
ArrayList
<
Product
>)
productRepository
.
findAll
();
ObjectMapper
mapper
=
new
ObjectMapper
();
ArrayList
<
Map
<
String
,
Object
>>
mapList
=
(
ArrayList
<
Map
<
String
,
Object
>>)
mapper
.
convertValue
(
productPage
,
List
.
class
);
// convert = mapList.stream().collect(Collectors.toMap(index -> index, Function.identity(),
// (oldV, newV) -> oldV));
return
mapList
;
}
}
/**
/**
...
@@ -64,7 +71,7 @@ public class ProductApplicationImpl implements ProductApplication {
...
@@ -64,7 +71,7 @@ public class ProductApplicationImpl implements ProductApplication {
public
Map
<
String
,
Object
>
queryDetailAll
(
int
productId
)
{
public
Map
<
String
,
Object
>
queryDetailAll
(
int
productId
)
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
ProductDetail
productDetail
=
detailRepository
.
findByProductIdEquals
((
long
)
productId
);
ProductDetail
productDetail
=
detailRepository
.
findByProductIdEquals
((
long
)
productId
);
resultMap
.
put
(
"detai"
,
productDetail
);
resultMap
.
put
(
"detai
l
"
,
productDetail
);
// EntityManager manager = JPAUtils.getEntityManger();
// EntityManager manager = JPAUtils.getEntityManger();
// manager.getTransaction().begin();
// manager.getTransaction().begin();
// manager.flush();
// manager.flush();
...
...
topsun/src/main/java/com/huigou/topsun/product/controller/ProductController.java
View file @
b97106ee
package
com
.
huigou
.
topsun
.
product
.
controller
;
package
com
.
huigou
.
topsun
.
product
.
controller
;
import
com.huigou.topsun.base.coderule.domain.model.CodeRuleKind
;
import
com.huigou.topsun.product.domain.Product
;
import
com.huigou.topsun.product.domain.Product
;
import
com.huigou.topsun.product.application.ProductApplication
;
import
com.huigou.topsun.product.application.ProductApplication
;
import
com.huigou.topsun.resource.vo.ResourceFiledVo
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.client.CommonController
;
import
com.huigou.uasp.client.CommonController
;
...
@@ -9,6 +11,9 @@ import com.huigou.util.SDO;
...
@@ -9,6 +11,9 @@ import com.huigou.util.SDO;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -23,27 +28,51 @@ public class ProductController extends CommonController {
...
@@ -23,27 +28,51 @@ public class ProductController extends CommonController {
@Autowired
@Autowired
private
ProductApplication
productService
;
private
ProductApplication
productService
;
@Override
protected
String
getPagePath
()
{
return
"/biz/topsun/product/"
;
}
/**
/**
* description
* description
* @author qinzhenguan
* @author qinzhenguan
* @date 2023/11/27 11:49
* @date 2023/11/27 11:49
* @return null
* @return null
*/
*/
public
String
findProduct
()
{
//需要特定返回值
public
String
findProduct
()
{
//需要特定
类型
返回值
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
int
page
=
sdo
.
getInteger
(
"page"
);
// int page = sdo.getInteger("page");
int
size
=
sdo
.
getInteger
(
"size"
);
// int size = sdo.getInteger("size");
Page
<
Product
>
productPage
=
productService
.
findProductPage
(
page
,
size
);
ArrayList
<
Map
<
String
,
Object
>>
productPage
=
productService
.
findProductPage
(
0
,
30
);
return
toResult
(
productPage
);
HashMap
<
Object
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"Rows"
,
productPage
);
return
toResult
(
map
);
}
}
public
String
queryDetailAll
()
{
public
String
queryDetailAll
()
{
SDO
sdo
=
this
.
getSDO
();
SDO
sdo
=
this
.
getSDO
();
int
productId
=
sdo
.
getInteger
(
"productI
d"
);
String
productId
=
sdo
.
getString
(
"i
d"
);
Map
<
String
,
Object
>
map
=
productService
.
queryDetailAll
(
productId
);
Map
<
String
,
Object
>
map
=
productService
.
queryDetailAll
(
Integer
.
parseInt
(
productId
)
);
return
toResult
(
map
);
return
toResult
(
map
);
}
}
public
String
forwardProduct
()
{
this
.
putAttribute
(
"ruleKindList"
,
CodeRuleKind
.
getMap
());
return
forward
(
"product"
);
}
public
String
forwardProductDetail
()
{
SDO
sdo
=
this
.
getSDO
();
String
productId
=
sdo
.
getString
(
"productId"
);
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"productId"
,
productId
);
Map
<
String
,
Object
>
map2
=
productService
.
queryDetailAll
(
Integer
.
parseInt
(
productId
));
return
forward
(
"productDetail"
,
map
);
}
}
}
\ No newline at end of file
topsun/src/main/java/com/huigou/topsun/proofing/service/impl/ProofingMakeServiceImpl.java
View file @
b97106ee
...
@@ -34,6 +34,7 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
...
@@ -34,6 +34,7 @@ public class ProofingMakeServiceImpl implements ProofingMakeService {
@Override
public
List
<
ProofingMakeVo
>
getProofingMakeVoList
(){
public
List
<
ProofingMakeVo
>
getProofingMakeVoList
(){
List
<
ProofingMake
>
makeAll
=
proofingMakeRepository
.
findAll
();
List
<
ProofingMake
>
makeAll
=
proofingMakeRepository
.
findAll
();
List
<
ProofingMakeVo
>
makeVoList
=
new
ArrayList
<>();
List
<
ProofingMakeVo
>
makeVoList
=
new
ArrayList
<>();
...
...
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