Compare commits
2 Commits
2a183cbf92
...
e3582cb6ae
| Author | SHA1 | Date | |
|---|---|---|---|
| e3582cb6ae | |||
| a8f246c026 |
@ -144,15 +144,17 @@ public class KPIPointController {
|
|||||||
public String doview(HttpServletRequest request,Model model){
|
public String doview(HttpServletRequest request,Model model){
|
||||||
String userId = request.getParameter("id");
|
String userId = request.getParameter("id");
|
||||||
KPIPoint kPIPoint = this.kPIPointService.selectById(userId);
|
KPIPoint kPIPoint = this.kPIPointService.selectById(userId);
|
||||||
|
// 保存原始bizid用于MPoint查询
|
||||||
|
String originalBizid = kPIPoint.getBizid();
|
||||||
ProcessSection processSection = this.processSectionService.selectById(kPIPoint.getProcesssectionid());
|
ProcessSection processSection = this.processSectionService.selectById(kPIPoint.getProcesssectionid());
|
||||||
if (processSection != null) {
|
if (processSection != null) {
|
||||||
kPIPoint.setProcessectionname(processSection.getName());
|
kPIPoint.setProcessectionname(processSection.getName());
|
||||||
}
|
}
|
||||||
Company company = this.unitService.getCompById(kPIPoint.getBizid());
|
Company company = this.unitService.getCompById(originalBizid);
|
||||||
if (company != null) {
|
if (company != null) {
|
||||||
kPIPoint.setBizid(company.getName());
|
kPIPoint.setBizid(company.getName());
|
||||||
}
|
}
|
||||||
MPoint mPoint = this.mPointService.selectById(kPIPoint.getBizid(),kPIPoint.getMpointid());
|
MPoint mPoint = this.mPointService.selectById(originalBizid,kPIPoint.getMpointid());
|
||||||
if (mPoint != null) {
|
if (mPoint != null) {
|
||||||
kPIPoint.setMpointname(mPoint.getParmname());
|
kPIPoint.setMpointname(mPoint.getParmname());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -454,7 +454,8 @@ public class MsgServiceImpl implements MsgService {
|
|||||||
String mtypeid = "";
|
String mtypeid = "";
|
||||||
int result = 0;
|
int result = 0;
|
||||||
MsgType mtype = new MsgType();
|
MsgType mtype = new MsgType();
|
||||||
mtype = this.msgtypeService.getMsgType(" where T.id='" + msgtypeid + "' order by T.insdt").get(0);
|
List<MsgType> msgType = this.msgtypeService.getMsgType(" where T.id='" + msgtypeid + "' order by T.insdt");
|
||||||
|
mtype = msgType.get(0);
|
||||||
String sendway = mtype.getSendway();
|
String sendway = mtype.getSendway();
|
||||||
String[] recvids = recvid.split(",");
|
String[] recvids = recvid.split(",");
|
||||||
//判断权限
|
//判断权限
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
<input type="hidden" class="form-control" id="id" name ="id" value ="${kPIPoint.id}">
|
<input type="hidden" class="form-control" id="id" name ="id" value ="${kPIPoint.id}">
|
||||||
<label class="col-sm-3 control-label">*所属厂区</label>
|
<label class="col-sm-3 control-label">*所属厂区</label>
|
||||||
<div class="col-sm-7">
|
<div class="col-sm-7">
|
||||||
<input class="form-control select2" id="bizid" name ="bizid" style="width: 270px;" value ="${kPIPoint.bizid}" disabled/>
|
<input class="form-control" id="bizid" name ="bizid" style="width: 270px;" value ="${kPIPoint.bizid}" disabled/>
|
||||||
<!-- <input class="form-control" id="input_bizid" style="border: none;background: transparent;">
|
<!-- <input class="form-control" id="input_bizid" style="border: none;background: transparent;">
|
||||||
<input type="hidden" id="hidden_bizid" name ="bizid" > -->
|
<input type="hidden" id="hidden_bizid" name ="bizid" > -->
|
||||||
</div>
|
</div>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<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-7">
|
<div class="col-sm-7">
|
||||||
<input class="form-control select2" id="processsectionid" name ="processsectionid" value ="${kPIPoint.processectionname}" style="width: 270px;" disabled/>
|
<input class="form-control" id="processsectionid" name ="processsectionid" value ="${kPIPoint.processectionname}" style="width: 270px;" disabled/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
Reference in New Issue
Block a user