提交 9f946784 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 bf4fbab5
......@@ -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);
}
}
......@@ -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")
......
......@@ -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;
/**
*
......
......@@ -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) ;
......
......@@ -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) {
......
......@@ -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"为懒加载配置 -->
......
......@@ -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":[
......@@ -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]
......
......@@ -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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册