提交 3ea1cdc8 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 bb49fa14
......@@ -3,7 +3,7 @@ export default {
fields: {
id: "应用标识",
label: "应用名",
pssystemid: "系统标识",
systemid: "系统标识",
fullname: "全称",
type: "类型",
group: "分组",
......
......@@ -2,7 +2,7 @@ export default {
fields: {
id: "应用标识",
label: "应用名",
pssystemid: "系统标识",
systemid: "系统标识",
fullname: "全称",
type: "类型",
group: "分组",
......
......@@ -28,7 +28,7 @@ export default class MainModel {
return [
{
name: 'pssystemid',
prop: 'pssystemid',
prop: 'systemid',
dataType: 'PICKUP',
},
{
......
......@@ -22,7 +22,7 @@ export default class PickupViewpickupviewpanelModel {
name: 'label',
},
{
name: 'pssystemid',
name: 'systemid',
},
{
name: 'fullname',
......
......@@ -53,9 +53,10 @@ public class DstApp extends EntityBase implements Serializable {
/**
* 系统标识
*/
@JSONField(name = "pSSystemId")
@JsonProperty("pSSystemId")
private String pssystemid;
@DEField(name = "pssystemid")
@JSONField(name = "systemId")
@JsonProperty("systemId")
private String systemid;
/**
* 全称
......
......@@ -36,8 +36,8 @@ public interface IDstAppService{
boolean save(DstApp et) ;
void saveBatch(List<DstApp> list) ;
Page<DstApp> searchDefault(DstAppSearchContext context) ;
List<DstApp> selectByPssystemid(String pssystemid) ;
void removeByPssystemid(String pssystemid) ;
List<DstApp> selectBySystemid(String pssystemid) ;
void removeBySystemid(String pssystemid) ;
}
......
......@@ -106,14 +106,14 @@ public class DstAppServiceImpl implements IDstAppService {
@Override
public List<DstApp> selectByPssystemid(String pssystemid) {
public List<DstApp> selectBySystemid(String pssystemid) {
return null;
}
@Override
public void removeByPssystemid(String pssystemid) {
public void removeBySystemid(String pssystemid) {
Set<String> delIds=new HashSet<String>();
for(DstApp before:selectByPssystemid(pssystemid)){
for(DstApp before:selectBySystemid(pssystemid)){
delIds.add(before.getId());
}
if(delIds.size()>0)
......
......@@ -227,7 +227,7 @@
},
{
"fieldname":"PSSYSTEMID" ,
"codename":"PSSystemId",
"codename":"SystemId",
"field_logic_name":"系统标识",
"entity_name":"DstApp",
"ref_field_name":"PSSystemId",
......
......@@ -49,10 +49,10 @@ public class DstAppDTO extends DTOBase implements Serializable {
* 属性 [PSSYSTEMID]
*
*/
@JSONField(name = "pssystemid")
@JsonProperty("pssystemid")
@JSONField(name = "systemid")
@JsonProperty("systemid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String pssystemid;
private String systemid;
/**
* 属性 [FULLNAME]
......@@ -119,9 +119,9 @@ public class DstAppDTO extends DTOBase implements Serializable {
/**
* 设置 [PSSYSTEMID]
*/
public void setPssystemid(String pssystemid){
this.pssystemid = pssystemid ;
this.modify("pssystemid",pssystemid);
public void setSystemid(String systemid){
this.systemid = systemid ;
this.modify("pssystemid",systemid);
}
/**
......
......@@ -149,7 +149,7 @@ public class DstAppResource {
@RequestMapping(method = RequestMethod.POST, value = "/dstsystems/{dstsystem_id}/dstapps")
public ResponseEntity<DstAppDTO> createByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @RequestBody DstAppDTO dstappdto) {
DstApp domain = dstappMapping.toDomain(dstappdto);
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
dstappService.create(domain);
DstAppDTO dto = dstappMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
......@@ -160,7 +160,7 @@ public class DstAppResource {
public ResponseEntity<Boolean> createBatchByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @RequestBody List<DstAppDTO> dstappdtos) {
List<DstApp> domainlist=dstappMapping.toDomain(dstappdtos);
for(DstApp domain:domainlist){
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
}
dstappService.createBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -170,7 +170,7 @@ public class DstAppResource {
@RequestMapping(method = RequestMethod.PUT, value = "/dstsystems/{dstsystem_id}/dstapps/{dstapp_id}")
public ResponseEntity<DstAppDTO> updateByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @PathVariable("dstapp_id") String dstapp_id, @RequestBody DstAppDTO dstappdto) {
DstApp domain = dstappMapping.toDomain(dstappdto);
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
domain.setId(dstapp_id);
dstappService.update(domain);
DstAppDTO dto = dstappMapping.toDto(domain);
......@@ -182,7 +182,7 @@ public class DstAppResource {
public ResponseEntity<Boolean> updateBatchByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @RequestBody List<DstAppDTO> dstappdtos) {
List<DstApp> domainlist=dstappMapping.toDomain(dstappdtos);
for(DstApp domain:domainlist){
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
}
dstappService.updateBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......@@ -213,7 +213,7 @@ public class DstAppResource {
@RequestMapping(method = RequestMethod.GET, value = "/dstsystems/{dstsystem_id}/dstapps/getdraft")
public ResponseEntity<DstAppDTO> getDraftByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id) {
DstApp domain = new DstApp();
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
return ResponseEntity.status(HttpStatus.OK).body(dstappMapping.toDto(dstappService.getDraft(domain)));
}
......@@ -227,7 +227,7 @@ public class DstAppResource {
@RequestMapping(method = RequestMethod.POST, value = "/dstsystems/{dstsystem_id}/dstapps/save")
public ResponseEntity<Boolean> saveByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @RequestBody DstAppDTO dstappdto) {
DstApp domain = dstappMapping.toDomain(dstappdto);
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
return ResponseEntity.status(HttpStatus.OK).body(dstappService.save(domain));
}
......@@ -236,7 +236,7 @@ public class DstAppResource {
public ResponseEntity<Boolean> saveBatchByDstSystem(@PathVariable("dstsystem_id") String dstsystem_id, @RequestBody List<DstAppDTO> dstappdtos) {
List<DstApp> domainlist=dstappMapping.toDomain(dstappdtos);
for(DstApp domain:domainlist){
domain.setPssystemid(dstsystem_id);
domain.setSystemid(dstsystem_id);
}
dstappService.saveBatch(domainlist);
return ResponseEntity.status(HttpStatus.OK).body(true);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册