提交 599a270d 编写于 作者: ibizdev's avatar ibizdev

generator before deploy...

generator before deploy registry.cn-shanghai.aliyuncs.com/ibizsys/samplesolution-demosys-api-demoapi:2022.11.08.001
上级 8c696adc
......@@ -12,4 +12,4 @@
**.iml
*.jar
*.log
.DS_Store
.DS_Store
\ No newline at end of file
......@@ -24,6 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
@EnableFeignClients(basePackages = {"cn.ibizlab.util","cn.ibizlab"})
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration.class,
org.springframework.boot.autoconfigure.data.mongo.MongoRepositoriesAutoConfiguration.class,
com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure.class
})
@ComponentScan(basePackages = {"cn.ibizlab.util","cn.ibizlab"}
......@@ -50,4 +51,4 @@ public class BootApplication extends WebMvcConfigurerAdapter {
super.addArgumentResolvers(argumentResolvers);
argumentResolvers.add(resolver);
}
}
}
\ No newline at end of file
......@@ -10,8 +10,8 @@
</parent>
<artifactId>demo-core</artifactId>
<name>后台服务 Core</name>
<description>后台服务 Core</description>
<name>Demo Core</name>
<description>后台服务 Core,模板生成代码,再次发布会覆盖,建议不要直接修改,修改请在demo-boot项目中继承或覆盖重写</description>
<dependencies>
......@@ -20,6 +20,14 @@
<artifactId>ibizlab-boot-starter-data</artifactId>
<version>2.4.0-SNAPSHOT</version>
</dependency>
<!-- MySQL驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
<properties>
......@@ -93,4 +101,4 @@
</profile>
</profiles>
</project>
</project>
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface DYNADASHBOARDService extends IService<DYNADASHBOARD> {
Page<DYNADASHBOARD> searchDefault(DYNADASHBOARDSearchContext context);
List<DYNADASHBOARD> listDefault(DYNADASHBOARDSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZAPPCTRLService extends IService<IBIZAPPCTRL> {
Page<IBIZAPPCTRL> searchDefault(IBIZAPPCTRLSearchContext context);
List<IBIZAPPCTRL> listDefault(IBIZAPPCTRLSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZAPPEDITORService extends IService<IBIZAPPEDITOR> {
Page<IBIZAPPEDITOR> searchDefault(IBIZAPPEDITORSearchContext context);
List<IBIZAPPEDITOR> listDefault(IBIZAPPEDITORSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZAPPEXTENDEDITORService extends IService<IBIZAPPEXTENDEDITOR
Page<IBIZAPPEXTENDEDITOR> searchDefault(IBIZAPPEXTENDEDITORSearchContext context);
List<IBIZAPPEXTENDEDITOR> listDefault(IBIZAPPEXTENDEDITORSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZAPPVIEWService extends IService<IBIZAPPVIEW> {
Page<IBIZAPPVIEW> searchDefault(IBIZAPPVIEWSearchContext context);
List<IBIZAPPVIEW> listDefault(IBIZAPPVIEWSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -94,4 +94,20 @@ public interface IBIZAccountService extends IService<IBIZAccount> {
return getSelf().saveByIbizcustomer(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -103,4 +103,20 @@ public interface IBIZBOOKService extends IService<IBIZBOOK> {
Page<IBIZBOOK> searchDefault(IBIZBOOKSearchContext context);
List<IBIZBOOK> listDefault(IBIZBOOKSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -84,4 +84,20 @@ public interface IBIZCPUService extends IService<IBIZCPU> {
Page<IBIZCPU> searchDefault(IBIZCPUSearchContext context);
List<IBIZCPU> listDefault(IBIZCPUSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZCustomService extends IService<IBIZCustom> {
Page<IBIZCustom> searchDefault(IBIZCustomSearchContext context);
List<IBIZCustom> listDefault(IBIZCustomSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -84,4 +84,20 @@ public interface IBIZCustomerMGService extends IService<IBIZCustomerMG> {
Page<IBIZCustomerMG> searchDefault(IBIZCustomerMGSearchContext context);
List<IBIZCustomerMG> listDefault(IBIZCustomerMGSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZCustomerService extends IService<IBIZCustomer> {
Page<IBIZCustomer> searchDefault(IBIZCustomerSearchContext context);
List<IBIZCustomer> listDefault(IBIZCustomerSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -90,4 +90,20 @@ public interface IBIZCustomer_INTFService extends IService<IBIZCustomer_INTF> {
Page<IBIZCustomer_INTF> searchDefault(IBIZCustomer_INTFSearchContext context);
List<IBIZCustomer_INTF> listDefault(IBIZCustomer_INTFSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -84,4 +84,20 @@ public interface IBIZHardwareService extends IService<IBIZHardware> {
Page<IBIZHardware> searchDefault(IBIZHardwareSearchContext context);
List<IBIZHardware> listDefault(IBIZHardwareSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -162,4 +162,20 @@ public interface IBIZOrderDetailService extends IService<IBIZOrderDetail> {
return getSelf().saveByIbizuniproduct(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -190,4 +190,20 @@ public interface IBIZOrderService extends IService<IBIZOrder> {
return getSelf().saveByIbizcustomer(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -87,4 +87,20 @@ public interface IBIZOrderTypeService extends IService<IBIZOrderType> {
Page<IBIZOrderType> searchDefault(IBIZOrderTypeSearchContext context);
List<IBIZOrderType> listDefault(IBIZOrderTypeSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZQJService extends IService<IBIZQJ> {
Page<IBIZQJ> searchDefault(IBIZQJSearchContext context);
List<IBIZQJ> listDefault(IBIZQJSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -94,4 +94,20 @@ public interface IBIZSample0001Service extends IService<IBIZSample0001> {
return getSelf().saveBySample0002Sample00011N(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0002Service extends IService<IBIZSample0002> {
Page<IBIZSample0002> searchDefault(IBIZSample0002SearchContext context);
List<IBIZSample0002> listDefault(IBIZSample0002SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -99,4 +99,20 @@ public interface IBIZSample0003Service extends IService<IBIZSample0003> {
return getSelf().saveByPibizsample0003(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0004Service extends IService<IBIZSample0004> {
Page<IBIZSample0004> searchDefault(IBIZSample0004SearchContext context);
List<IBIZSample0004> listDefault(IBIZSample0004SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0005Service extends IService<IBIZSample0005> {
Page<IBIZSample0005> searchDefault(IBIZSample0005SearchContext context);
List<IBIZSample0005> listDefault(IBIZSample0005SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0006Service extends IService<IBIZSample0006> {
Page<IBIZSample0006> searchDefault(IBIZSample0006SearchContext context);
List<IBIZSample0006> listDefault(IBIZSample0006SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -97,4 +97,20 @@ public interface IBIZSample0007Service extends IService<IBIZSample0007> {
return getSelf().saveByIbizsample0006(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0008Service extends IService<IBIZSample0008> {
Page<IBIZSample0008> searchDefault(IBIZSample0008SearchContext context);
List<IBIZSample0008> listDefault(IBIZSample0008SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0009Service extends IService<IBIZSample0009> {
Page<IBIZSample0009> searchDefault(IBIZSample0009SearchContext context);
List<IBIZSample0009> listDefault(IBIZSample0009SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -86,4 +86,20 @@ public interface IBIZSample0010Service extends IService<IBIZSample0010> {
default IBIZSample0010SearchContext getSearchContext() {
return new IBIZSample0010SearchContext();
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -105,4 +105,20 @@ public interface IBIZSample0011Service extends IService<IBIZSample0011> {
return getSelf().saveByIbizuniproduct(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -86,4 +86,20 @@ public interface IBIZSample0012Service extends IService<IBIZSample0012> {
default IBIZSample0012SearchContext getSearchContext() {
return new IBIZSample0012SearchContext();
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -105,4 +105,20 @@ public interface IBIZSample0013Service extends IService<IBIZSample0013> {
return getSelf().saveByIbizuniproduct(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -97,4 +97,20 @@ public interface IBIZSample0014Service extends IService<IBIZSample0014> {
return getSelf().saveByIbizSample0003(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0015Service extends IService<IBIZSample0015> {
Page<IBIZSample0015> searchDefault(IBIZSample0015SearchContext context);
List<IBIZSample0015> listDefault(IBIZSample0015SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -105,4 +105,20 @@ public interface IBIZSample0016Service extends IService<IBIZSample0016> {
return getSelf().saveByIbizsample0015(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -86,4 +86,20 @@ public interface IBIZSample0017Service extends IService<IBIZSample0017> {
default IBIZSample0017SearchContext getSearchContext() {
return new IBIZSample0017SearchContext();
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0018Service extends IService<IBIZSample0018> {
Page<IBIZSample0018> searchDefault(IBIZSample0018SearchContext context);
List<IBIZSample0018> listDefault(IBIZSample0018SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0019Service extends IService<IBIZSample0019> {
Page<IBIZSample0019> searchDefault(IBIZSample0019SearchContext context);
List<IBIZSample0019> listDefault(IBIZSample0019SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -94,4 +94,20 @@ public interface IBIZSample0020Service extends IService<IBIZSample0020> {
return getSelf().saveByIbizsample0019(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSample0021Service extends IService<IBIZSample0021> {
Page<IBIZSample0021> searchDefault(IBIZSample0021SearchContext context);
List<IBIZSample0021> listDefault(IBIZSample0021SearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSampleService extends IService<IBIZSample> {
Page<IBIZSample> searchDefault(IBIZSampleSearchContext context);
List<IBIZSample> listDefault(IBIZSampleSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -84,4 +84,20 @@ public interface IBIZSoftwareSuitService extends IService<IBIZSoftwareSuit> {
Page<IBIZSoftwareSuit> searchDefault(IBIZSoftwareSuitSearchContext context);
List<IBIZSoftwareSuit> listDefault(IBIZSoftwareSuitSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -84,4 +84,20 @@ public interface IBIZStorageService extends IService<IBIZStorage> {
Page<IBIZStorage> searchDefault(IBIZStorageSearchContext context);
List<IBIZStorage> listDefault(IBIZStorageSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZSupplierService extends IService<IBIZSupplier> {
Page<IBIZSupplier> searchDefault(IBIZSupplierSearchContext context);
List<IBIZSupplier> listDefault(IBIZSupplierSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -126,4 +126,20 @@ public interface IBIZTASKService extends IService<IBIZTASK> {
List<IBIZTASKTEAM> getIbiztaskteam(IBIZTASK et);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -134,4 +134,20 @@ public interface IBIZTASKTEAMService extends IService<IBIZTASKTEAM> {
return getSelf().saveByTaskTeam(et,list);
}
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZUNIProductService extends IService<IBIZUNIProduct> {
Page<IBIZUNIProduct> searchDefault(IBIZUNIProductSearchContext context);
List<IBIZUNIProduct> listDefault(IBIZUNIProductSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface IBIZViewMsgService extends IService<IBIZViewMsg> {
Page<IBIZViewMsg> searchDefault(IBIZViewMsgSearchContext context);
List<IBIZViewMsg> listDefault(IBIZViewMsgSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -83,4 +83,20 @@ public interface MicroComponentService extends IService<MicroComponent> {
Page<MicroComponent> searchDefault(MicroComponentSearchContext context);
List<MicroComponent> listDefault(MicroComponentSearchContext context);
/**
* 自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
* 自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
}
\ No newline at end of file
......@@ -15,7 +15,7 @@ no-loop
//逻辑处理节点[开始]
rule "begin"
ruleflow-group "begin"
ruleflow-group "begingroup"
when
then
update(default);//更新fact中变量值
......@@ -23,18 +23,18 @@ ruleflow-group "begin"
//逻辑处理节点[统计金额]
rule "rawsqlcall1"
ruleflow-group "rawsqlcall1"
ruleflow-group "rawsqlcall1group"
when
then
Map param =new HashMap();
param.put("param0",default.get("quantity"));
param.put("param1",default.get("unitprice"));
param.put("param0",param_default.get("quantity"));
param.put("param1",param_default.get("unitprice"));
String strSql="select (#{et.param0}*#{et.param1}) as AMOUNT from dual";
java.util.List<JSONObject> entities=iBzSysIBIZOrderDetailDefaultService.select(strSql,param);//SQL调用
if(entities.size()>0 && !ObjectUtils.isEmpty(entities.get(0))){
JSONObject entity=entities.get(0);
for (Map.Entry entry : entity.entrySet()) {
default.set(String.valueOf(entry.getKey()),entry.getValue());
param_default.set(String.valueOf(entry.getKey()),entry.getValue());
}
}
update(default);//更新fact中变量值
......
......@@ -18,7 +18,7 @@
<startEvent id="begin" isInterrupting="true"/>
<!-- 统计金额 -->
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="rawsqlcall1" id="rawsqlcall1" implementation="http://www.jboss.org/drools/rule" name="统计金额"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="rawsqlcall1group" id="rawsqlcall1" implementation="http://www.jboss.org/drools/rule" name="统计金额"/>
<!-- 最后结束节点 -->
<endEvent id="rawsqlcall1_end" name="end"/>
......@@ -26,7 +26,7 @@
<!-- 连接 -->
<sequenceFlow id="begin_begin" sourceRef="begin" targetRef="begin">
<sequenceFlow id="begin_rawsqlcall1" sourceRef="begin" targetRef="rawsqlcall1">
</sequenceFlow>
</process>
......
......@@ -9,7 +9,7 @@ import cn.ibizlab.util.errors.BadRequestAlertException;
global cn.ibizlab.core.sample.domain.IBIZUNIProduct product;
global cn.ibizlab.core.sample.domain.IBIZOrderDetail default;
global cn.ibizlab.core.sample.service.IIBIZUNIProductService ibizuniproductservice;
global cn.ibizlab.core.sample.service.IBIZUNIProductService ibizuniproductservice;
global cn.ibizlab.core.sample.service.IIBIZOrderDetailService iBzSysIBIZOrderDetailDefaultService;
global cn.ibizlab.util.security.AuthenticationUser curuser;
......@@ -17,7 +17,7 @@ no-loop
//逻辑处理节点[开始]
rule "begin"
ruleflow-group "begin"
ruleflow-group "begingroup"
when
then
update(product);//更新fact中变量值
......@@ -26,11 +26,11 @@ ruleflow-group "begin"
//逻辑处理节点[填充单位和单价]
rule "prepareparam2"
ruleflow-group "prepareparam2"
ruleflow-group "prepareparam2group"
when
then
default.set("unitprice",product.get("unitprice"));
param_default.set("unitprice",param_product.get("unitprice"));
......@@ -38,7 +38,7 @@ ruleflow-group "prepareparam2"
default.set("unit",product.get("unit"));
param_default.set("unit",param_product.get("unit"));
......@@ -51,21 +51,21 @@ ruleflow-group "prepareparam2"
//逻辑处理节点[获取商品信息]
rule "deaction1"
ruleflow-group "deaction1"
ruleflow-group "deaction1group"
when
then
cn.ibizlab.util.helper.CachedBeanCopier.copy(ibizuniproductservice.get(product.getIBIZUNIProductId()),product);
cn.ibizlab.util.helper.CachedBeanCopier.copy(ibizuniproductservice.get(param_product.getIBIZUNIProductId()),param_product);
update(product);//更新fact中变量值
update(default);//更新fact中变量值
end
//逻辑处理节点[获取商品ID]
rule "prepareparam1"
ruleflow-group "prepareparam1"
ruleflow-group "prepareparam1group"
when
then
product.set("ibizuniproductid",default.get("ibizuniproductid"));
param_product.set("ibizuniproductid",param_default.get("ibizuniproductid"));
......
......@@ -11,7 +11,7 @@
<tns:metaData express="" name="default" type="entity"/>
<tns:global identifier="product" type="cn.ibizlab.core.sample.domain.IBIZUNIProduct" />
<tns:global identifier="default" type="cn.ibizlab.core.sample.domain.IBIZOrderDetail" />
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IIBIZUNIProductService))" name="ibizuniproductservice" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IBIZUNIProductService))" name="ibizuniproductservice" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.SpringContextHolder).getBean(T(cn.ibizlab.core.sample.service.IIBIZOrderDetailService))" name="iBzSysIBIZOrderDetailDefaultService" type="service"/>
<tns:metaData express="T(cn.ibizlab.util.security.AuthenticationUser).getAuthenticationUser()" name="curuser" type="session"/>
</extensionElements>
......@@ -21,29 +21,29 @@
<startEvent id="begin" isInterrupting="true"/>
<!-- 填充单位和单价 -->
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam2" id="prepareparam2" implementation="http://www.jboss.org/drools/rule" name="填充单位和单价"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam2group" id="prepareparam2" implementation="http://www.jboss.org/drools/rule" name="填充单位和单价"/>
<!-- 最后结束节点 -->
<endEvent id="prepareparam2_end" name="end"/>
<sequenceFlow id="prepareparam2_end_line" sourceRef="prepareparam2" targetRef="prepareparam2_end"/>
<!-- 获取商品信息 -->
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="deaction1" id="deaction1" implementation="http://www.jboss.org/drools/rule" name="获取商品信息"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="deaction1group" id="deaction1" implementation="http://www.jboss.org/drools/rule" name="获取商品信息"/>
<!-- 获取商品ID -->
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam1" id="prepareparam1" implementation="http://www.jboss.org/drools/rule" name="获取商品id"/>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="prepareparam1group" id="prepareparam1" implementation="http://www.jboss.org/drools/rule" name="获取商品id"/>
<!-- 连接 -->
<sequenceFlow id="begin_begin" sourceRef="begin" targetRef="begin">
<sequenceFlow id="begin_prepareparam1" sourceRef="begin" targetRef="prepareparam1">
</sequenceFlow>
<!-- 连接 -->
<sequenceFlow id="deaction1_deaction1" sourceRef="deaction1" targetRef="deaction1">
<sequenceFlow id="deaction1_prepareparam2" sourceRef="deaction1" targetRef="prepareparam2">
</sequenceFlow>
<!-- 连接 -->
<sequenceFlow id="prepareparam1_prepareparam1" sourceRef="prepareparam1" targetRef="prepareparam1">
<sequenceFlow id="prepareparam1_deaction1" sourceRef="prepareparam1" targetRef="deaction1">
</sequenceFlow>
</process>
......
[
{
"name":"年度",
"code":"Years",
"group":"",
"memo":"",
"enable":"",
}
]
[
{
"name": "年度",
"code": "Years",
"group": "",
"memo": "",
}
]
\ No newline at end of file
......@@ -6,8 +6,8 @@
<artifactId>demo</artifactId>
<groupId>cn.ibizlab</groupId>
<version>1.0.0.0</version>
<name>后台服务</name>
<description></description>
<name>Demo</name>
<description>后台服务</description>
<packaging>pom</packaging>
<parent>
......@@ -105,7 +105,7 @@
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
<plugin>
<plugin>
<groupId>cn.ibizlab</groupId>
<artifactId>ibizlab-generator-plugin</artifactId>
<version>1.0-SNAPSHOT</version>
......@@ -137,4 +137,4 @@
</plugins>
</build>
</project>
</project>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册