Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz商业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz商业套件
iBiz商业中心
提交
9f946784
提交
9f946784
编写于
10月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
xignzi006 发布系统代码
上级
bf4fbab5
变更
9
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
143 行增加
和
2 行删除
+143
-2
Ir_sequence_date_rangeExService.java
...e/extensions/service/Ir_sequence_date_rangeExService.java
+20
-0
Ir_sequence.java
...zlab/businesscentral/core/odoo_ir/domain/Ir_sequence.java
+5
-2
Ir_sequence_date_range.java
...sscentral/core/odoo_ir/domain/Ir_sequence_date_range.java
+14
-0
IIr_sequence_date_rangeService.java
.../core/odoo_ir/service/IIr_sequence_date_rangeService.java
+2
-0
Ir_sequence_date_rangeServiceImpl.java
...oo_ir/service/impl/Ir_sequence_date_rangeServiceImpl.java
+14
-0
Ir_sequence_date_rangeMapper.xml
...r/ir_sequence_date_range/Ir_sequence_date_rangeMapper.xml
+2
-0
iBizBusinessCentral.json
...core/src/main/resources/sysmodel/iBizBusinessCentral.json
+25
-0
Ir_sequence_date_rangeDTO.java
...b/businesscentral/core/dto/Ir_sequence_date_rangeDTO.java
+17
-0
Ir_sequence_date_rangeResource.java
...nesscentral/core/rest/Ir_sequence_date_rangeResource.java
+44
-0
未找到文件。
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/extensions/service/Ir_sequence_date_rangeExService.java
浏览文件 @
9f946784
...
...
@@ -31,5 +31,25 @@ public class Ir_sequence_date_rangeExService extends Ir_sequence_date_rangeServi
public
Ir_sequence_date_range
create_sequence
(
Ir_sequence_date_range
et
)
{
return
super
.
create_sequence
(
et
);
}
/**
* 自定义行为[Select_nextval]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public
Ir_sequence_date_range
select_nextval
(
Ir_sequence_date_range
et
)
{
return
super
.
select_nextval
(
et
);
}
/**
* 自定义行为[Update_nogap]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public
Ir_sequence_date_range
update_nogap
(
Ir_sequence_date_range
et
)
{
return
super
.
update_nogap
(
et
);
}
}
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/domain/Ir_sequence.java
浏览文件 @
9f946784
...
...
@@ -67,6 +67,7 @@ public class Ir_sequence extends EntityMP implements Serializable {
/**
* 实施
*/
@DEField
(
defaultValue
=
"standard"
)
@TableField
(
value
=
"implementation"
)
@JSONField
(
name
=
"implementation"
)
@JsonProperty
(
"implementation"
)
...
...
@@ -74,6 +75,7 @@ public class Ir_sequence extends EntityMP implements Serializable {
/**
* 活动
*/
@DEField
(
defaultValue
=
"true"
)
@TableField
(
value
=
"active"
)
@JSONField
(
name
=
"active"
)
@JsonProperty
(
"active"
)
...
...
@@ -95,7 +97,7 @@ public class Ir_sequence extends EntityMP implements Serializable {
/**
* Next
*/
@DEField
(
name
=
"number_next
"
)
@DEField
(
defaultValue
=
"1
"
)
@TableField
(
value
=
"number_next"
)
@JSONField
(
name
=
"number_next"
)
@JsonProperty
(
"number_next"
)
...
...
@@ -103,7 +105,7 @@ public class Ir_sequence extends EntityMP implements Serializable {
/**
* 增量
*/
@DEField
(
name
=
"number_increment
"
)
@DEField
(
defaultValue
=
"1
"
)
@TableField
(
value
=
"number_increment"
)
@JSONField
(
name
=
"number_increment"
)
@JsonProperty
(
"number_increment"
)
...
...
@@ -111,6 +113,7 @@ public class Ir_sequence extends EntityMP implements Serializable {
/**
* Padding
*/
@DEField
(
defaultValue
=
"1"
)
@TableField
(
value
=
"padding"
)
@JSONField
(
name
=
"padding"
)
@JsonProperty
(
"padding"
)
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/domain/Ir_sequence_date_range.java
浏览文件 @
9f946784
...
...
@@ -132,6 +132,20 @@ public class Ir_sequence_date_range extends EntityMP implements Serializable {
@JSONField
(
name
=
"write_date"
,
format
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonProperty
(
"write_date"
)
private
Timestamp
writeDate
;
/**
* next_char
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"next_char"
)
@JsonProperty
(
"next_char"
)
private
String
nextChar
;
/**
* next_val
*/
@TableField
(
exist
=
false
)
@JSONField
(
name
=
"next_val"
)
@JsonProperty
(
"next_val"
)
private
Integer
nextVal
;
/**
*
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/IIr_sequence_date_rangeService.java
浏览文件 @
9f946784
...
...
@@ -38,6 +38,8 @@ public interface IIr_sequence_date_rangeService extends IService<Ir_sequence_dat
Ir_sequence_date_range
create_sequence
(
Ir_sequence_date_range
et
)
;
boolean
save
(
Ir_sequence_date_range
et
)
;
void
saveBatch
(
List
<
Ir_sequence_date_range
>
list
)
;
Ir_sequence_date_range
select_nextval
(
Ir_sequence_date_range
et
)
;
Ir_sequence_date_range
update_nogap
(
Ir_sequence_date_range
et
)
;
Page
<
Ir_sequence_date_range
>
searchDefault
(
Ir_sequence_date_rangeSearchContext
context
)
;
List
<
Ir_sequence_date_range
>
selectBySequenceId
(
Long
id
)
;
void
removeBySequenceId
(
Long
id
)
;
...
...
businesscentral-core/src/main/java/cn/ibizlab/businesscentral/core/odoo_ir/service/impl/Ir_sequence_date_rangeServiceImpl.java
浏览文件 @
9f946784
...
...
@@ -167,6 +167,20 @@ public class Ir_sequence_date_rangeServiceImpl extends ServiceImpl<Ir_sequence_d
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
Ir_sequence_date_range
select_nextval
(
Ir_sequence_date_range
et
)
{
//自定义代码
return
et
;
}
@Override
@Transactional
public
Ir_sequence_date_range
update_nogap
(
Ir_sequence_date_range
et
)
{
//自定义代码
return
et
;
}
@Override
public
List
<
Ir_sequence_date_range
>
selectBySequenceId
(
Long
id
)
{
...
...
businesscentral-core/src/main/resources/mapper/odoo_ir/ir_sequence_date_range/Ir_sequence_date_rangeMapper.xml
浏览文件 @
9f946784
...
...
@@ -21,6 +21,8 @@
<result
property=
"sequenceId"
column=
"sequence_id"
/>
<result
property=
"createDate"
column=
"create_date"
/>
<result
property=
"writeDate"
column=
"write_date"
/>
<result
property=
"nextChar"
column=
"next_char"
/>
<result
property=
"nextVal"
column=
"next_val"
/>
<!--通过mybatis自动注入关系属性[主实体],fetchType="lazy"为懒加载配置 -->
...
...
businesscentral-core/src/main/resources/sysmodel/iBizBusinessCentral.json
浏览文件 @
9f946784
...
...
@@ -71744,6 +71744,31 @@
"data_type":"DATETIME",
"key_field":0,
"major_field":0
},
{
"fieldname":"NEXT_CHAR" ,
"codename":"Next_char",
"field_logic_name":"next_char",
"entity_name":"Ir_sequence_date_range",
"field_type":"TEXT",
"nullable":1,
"physical_field":0,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"major_field":0
},
{
"fieldname":"NEXT_VAL" ,
"codename":"Next_val",
"field_logic_name":"next_val",
"entity_name":"Ir_sequence_date_range",
"field_type":"INT",
"nullable":1,
"physical_field":0,
"data_type":"INT",
"key_field":0,
"major_field":0
}
],
"subEntitys":[
businesscentral-provider/businesscentral-provider-core/src/main/java/cn/ibizlab/businesscentral/core/dto/Ir_sequence_date_rangeDTO.java
浏览文件 @
9f946784
...
...
@@ -127,6 +127,23 @@ public class Ir_sequence_date_rangeDTO extends DTOBase implements Serializable {
@JsonProperty
(
"write_date"
)
private
Timestamp
writeDate
;
/**
* 属性 [NEXT_CHAR]
*
*/
@JSONField
(
name
=
"next_char"
)
@JsonProperty
(
"next_char"
)
@Size
(
min
=
0
,
max
=
100
,
message
=
"内容长度必须小于等于[100]"
)
private
String
nextChar
;
/**
* 属性 [NEXT_VAL]
*
*/
@JSONField
(
name
=
"next_val"
)
@JsonProperty
(
"next_val"
)
private
Integer
nextVal
;
/**
* 设置 [CREATE_UID]
...
...
businesscentral-provider/businesscentral-provider-core/src/main/java/cn/ibizlab/businesscentral/core/rest/Ir_sequence_date_rangeResource.java
浏览文件 @
9f946784
...
...
@@ -146,6 +146,28 @@ public class Ir_sequence_date_rangeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-Select_nextval-all')"
)
@ApiOperation
(
value
=
"获取nextval"
,
tags
=
{
"序列日期范围"
},
notes
=
"获取nextval"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ir_sequence_date_ranges/{ir_sequence_date_range_id}/select_nextval"
)
public
ResponseEntity
<
Ir_sequence_date_rangeDTO
>
select_nextval
(
@PathVariable
(
"ir_sequence_date_range_id"
)
Long
ir_sequence_date_range_id
,
@RequestBody
Ir_sequence_date_rangeDTO
ir_sequence_date_rangedto
)
{
Ir_sequence_date_range
domain
=
ir_sequence_date_rangeMapping
.
toDomain
(
ir_sequence_date_rangedto
);
domain
.
setId
(
ir_sequence_date_range_id
);
domain
=
ir_sequence_date_rangeService
.
select_nextval
(
domain
);
ir_sequence_date_rangedto
=
ir_sequence_date_rangeMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ir_sequence_date_rangedto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-Update_nogap-all')"
)
@ApiOperation
(
value
=
"update_nogap"
,
tags
=
{
"序列日期范围"
},
notes
=
"update_nogap"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ir_sequence_date_ranges/{ir_sequence_date_range_id}/update_nogap"
)
public
ResponseEntity
<
Ir_sequence_date_rangeDTO
>
update_nogap
(
@PathVariable
(
"ir_sequence_date_range_id"
)
Long
ir_sequence_date_range_id
,
@RequestBody
Ir_sequence_date_rangeDTO
ir_sequence_date_rangedto
)
{
Ir_sequence_date_range
domain
=
ir_sequence_date_rangeMapping
.
toDomain
(
ir_sequence_date_rangedto
);
domain
.
setId
(
ir_sequence_date_range_id
);
domain
=
ir_sequence_date_rangeService
.
update_nogap
(
domain
);
ir_sequence_date_rangedto
=
ir_sequence_date_rangeMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ir_sequence_date_rangedto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-searchDefault-all')"
)
@ApiOperation
(
value
=
"获取数据集"
,
tags
=
{
"序列日期范围"
}
,
notes
=
"获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ir_sequence_date_ranges/fetchdefault"
)
...
...
@@ -286,6 +308,28 @@ public class Ir_sequence_date_rangeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-Select_nextval-all')"
)
@ApiOperation
(
value
=
"根据序列序列日期范围"
,
tags
=
{
"序列日期范围"
},
notes
=
"根据序列序列日期范围"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ir_sequences/{ir_sequence_id}/ir_sequence_date_ranges/{ir_sequence_date_range_id}/select_nextval"
)
public
ResponseEntity
<
Ir_sequence_date_rangeDTO
>
select_nextvalByIr_sequence
(
@PathVariable
(
"ir_sequence_id"
)
Long
ir_sequence_id
,
@PathVariable
(
"ir_sequence_date_range_id"
)
Long
ir_sequence_date_range_id
,
@RequestBody
Ir_sequence_date_rangeDTO
ir_sequence_date_rangedto
)
{
Ir_sequence_date_range
domain
=
ir_sequence_date_rangeMapping
.
toDomain
(
ir_sequence_date_rangedto
);
domain
.
setSequenceId
(
ir_sequence_id
);
domain
=
ir_sequence_date_rangeService
.
select_nextval
(
domain
)
;
ir_sequence_date_rangedto
=
ir_sequence_date_rangeMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ir_sequence_date_rangedto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-Update_nogap-all')"
)
@ApiOperation
(
value
=
"根据序列序列日期范围"
,
tags
=
{
"序列日期范围"
},
notes
=
"根据序列序列日期范围"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ir_sequences/{ir_sequence_id}/ir_sequence_date_ranges/{ir_sequence_date_range_id}/update_nogap"
)
public
ResponseEntity
<
Ir_sequence_date_rangeDTO
>
update_nogapByIr_sequence
(
@PathVariable
(
"ir_sequence_id"
)
Long
ir_sequence_id
,
@PathVariable
(
"ir_sequence_date_range_id"
)
Long
ir_sequence_date_range_id
,
@RequestBody
Ir_sequence_date_rangeDTO
ir_sequence_date_rangedto
)
{
Ir_sequence_date_range
domain
=
ir_sequence_date_rangeMapping
.
toDomain
(
ir_sequence_date_rangedto
);
domain
.
setSequenceId
(
ir_sequence_id
);
domain
=
ir_sequence_date_rangeService
.
update_nogap
(
domain
)
;
ir_sequence_date_rangedto
=
ir_sequence_date_rangeMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ir_sequence_date_rangedto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','iBizBusinessCentral-Ir_sequence_date_range-searchDefault-all')"
)
@ApiOperation
(
value
=
"根据序列获取数据集"
,
tags
=
{
"序列日期范围"
}
,
notes
=
"根据序列获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ir_sequences/{ir_sequence_id}/ir_sequence_date_ranges/fetchdefault"
)
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录