麻豆国产精品无码AV情景剧,日韩有码一区二区专区,中品极品少妇XXX,四虎在线观看免费网址

聯(lián)系方式

    固話:021-59786133

    電話:18117117761(微信同號(hào))

    郵箱:yuchengzhineng@qq.com

    網(wǎng)站:http://m.dzsl.com.cn

精品展示

智慧營(yíng)區(qū)車輛識(shí)別管理系統(tǒng)軟件源碼

2021/3/23 9:07:25??????點(diǎn)擊:

package com.yucheng.project.factory.service.impl;


import com.yucheng.common.constant.UserConstants;

import com.yucheng.common.exception.CustomException;

import com.yucheng.common.utils.IdUtils;

import com.yucheng.common.utils.SecurityUtils;

import com.yucheng.common.utils.StringUtils;

import com.yucheng.framework.aspectj.lang.annotation.DataScope;

import com.yucheng.project.campsys.domain.CampSysPIORec;

import com.yucheng.project.campsys.domain.CampSysPerson;

import com.yucheng.project.campsys.mapper.CampSysPersonMapper;

import com.yucheng.project.campsys.service.ICampSysPersonService;

import com.yucheng.project.factory.domain.FactoryVehicle;

import com.yucheng.project.factory.mapper.FactoryVehicleMapper;

import com.yucheng.project.factory.service.IFactoryVehicleService;

import com.yucheng.project.system.domain.SysUser;

import com.yucheng.project.system.service.ISysConfigService;

import org.slf4j.Logger;

import org.slf4j.LoggerFactory;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import org.springframework.transaction.annotation.Transactional;


import java.util.List;


/**

 * 車牌識(shí)別系統(tǒng) 業(yè)務(wù)層處理

 * 

 * @author yucheng

 */

@Service

public class FactoryVehicleServiceImpl implements IFactoryVehicleService

{

    private static final Logger log = LoggerFactory.getLogger(FactoryVehicleServiceImpl.class);

    @Autowired

    private FactoryVehicleMapper factoryVehicleMapper;

    

@Override

public List<FactoryVehicle> selectVehicleList(FactoryVehicle factoryVehicle) {

return factoryVehicleMapper.selectVehicleList(factoryVehicle);

}


@Override

public FactoryVehicle selectVehicleByUserName(String workerName) {

return factoryVehicleMapper.selectVehicleByUserName(workerName);

}


@Override

public FactoryVehicle selectVehicleById(Long vehicleId) {

return factoryVehicleMapper.selectVehicleById(vehicleId);

}


@Override

public int insertVehicle(FactoryVehicle factoryVehicle) {

return factoryVehicleMapper.insertVehicle(factoryVehicle);

}


@Override

public int updateVehicle(FactoryVehicle factoryVehicle) {

return factoryVehicleMapper.updateVehicle(factoryVehicle);

}


@Override

public int deleteVehicleById(Long vehicleId) {

return factoryVehicleMapper.deleteVehicleById(vehicleId);

}


@Override

public int deleteVehicleByIds(Long[] vehicleIds) {

return factoryVehicleMapper.deleteVehicleByIds(vehicleIds);

}


// @Override

// public String importVehicle(List<FactoryVehicle> vehicleList, Boolean isUpdateSupport, String operName) {

// // TODO Auto-generated method stub

// return null;

// }

/**

     * 導(dǎo)入車輛數(shù)據(jù)

     * 

     * @param vehicleList 內(nèi)部人員數(shù)據(jù)列表

     * @param isUpdateSupport 是否更新支持,如果已存在,則進(jìn)行更新數(shù)據(jù)

     * @param operName 操作內(nèi)部人員

     * @return 結(jié)果

     */

    @Override

public String importVehicle(List<FactoryVehicle> vehicleList, Boolean isUpdateSupport, SysUser user )

    { String operName=user.getUserName();

        if (StringUtils.isNull(vehicleList) || vehicleList.size() == 0)

        {

            throw new CustomException("導(dǎo)入車輛數(shù)據(jù)不能為空!");

        }

        int successNum = 0;

        int failureNum = 0;

        StringBuilder successMsg = new StringBuilder();

        StringBuilder failureMsg = new StringBuilder();

       // String password = configService.selectConfigByKey("sys.user.initPassword");

        System.out.println("車輛表導(dǎo)入");

        for (FactoryVehicle vehicle : vehicleList)

        {  System.out.println("車輛表:"+vehicle.toString());

            try

            {

                // 驗(yàn)證是否存在這個(gè)人員車輛

            vehicle.setOrgId(user.getOrgId());

            //FactoryVehicle u = factoryVehicleMapper.selectVehicleByUserName(vehicle.getWorkerName());

            FactoryVehicle u = factoryVehicleMapper.selectVehicleByPlate(vehicle.getPlate());

                if (StringUtils.isNull(u))

                {

                System.out.println("車輛表:"+vehicle.toString());

                    

                    vehicle.setCreateBy(operName);

                    this.insertVehicle(vehicle);

                    successNum++;

                    successMsg.append("<br/>" + successNum + "、賬號(hào) " + vehicle.getPlate() + " 導(dǎo)入成功");

                }

                else if (isUpdateSupport)

                {

                vehicle.setUpdateBy(operName);

                    this.updateVehicle(vehicle);

                    successNum++;

                    successMsg.append("<br/>" + successNum + "、賬號(hào) " + vehicle.getPlate() + " 更新成功");

                }

                else

                {

                    failureNum++;

                    failureMsg.append("<br/>" + failureNum + "、賬號(hào) " + vehicle.getPlate() + " 已存在");

                }

            }

            catch (Exception e)

            {

                failureNum++;

                String msg = "<br/>" + failureNum + "、賬號(hào) " + vehicle.getPlate() + " 導(dǎo)入失?。?quot;;

                failureMsg.append(msg + e.getMessage());

                log.error(msg, e);

            }

        }

        if (failureNum > 0)

        {

            failureMsg.insert(0, "很抱歉,導(dǎo)入失敗!共 " + failureNum + " 條數(shù)據(jù)格式不正確,錯(cuò)誤如下:");

            throw new CustomException(failureMsg.toString());

        }

        else

        {

            successMsg.insert(0, "恭喜您,數(shù)據(jù)已全部導(dǎo)入成功!共 " + successNum + " 條,數(shù)據(jù)如下:");

        }

        return successMsg.toString();

    }


@Override

public FactoryVehicle selectVehicleByPlate(String plate) {

// TODO Auto-generated method stub

return null;

}


@Override

public FactoryVehicle selectVehicleByWorkerNo(String workerNO) {

return factoryVehicleMapper.selectVehicleByWorkerNo(workerNO);

}



   

}


關(guān)鍵詞: 軍車車牌識(shí)別 部隊(duì)門(mén)禁系統(tǒng) 智慧軍營(yíng) 數(shù)字軍營(yíng) 營(yíng)區(qū)出入管理系統(tǒng) 部隊(duì)請(qǐng)銷假系統(tǒng) 部隊(duì)派車系統(tǒng) 數(shù)字營(yíng)區(qū) 智慧營(yíng)區(qū) 智慧軍營(yíng)整體解決方案 智慧部隊(duì) 智慧軍隊(duì) 數(shù)字部隊(duì) 智能化營(yíng)區(qū) 部隊(duì)人臉識(shí)別系統(tǒng) 涉密管理系統(tǒng) 營(yíng)房管理系統(tǒng) 維修管理系統(tǒng) 營(yíng)區(qū)訪客系統(tǒng) 離位報(bào)警系統(tǒng) 車輛維修系統(tǒng) 上海車牌識(shí)別系統(tǒng) 部隊(duì)停車場(chǎng)管理系統(tǒng)

電話: 18117117761(24小時(shí))? ? 021-59786133? 郵箱:yuchengzhineng@qq.com ?QQ: 9223677 ? 9603426 ? 529131638

Copyright 2019 m.dzsl.com.cn 上海譽(yù)澄智能科技有限公司 版權(quán)所有 All Rights Reserved ? 網(wǎng)站移動(dòng)版入口

滬公網(wǎng)安備 31011402002854號(hào) 滬ICP備10219392號(hào)-1

亚洲精选网站| 欧美人妖一区二区三区| 国产国产精品视频| 久也在线中文字幕| 无码AⅤ精品一区二区三区| 最新免费看污网站| 国产又猛又爽| 日本三级内射| 综合激情网综合五月| 欧美黄色一级| 中文字幕激情无码专区| 国产精品IGAO视频| 午夜a一区| 精品国产欧美激情| 国外一区二区久久| sao日本人妻| 久久精品国产AV一区二区三区 | 做暖暖在线| 国产真实夫妇交换视频| 久久aV无码导航| 亚洲影院人妻在线| 久久福利视频一区| 亚洲欧洲视频| 欧洲美熟女乱av在| 成人AV电影无码一区| 又大又湿又紧又爽a视频| 亚洲真人无码h网站| 亚洲色20P| 老熟妇成人黄色网站| 欧美日韩一二三区| 久草热视频在线播放| 日韩A级免费大片| 荡女精品导航| 小电影在线亚洲日本| 日韩性爱网| 亚洲无码二区三区| 色哟哟视频免费观看| 内涵av| 五月丁香视频色六月| 日本一区二区不卡高清| 精品AⅤ一区二区三区|