mark

service:
1.hg操作:
(1)克隆我的fork:hg clone https://hgcode.upesn.com/services/service_esn_plugins_guorunhe
(2)创建我的分支:hg branch branch_name
(3)将指定分支拉下来:hg pull https://hgcode.upesn.com/services/service_esn_plugins_guorunhe -e guorunhe_17_01_17
(4)合并分支:hg merge guorunhe_17_01_17
(5)编写代码
(6)提交:hg ci -m ‘message’
(7)推送:hg push —new-branch
web_al:
1.git操作
(1)克隆远程仓库:git clone ssh://git@outergit.yonyou.com:49622/esn_web/web_acl.git
(2)创建分支:git branch branch_name
(3)切换分支:git checkout branch_name
(4)下拉分支代码:git pull ssh://git@outergit.yonyou.com:49622/esn_web/web_acl.git guorunhe_timestamp_17_01_11
(5)修改代码
(6)提交修改:git commit -m 'add modify timestamp’
(7)将修改代码上传:git push origin guorunhe_timestamp_17_01_11

.根据某一个字段排序
$sql = "select * from version order by substring_index(vercode, '-', -1) desc,substring_index(vercode, '-', 1) desc";


git 提交代码
git clone ssh://git@outergit.yonyou.com:49622/wulc1/service_esn_plugins.git
cd service_esn_plugins
git branch
git branch wulongchao_version_2017_2_24
git checkout wulongchao_version_2017_2_24
git branch
然后把修改的代码拷进去提交代码
git status
git add .
git commit -m "版本信息"
git push ssh://git@outergit.yonyou.com:49622/wulc1/service_esn_plugins.git wulongchao_version_2017_2_24(本地分支名):wulongchao_version_2017_2_24(远程分支,不存在自动创建)

public function versionAction()
{
$aCond['s'] = '';
$order = 'SUBSTRING_INDEX(vercode,'-',-1) DESC,SUBSTRING_INDEX(vercode,'-',1) DESC';
$startNo = 0;
$pagesize = "5";
$res = YClientText::inst('EsnPlugins')->setClass('Version')->getVersionPages($aCond, $order, $startNo, $pagesize);
$pagesize = $res['data']['totalNum'];
$res = YClientText::inst('EsnPlugins')->setClass('Version')->getVersionPages($aCond, $order, $startNo, $pagesize);
foreach($res['data']['list'] as $k=>$v)
{
foreach($v as $kk=>$vv)
{
self::$versionDesc[$v['vercode']] = $v["updesc"];
}

}
var_dump(self::$versionDesc);
exit;
}
protected static $versionDesc = array();

原文地址:https://www.cnblogs.com/jasonxiaoqinde/p/6474504.html