jack_zhang

Results 70 comments of jack_zhang

一: 根据json里面的某个字段进行查询的方法 ```` @Query(value = "select * from workflow_template_node n where n.workflow_template_info_id=:#{#workflowTemplateInfoId} and JSON_CONTAINS(JSON_EXTRACT(n.parents, '$[*].parentNodeId'),JSON_ARRAY(:#{#nodeId}))", nativeQuery = true) List findByParentId(@Param("workflowTemplateInfoId") Long workflowTemplateInfoId, @Param("nodeId") Long nodeId); ```` json的一些函数参考:https://www.cnblogs.com/ivictor/p/16221712.html

新增和更新可以参考:https://github.com/zhangzhenhuajack/spring-data-jpa-guide/issues/59 查询感觉就是正常的按照条件查询就行

可以体验一下如下配置 ```` logging: level: org.hibernate.SQL: debug org.hibernate.engine.QueryParameters: debug org.hibernate.engine.query.HQLQueryPlan: debug org.hibernate.type.descriptor.sql.BasicBinder: trace ```` ![image](https://github.com/zhangzhenhuajack/spring-data-jpa-guide/assets/11462004/b98ef0b0-6209-4d56-bec1-d989217187a9) 更详细的参考:https://blog.csdn.net/qq_35387940/article/details/102563845

使用URL的情况遇到的问题大致相同,有些区别,如这里用了@RequestPart,显示没有boundary,但应该Spring默认会处理 ![企业微信截图_b576d562-de2d-43b8-a8df-208bc54d9417](https://user-images.githubusercontent.com/11462004/212289276-c4d94d2d-3fd8-46dc-b9cf-86f9bf52d3dc.png) ![企业微信截图_00230e53-d9cc-4ecb-9315-3c896e6bb702](https://user-images.githubusercontent.com/11462004/212289287-a3d6cea8-6ad4-4b95-b658-875bd85a1ba3.png)

当controller中的@RequestPart的name和feign中的name一致时,API也是可以通的 ![企业微信截图_a45b0d21-cb7f-4ccd-8c9d-30f875d9a0f9](https://user-images.githubusercontent.com/11462004/212289543-bd340195-f8ed-4a25-9f95-191027993cdd.png) ![企业微信截图_eecd327f-4dd8-4e9a-a91c-a0deb6e0db11](https://user-images.githubusercontent.com/11462004/212289587-ee915b81-2ce1-40ad-a411-f626b729081b.png)

when I git pull update , still has error. @GlassOfWhiskey ```` 2023-03-17 16:04:24.132 ERROR Error transferring file /home/zhenhua.zhang/tmp/79022d8f-319d-4c6c-856f-a5d0151f0fa4/cs in location openmpi-rel-574588bf6b-hrjjw:openmpi to /home/zhenhua.zhang/tmp/410468d9-63dd-4981-ae79-7dac1fd0e2ec/c549d3c3-e74a-41f0-b836-c17675dc79da/cs in location helm-mpi/openmpi/openmpi-rel-574588bf6b-v8mls:openmpi ```` ![image](https://user-images.githubusercontent.com/11462004/225848335-d3ef86fc-75dd-40c8-9d55-21e3f4997404.png) streamflow run...

> ```` ~/streamflow/streamflow/examples/mpi on master !1 ?1 > streamflow run --debug streamflow_jk.yml py cwl with zhenhua.zhang@mixbio-dev-2 at 09:37:47 Resolved 'cwl/main.cwl' to 'file:///data/home/zhenhua.zhang/streamflow/streamflow/examples/mpi/cwl/main.cwl' 2023-03-20 09:38:05.790 INFO Processing workflow 6bd446a7-3b12-4280-9dbe-d222c1d581b8 2023-03-20 09:38:05.790...

this pod is running,but pod can not interact with location's file. @GlassOfWhiskey

if streamflow can directly support `kubectl` command,my personal tasks may be more powerful than helm。I may be think: 'Helm focuses on managing YML, and Kubeclt focuses on managing k8s's sources,like(...