基于javaweb+SSM校园快递物流管理系统

基于javaweb+SSM校园快递物流管理系统

开发工具:eclipse/idea/myeclipse/sts等均可配置运行

适用

课程设计,大作业,毕业设计,项目练习,学习演示等

        	<if test="orderno != null" >
            	orderno =  #{orderno} ,
        	</if>
        	<if test="yuangongid != null" >
            	yuangongid =  #{yuangongid} ,
        	</if>
        	<if test="content != null" >
            	content =  #{content} ,
        	</if>
        	<if test="username != null" >
            	username =  #{username} ,
        	</if>
        	<if test="userphone != null" >
            	userphone =  #{userphone} ,
        	</if>
        	<if test="shijian != null" >
            	shijian =  #{shijian} ,
        	</if>
        	<if test="status != null" >
            	status =  #{status} 
        	</if>
	</sql>
	
	<!-- 查询时条件 -->
	<sql id="Order_where">
        	<if test="id != null" >
        		and id =  #{id}
     * 取当前日期(yyyy-mm-dd hh:mm:ss)
     *
     * @return 时间Timestamp
     */
    public static String getTodayDateTime() {
   
        return format(new Date());
    }

    /**
     * 取得n分钟后的时间
     *
     * @param date 日期
     * @param afterMins
     * @return 时间Timestamp
     */
    public static Date getAfterMinute(Date date, long afterMins) {
   
        if (date == null)
            date = new Date();

        long longTime = date.getTime() + afterMins * 60 * 1000;

        return new Date(longTime);
        if (sDate.length() == 10) {
   
            sDate = sDate + " 00:00:00";
        }
        if (sDate.length() == 16) {
   
            sDate = sDate + ":00";
        }
        return Timestamp.valueOf(sDate);
    }

    /**
     * Date转换为Timestamp
     */
    public static Timestamp convert(Date date) {
   
        return new Timestamp(date.getTime());
    }
        	and id=#{id}        
	</u
  • 1
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值