个人编码习惯

1.备份 :开发的代码每天下班前打一份压缩包放到工作空间,压缩包命名格式:projectName-20170809

2.每天下班前提交代码到git/svn。早上编码前先更新代码,防止冲突。

3.sql 书写规范:关键字要大写,select 字段每行四个。

SELECT  format.formatName, excode.code, excode.useTime, excode.channel,
              excode.channelOrderCode, gift.giftName, gift.num, gift.expireDate
FROM    exchange_code excode
LEFT JOIN exchange_gift  gift  ON  gift.formatId=excode.formatId
LEFT JOIN exchange_format  fromat ON format.id=gift.formatId
WHERE excode.code=?
3.1  建表:每个表必须有:create_time ,update_time,creater,updater,yn(0:有效,1:无效)
4. 项目名报名小写,类名大写(驼峰命名法)
原文地址:https://www.cnblogs.com/21heshang/p/7325648.html