人员入场考勤
This commit is contained in:
parent
eefd084d21
commit
a00c081f13
|
|
@ -157,7 +157,7 @@ public class TbProConfigServiceImpl implements TbProConfigService {
|
||||||
List<TbProConfigVo> list=mapper.getConfigByProId(params);
|
List<TbProConfigVo> list=mapper.getConfigByProId(params);
|
||||||
if(list!=null&& !list.isEmpty()){
|
if(list!=null&& !list.isEmpty()){
|
||||||
for(TbProConfigVo proConfig:list){
|
for(TbProConfigVo proConfig:list){
|
||||||
if("0".equals(proConfig.getIsNeed())){
|
if("0".equals(proConfig.getType())){
|
||||||
map.put("tczm",proConfig.getIsNeed());
|
map.put("tczm",proConfig.getIsNeed());
|
||||||
} else{
|
} else{
|
||||||
map.put("dgc",proConfig.getIsNeed());
|
map.put("dgc",proConfig.getIsNeed());
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,8 @@ public class DeviceHandle {
|
||||||
}else{
|
}else{
|
||||||
System.err.println("数据新增失败---->"+devId);
|
System.err.println("数据新增失败---->"+devId);
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
mapper.updateDevStatus(devId);
|
||||||
}
|
}
|
||||||
deviceVo.setTransId(transId);
|
deviceVo.setTransId(transId);
|
||||||
return deviceVo;
|
return deviceVo;
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,9 @@ public interface DeviceMapper {
|
||||||
*/
|
*/
|
||||||
int insertDeviceVo(DeviceVo deviceVo);
|
int insertDeviceVo(DeviceVo deviceVo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新设备状态
|
||||||
|
* @param devId
|
||||||
|
*/
|
||||||
|
void updateDevStatus(@Param("devId")String devId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,9 @@
|
||||||
#{devCode},#{deviceName},#{devModel},#{onLine},1 )
|
#{devCode},#{deviceName},#{devModel},#{onLine},1 )
|
||||||
|
|
||||||
</insert>
|
</insert>
|
||||||
|
<update id="updateDevStatus">
|
||||||
|
update pm_att_device set on_line=1, on_line_time=now() where device_code=#{devId}
|
||||||
|
</update>
|
||||||
<!--查询设备基础信息-->
|
<!--查询设备基础信息-->
|
||||||
<select id="getDeviceVoById" resultType="com.bonus.urk.vo.DeviceVo">
|
<select id="getDeviceVoById" resultType="com.bonus.urk.vo.DeviceVo">
|
||||||
select device_code devCode,device_name deviceName, pro_id proId,
|
select device_code devCode,device_name deviceName, pro_id proId,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue