jack_zhang
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://www.baeldung.com/jpa-entity-lifecycle-events
新增和更新可以参考: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 ````  更详细的参考:https://blog.csdn.net/qq_35387940/article/details/102563845
使用URL的情况遇到的问题大致相同,有些区别,如这里用了@RequestPart,显示没有boundary,但应该Spring默认会处理  
当controller中的@RequestPart的name和feign中的name一致时,API也是可以通的  
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 ````  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(...