1司机管理

master
erzhongxmu 2020-12-24 23:20:34 +08:00
parent b3fbb4b9f3
commit 332feba672
6 changed files with 31 additions and 14 deletions

View File

@ -114,7 +114,7 @@ public class TmsMdCheliangController extends BaseController {
// }
//
// }
cq.eq("zhuangtai","Y");
// cq.eq("zhuangtai","Y");
cq.add();
this.tmsMdCheliangService.getDataGridReturn(cq, true);
TagUtil.datagrid(response, dataGrid);

View File

@ -6,6 +6,7 @@ import com.zzjee.api.ResultDO;
import com.zzjee.md.entity.MdGoodsEntity;
import com.zzjee.rfid.entity.RfidBuseEntity;
import com.zzjee.tms.entity.DdPage;
import com.zzjee.tms.entity.TmsMdCheliangEntity;
import com.zzjee.tms.entity.TmsMdDzEntity;
import com.zzjee.tms.entity.TmsYwDingdanEntity;
import com.zzjee.tms.service.TmsYwDingdanServiceI;
@ -616,11 +617,26 @@ public class TmsYwDingdanController extends BaseController {
, HttpServletRequest request) {
try{
String hqlom = "from WmTmsNoticeHEntity where omBeizhu = ?";
List<WmTmsNoticeHEntity> listom = systemService.findHql(hqlom,username);
String sji = "siji";
try{
sji = listom.get(0).getReMember();
}catch (Exception e){
}
String hql = "from RfidBuseEntity where rfidId1 = ? order by createDate desc";
List<RfidBuseEntity> lista = systemService.findHql(hql,username);
List<RfidBuseEntity> lista = systemService.findHql(hql,sji);
if(lista!=null&&lista.size()>0){
return Result.success(lista.get(0));
RfidBuseEntity out = lista.get(0);
try{
TmsMdCheliangEntity tmsMdCheliangEntity = systemService.findUniqueByProperty(TmsMdCheliangEntity.class,"username",sji);
out.setRfidBuseno(tmsMdCheliangEntity.getZhuangtai());
out.setRfidBusecont(tmsMdCheliangEntity.getBeizhu());
}catch (Exception e){
}
return Result.success(out);
}else{
return Result.error("暂无司机位置");

View File

@ -57,10 +57,10 @@ public class TmsMdCheliangEntity implements java.io.Serializable {
@Excel(name="准假驾照",width=15)
private String jiazhao;
/**是否可用*/
@Excel(name="是否可用",width=15,dicCode="sf_yn")
@Excel(name="姓名",width=15)
private String zhuangtai;
/**备注*/
@Excel(name="备注",width=15)
@Excel(name="电话",width=15)
private String beizhu;
/**默认司机*/
@Excel(name="默认司机",width=15)

View File

@ -50,12 +50,13 @@
<span class="Validform_checktip"></span>
</div>
<div class="form">
<label class="Validform_label">是否可用:</label>
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdCheliangPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
<label class="Validform_label">姓名:</label>
<input id="zhuangtai" name="zhuangtai" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
<span class="Validform_checktip"></span>
</div>
<div class="form">
<label class="Validform_label">备注:</label>
<label class="Validform_label">电话:</label>
<input id="beizhu" name="beizhu" type="text" style="width: 150px" class="inputxt" ignore="ignore" />
<span class="Validform_checktip"></span>
</div>

View File

@ -50,12 +50,12 @@
<span class="Validform_checktip"></span>
</div>
<div class="form">
<label class="Validform_label">是否可用:</label>
<t:dictSelect field="zhuangtai" type="radio" typeGroupCode="sf_yn" defaultVal="${tmsMdCheliangPage.zhuangtai}" hasLabel="false" title="是否可用"></t:dictSelect>
<label class="Validform_label">姓名:</label>
<input id="zhuangtai" name="zhuangtai" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.zhuangtai}'/>
<span class="Validform_checktip"></span>
</div>
<div class="form">
<label class="Validform_label">备注:</label>
<label class="Validform_label">电话:</label>
<input id="beizhu" name="beizhu" type="text" style="width: 150px" class="inputxt" ignore="ignore" value='${tmsMdCheliangPage.beizhu}'/>
<span class="Validform_checktip"></span>
</div>

View File

@ -20,8 +20,8 @@
<t:dgCol title="载重" field="zaizhong" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="载人数" field="zairen" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="准驾驾照" field="jiazhao" query="true" queryMode="single" width="120"></t:dgCol>
<t:dgCol title="是否可用" field="zhuangtai" queryMode="group" dictionary="sf_yn" width="120"></t:dgCol>
<t:dgCol title="备注" field="beizhu" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="姓名" field="zhuangtai" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="电话" field="beizhu" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="默认司机" field="username" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="车牌号" field="gpsid" queryMode="group" width="120"></t:dgCol>
<t:dgCol title="区域" field="quyu" queryMode="single" width="120"></t:dgCol>