业务流程类别bug
This commit is contained in:
@ -93,7 +93,11 @@ public class BusinessUnitController {
|
|||||||
public String dosave(HttpServletRequest request,Model model,
|
public String dosave(HttpServletRequest request,Model model,
|
||||||
@ModelAttribute BusinessUnit businessUnit){
|
@ModelAttribute BusinessUnit businessUnit){
|
||||||
User cu= (User)request.getSession().getAttribute("cu");
|
User cu= (User)request.getSession().getAttribute("cu");
|
||||||
String id = CommUtil.getUUID();
|
// Use custom ID if provided, otherwise generate UUID
|
||||||
|
String id = businessUnit.getId();
|
||||||
|
if(id == null || id.trim().isEmpty()) {
|
||||||
|
id = CommUtil.getUUID();
|
||||||
|
}
|
||||||
businessUnit.setId(id);
|
businessUnit.setId(id);
|
||||||
businessUnit.setInsuser(cu.getId());
|
businessUnit.setInsuser(cu.getId());
|
||||||
businessUnit.setInsdt(CommUtil.nowDate());
|
businessUnit.setInsdt(CommUtil.nowDate());
|
||||||
|
|||||||
@ -38,6 +38,7 @@ public class MPoint extends SQLAdapter implements Serializable {
|
|||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
private String mpointid;
|
private String mpointid;
|
||||||
|
@Field(type = FieldType.Keyword, normalizer = "my_normalizer")
|
||||||
private String mpointcode;
|
private String mpointcode;
|
||||||
// @Field(name="parmname")
|
// @Field(name="parmname")
|
||||||
private String parmname;
|
private String parmname;
|
||||||
|
|||||||
@ -75,6 +75,12 @@
|
|||||||
<form class="form-horizontal" id="subForm">
|
<form class="form-horizontal" id="subForm">
|
||||||
<!-- 界面提醒div强制id为alertDiv -->
|
<!-- 界面提醒div强制id为alertDiv -->
|
||||||
<div id="alertDiv"></div>
|
<div id="alertDiv"></div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">业务单元ID</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control" id="id" name="id" placeholder="业务单元ID(不填则自动生成)" >
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">*业务单元名称</label>
|
<label class="col-sm-3 control-label">*业务单元名称</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|||||||
@ -53,6 +53,12 @@
|
|||||||
<form class="form-horizontal" id="subForm">
|
<form class="form-horizontal" id="subForm">
|
||||||
<div id="alertDiv"></div>
|
<div id="alertDiv"></div>
|
||||||
<input id="id" name="id" type="hidden" value="${businessUnit.id}"/>
|
<input id="id" name="id" type="hidden" value="${businessUnit.id}"/>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">业务单元ID</label>
|
||||||
|
<div class="col-sm-9">
|
||||||
|
<input type="text" class="form-control" id="displayId" value="${businessUnit.id}" readonly style="background-color: #eee;">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-3 control-label">*业务单元名称</label>
|
<label class="col-sm-3 control-label">*业务单元名称</label>
|
||||||
<div class="col-sm-9">
|
<div class="col-sm-9">
|
||||||
|
|||||||
@ -151,6 +151,11 @@
|
|||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
checkbox: true,
|
checkbox: true,
|
||||||
|
}, {
|
||||||
|
field: 'id',
|
||||||
|
title: '业务单元ID',
|
||||||
|
align: 'center',
|
||||||
|
valign: 'middle'
|
||||||
}, {
|
}, {
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '业务单元名称',
|
title: '业务单元名称',
|
||||||
|
|||||||
Reference in New Issue
Block a user