Object { success=true, message="200 /upload/54fbb2fb4316...ce3442309f79152d2f6.jpg"}
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\upload
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\upload\b3119313b07eca801cd2e090932397dda04483f6.jpg
http://localhost/app/js/module/jquery-1.11.1.min.js
height: auto;
width: auto\9;
width: 100%;
id=401d6feb-5d21-42db-84bf-170b316e4298;userAccountId=401d6feb-5d21-42db-84bf-170b316e4298;realName=A;job=1;provinceid=110000;cityid=110100;countryid=1;address=AA;email=AA;mobileNo=111;age=18;nickName=KAKA;venueType=1,2,3;userLevel=8;userScore=123;stat=0;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageMapper' defined in file [D:\LearningWorkSpace\juju_sport\juju-base\target\classes\com\juju\sport\base\mapper\MessageMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected 'com.juju.sport.base.mapper.MessageMapper' but found 'com.juju.sport.user.mapper.UsersInfoMapper'.
cwftalus
""{\"id\":\"ab8c850d-86d4-4555-853d-96d586ef4e38\",\"userAccountId\":\"d88e3a0e-0996-4916-907f-4f58264bbcde\",\"provinceid\":110000,\"cityid\":110100,\"countryid\":110102,\"address\":\"瑞京二路\",\"contacts\":\"习近平\",\"mobileNo\":\"155666\",\"descs\":\"瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路\",\"chargeType\":1,\"venueType\":\"1,2,3,4,5,6,7,8\",\"otherServices\":\"2,3\",\"nickName\":\"瑞京\",\"createTime\":\"Apr 10, 2015 9:26:02 AM\",\"lastUpdateTime\":\"Apr 10, 2015 9:26:02 AM\",\"stat\":1}""
"{"id":"923c6b0d-7f76-4110-8484-193d4fb18a44","userAccountId":"e371414c-e327-47dd-97b4-73916af8ab6a","provinceid":120000,"cityid":120100,"countryid":120102,"address":"瑞京二路","contacts":"习近平","mobileNo":"155666","descs":"瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路","chargeType":1,"venueType":"1,2,3,4,5,6,7,8","otherServices":"2,3,2,4,5","nickName":"瑞","createTime":"Apr 10, 2015 4:06:49 PM","lastUpdateTime":"Apr 10, 2015 4:06:49 PM","stat":1,"venueImg":"/upload/pic/1.jpg"}"
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 10, 10
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 20, 10
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 30, 10
select count(*) from juju_orders_items WHERE ( user_account_id = ? and stat = ? )
select * from juju_messages where msg_type = 1 order by msg_time desc limit ?,?
select count(*) from juju_messages WHERE ( msg_type = ? )
PageQuery(total=0, pageSize=10, currPage=3)
<input type="text" value="300" name="maxitems" id="maxitems" class="numeric"/>
<input type="text" value="10" name="items_per_page" id="items_per_page" class="numeric"/>
<input type="text" value="0" name="num_display_entries" id="num_display_entries" class="numeric"/>
<input type="text" value="0" name="num_edge_entries" id="num_edge_entries" class="numeric"/>
/app/site/siteinfo.html
"{\"id\":\"4c3d6d20-1d98-43f6-95a9-ad6573c28fa6\",\"userAccountId\":\"1945b6e9-4e31-4f42-8da1-9b9050b54d98
\",\"provinceid\":120000,\"cityid\":120100,\"countryid\":120102,\"address\":\"88\",\"contacts\":\"88
\",\"mobileNo\":\"888\",\"descs\":\"8888\",\"chargeType\":1,\"venueType\":\"1,10,11,12,13,14,15,16,2
,3,4,5,6,7,8,9\",\"otherServices\":\"1,2,3\",\"nickName\":\"888\",\"createTime\":\"Apr 14, 2015 7:51
:52 PM\",\"lastUpdateTime\":\"Apr 14, 2015 7:51:52 PM\",\"stat\":1,\"sportTypeList\":[{\"id\":\"1\",
\"sportName\":\"足球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12
:00:00 AM\",\"stat\":1},{\"id\":\"10\",\"sportName\":\"滑雪\",\"createTime\":\"Apr 11, 2015 1:23:32 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:23:35 PM\",\"stat\":1},{\"id\":\"11\",\"sportName\":\"卡丁车\",\"createTime
\":\"Apr 11, 2015 1:23:51 PM\",\"lastUpdateTime\":\"Apr 11, 2015 1:23:53 PM\",\"stat\":1},{\"id\":\"12
\",\"sportName\":\"乒乓球\",\"createTime\":\"Apr 11, 2015 1:24:20 PM\",\"lastUpdateTime\":\"Apr 11, 2015
1:24:23 PM\",\"stat\":1},{\"id\":\"13\",\"sportName\":\"攀岩\",\"createTime\":\"Apr 11, 2015 1:25:34 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:25:36 PM\",\"stat\":1},{\"id\":\"14\",\"sportName\":\"桌球\",\"createTime
\":\"Apr 11, 2015 1:26:00 PM\",\"lastUpdateTime\":\"Apr 11, 2015 1:26:02 PM\",\"stat\":1},{\"id\":\"15
\",\"sportName\":\"自行车\",\"createTime\":\"Apr 11, 2015 1:26:18 PM\",\"lastUpdateTime\":\"Apr 11, 2015
1:26:20 PM\",\"stat\":1},{\"id\":\"16\",\"sportName\":\"其他\",\"createTime\":\"Apr 11, 2015 1:35:28 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:35:31 PM\",\"stat\":1},{\"id\":\"2\",\"sportName\":\"篮球\",\"createTime
\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":
\"3\",\"sportName\":\"羽毛球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24,
2015 12:00:00 AM\",\"stat\":1},{\"id\":\"4\",\"sportName\":\"网球\",\"createTime\":\"Mar 24, 2015 12:00
:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"5\",\"sportName\":\"游
泳\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat
\":1},{\"id\":\"6\",\"sportName\":\"排球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime
\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"7\",\"sportName\":\"溜冰\",\"createTime\":\"Mar 24
, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"8\",\"sportName
\":\"跑步\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\"
,\"stat\":1},{\"id\":\"9\",\"sportName\":\"棒球\",\"createTime\":\"Apr 11, 2015 1:23:07 PM\",\"lastUpdateTime
\":\"Apr 11, 2015 1:23:11 PM\",\"stat\":1}],\"serviceTypeList\":[{\"id\":\"1\",\"serviceName\":\"车位\"
,\"stat\":1},{\"id\":\"2\",\"serviceName\":\"自带淋浴\",\"stat\":1},{\"id\":\"3\",\"serviceName\":\"器具出租
\",\"stat\":1}]}"
IPv4 地址 . . . . . . . . . . . . : 192.168.1.66
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.99
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.134
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.200
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : 192.168.1.1
VenuesInfo(id=null, userAccountId=null, provinceid=140000, cityid=140100, countryid=140105, address=111, contacts=111, mobileNo=111, descs=111, chargeType=1, venueType=1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9, otherServices=1,2,3, email=null, nickName=测试专用, userLevel=null, userScore=null, createTime=null, lastUpdateTime=null, stat=null, venueImg=null, serviceTypeList=null, sportTypeList=null)
venueType=1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9, otherServices=1,2,3,
id=null, userAccountId=null,
createTime=null, lastUpdateTime=null, stat=null,
venueImg=null, serviceTypeList=null, sportTypeList=null
<div style=" float:left; font-size:12px; width:68px;">
<input id="ck2" type="checkbox" name="ck2" value="">
<label style="color:rgb(255, 255, 255);" for="ck2"> 篮球 </label>
</div>
<div style="color:#fff; width:85px; height:25px; background-color:rgb(207,0,57); line-height:25px; text-align:center; margin:0 auto;">保存</div>
{"status":200,"message":null,"data":{"total":27,"pageSize":10,"currPage":1,"results":[{"id":"045bf148-2f1b-4c98-969a-5c2e602a5da5"
{"status":200,"message":"200","data":{"total":18,"pageSize":0,"currPage":1,"results":[{"id":"0d79fc48-2bcb-4534-98e9-dce54d0ec2c8"
{"status":200,"message":"200","data":{"total":18,"pageSize":10,"currPage":1,"results":[{"id":"bb5cf7c3-2117-4c3e-add7-0e55ffa0d1d7"
src="z:///upload/e94edab1-6380-4021-ba43-89f0730bed85.jpg"
src="/upload/54fbb2fb43166d2205a0cce3442309f79152d2f6.jpg"
window.parent.addCorps();
传入一个userAccountId vid
4ad08bfd-709b-4c23-993e-66bdcfce98b6
var email_reg =/^[a-zA-Z0-9_\-]{1,}@[a-zA-Z0-9_\-]{1,}\.[a-zA-Z0-9_\-.]{1,}$/;
//var phone_reg = /^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$/;
//var phone_reg = /^(13[0-9]|147|15[0-3]|15[5-9]|18[0])\d{8}$/;
//var phone_reg = /^(((13[0-9]{1})|147|(15[0-3]{1})|(15[5-9]{1})|(18[0-3]{1})|(18[5-9]{1}))+\d{8})$/;
//var phone_reg =/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
//var phone_reg =/^((145|147)|(15[^4])|(17[6-8])|((13|18)[0-9]))\d{8}$/;
//var phone_reg =/^1[3|4|5|8][0-9]\d{4,8}$/;
//var phone_reg =/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|189[0-9]{8}$/;
//var phone_reg =/^13[0-9]{1}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/;
//var phone_reg =/^[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}$/;
//var phone_reg =/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
//var phone_reg =/^(13[0-9]{9}|15[012356789][0-9]{8}|18[02356789][0-9]{8}|147[0-9]{8}$/;
//var phone_reg = /^(13[\d]{9}|15[\d]{9}|18[\d]{9})$/;
//var phone_reg=/^(^0\d{2}-?\d{8}$)|(^0\d{3}-?\d{7}$)|(^\(0\d{2}\)-?\d{8}$)|(^\(0\d{3}\)-?\d{7}$)$/;
//var phone_reg=/^1([3]\d|4[57]|5[^3]|8\d)\d{8}$/;
//var phone_reg= /^(13[0-9]|15[0|3|6|7|8|9]|18[8|9])\d{8}$/;
//var phone_reg= /^[1][358]\d{9}$/;
//var phone_reg= /^(13[0-9]|15[0-9]|18[8|9])\d{8}$/;
//var phone_reg = /^(1[3|5|8])[\d]{9}$/;
//var phone_reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
var phone_reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
<div id="03c7aa64-4ee2-4b0b-9f84-af764f0570df" class="block" name="03c7aa64-4ee2-4b0b-9f84-af764f0570df" style="cursor:pointer;" onclick="findTeam('03c7aa64-4ee2-4b0b-9f84-af764f0570df')">
<div id="03c7aa64-4ee2-4b0b-9f84-af764f0570df" class="block" name="03c7aa64-4ee2-4b0b-9f84-af764f0570df" style="cursor:pointer;" onclick="findTeam('03c7aa64-4ee2-4b0b-9f84-af764f0570df')">
@RequestMapping(value = "/joinlist.do")
@ResponseBody
public Response<List<TeamDto>> joinlist(HttpSession session, TeamListDto teamListDto,
PageQuery page) {
Response<ArrayList<TeamDto>> result = new Response<ArrayList<TeamDto>>();
//获取当前登录用户Id
LoginUserDto loginUserDto = SessionUtil.getLoginSession(session);
// 只允许登录用户进行操作
if (loginUserDto != null) {
List<TeamListDto> teamlist = new ArrayList<TeamListDto>();
teamListDto.setUserAccountId(loginUserDto.getId());
teamlist = iUserTeamListService.findBy(teamListDto);
if(!teamlist.isEmpty()){
List<String> teamIds = new ArrayList<String>();
for(int i=0;i<teamlist.size();i++){
TeamListDto teamObj = teamlist.get(i);
teamIds.add(teamObj.getTeamId());
}
TeamDto teamDto = new TeamDto();
teamDto.setTeamIds(teamIds);
List<TeamDto> list = iUserTeamService.findBy(teamDto);
for(TeamDto tDto : list){
tDto.setSportName(iSportTypeCache.findNameByID(tDto.getSportId()));
}
result.setStatus(DataStatus.HTTP_SUCCESS);
result.setData(list);
//return result;
}
}
return result;//JsonUtil.getJsonStr(new RequestResult(true, JsonUtil.getJsonStr(result)));
}
{"status":200,"message":null,"data":{"total":11,"pageSize":5,"currPage":1,"results":[{"id":"333211ef-bbde-431d-991f-ece356944e0c"
,"teamId":"87a211ef-bbde-431d-991f-ece356944e0c","userAccountId":"10194c3c-d663-4c04-9362-5cc0042cdcfe"
,"telephone":null,"status":0,"createTime":1427968719000,"lastUpdateTime":null,"stat":1,"teamName":"DNF"
,"warType":null,"joinNum":1,"thumbnail":"/upload/34.jpg","maxNum":500},{"id":"3e32253e-5ed1-4fe3-b16d-5a4f81b067de"
,"teamId":"03c7aa64-4ee2-4b0b-9f84-af764f0570df","userAccountId":"10194c3c-d663-4c04-9362-5cc0042cdcfe"
,"telephone":null,"status":0,"createTime":1427968647000,"lastUpdateTime":null,"stat":1,"teamName":"飞
虎队","warType":1,"joinNum":1,"thumbnail":"upload/20150507/a6064a102ede4e26aa39efe63aa715a7.","maxNum"
:499},{"id":"5c5cbf9e-04b7-490d-93a4-b04ef9adf281","teamId":"56d4d20d-07aa-49c0-9dcf-423d8bc0043d","userAccountId"
:"ea40e83e-15f1-46d3-9439-3299eea90d5f","telephone":null,"status":0,"createTime":1428542272000,"lastUpdateTime"
:null,"stat":1,"teamName":"nefix足球王子","warType":1,"joinNum":1,"thumbnail":"upload/f73ca98a6452444caf7c9657f3d3e1a2
.gif","maxNum":123},{"id":"7795ec61-ca46-4c9e-91b3-2f1e0b2ae474","teamId":"56d4d20d-07aa-49c0-9dcf-423d8bc0043d"
,"userAccountId":"ea40e83e-15f1-46d3-9439-3299eea90d5f","telephone":null,"status":0,"createTime":1428542352000
,"lastUpdateTime":null,"stat":1,"teamName":"nefix足球王子","warType":1,"joinNum":1,"thumbnail":"upload/f73ca98a6452444caf7c9657f3d3e1a2
.gif","maxNum":123},{"id":"96fbd118-5f10-4ee1-8fd1-df474ff40d20","teamId":"bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7"
,"userAccountId":"3ea4b42d-37db-47f2-be4a-c1fab5383dd4","telephone":null,"status":0,"createTime":1427968376000
,"lastUpdateTime":null,"stat":1,"teamName":"天下篮球队22222","warType":2,"joinNum":1,"thumbnail":"upload/bff2eec7c4b74d68848c53c0a9429f27
.gif","maxNum":10}],"startNum":0}}
SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe'
private List<ServiceType> serviceTypeList;
private List<SportType> sportTypeList;
public List<ServiceType> getServiceTypeList() {
return serviceTypeList;
}
public void setServiceTypeList(List<ServiceType> serviceTypeList) {
this.serviceTypeList = serviceTypeList;
}
public List<SportType> getSportTypeList() {
return sportTypeList;
}
public void setSportTypeList(List<SportType> sportTypeList) {
this.sportTypeList = sportTypeList;
}
<collection select="selectVenuesServiceTypeMapping" property="serviceTypeList" javaType="ArrayList"
column="id" ofType="com.juju.sport.base.pojo.ServiceType" />
<collection select="selectVenuesSportTypeMapping" property="sportTypeList" javaType="ArrayList"
column="id" ofType="com.juju.sport.base.pojo.SportType" />
<select id="selectVenuesServiceTypeMapping" parameterType="java.lang.String" resultType="com.juju.sport.base.pojo.ServiceType" >
<![CDATA[
select id, service_name serviceName, create_time createTime, last_update_time lastUpdateTime, stat
from juju_service_type where stat=1 and id in (
select service_type_id from juju_venues_service_type_mapping
where stat=1 and venues_info_id=#{id}
)
]]>
</select>
<select id="selectVenuesSportTypeMapping" parameterType="java.lang.String" resultType="com.juju.sport.base.pojo.SportType" >
<![CDATA[
select id, sport_name sportName, create_time createTime, last_update_time lastUpdateTime, stat
from juju_sport_type type where stat =1 and type.id in (
select sport_type_id from juju_venues_sport_type_mapping
where stat=1 and venues_info_id=#{id}
)
]]>
</select>
window.parent.iFrameHeight();//window.opener.location.reload(); location.reload(); window.location.reload();
-- SELECT * FROM juju_team WHERE user_account_id='10194c3c-d663-4c04-9362-5cc0042cdcfe'
-- select member.id id, member.pic pic, member.team_id teamId, member.member_num memberNum, users.real_name chineseName,
-- users.english_name, users.english_name englishName, users.nick_name nickName, users.brithday dateOfBorn, users.gender gender, users.eihnic eihnic,
-- users.native_place nativePlace, users.company company, users.provinceId, users.cityId, users.countryId,
-- users.height, users.weight, users.telephone, users.mobile_no mobile, users.email, users.document_no, member.position,
-- users.stat, users.create_time, users.last_update_time, member.team_position teamPosition, account.user_account userAccount
-- from (
-- select * from juju_team_member where stat=1 and team_id='03c7aa64-4ee2-4b0b-9f84-af764f0570df'
-- ) member
-- left join juju_users users on member.user_id = users.id and users.stat=1
-- left join juju_user_account account on users.user_account_id = account.id and account.stat=1
-- select * from juju_messages where msg_type= 2
-- SELECT * FROM juju_team
-- SELECT * FROM juju_team_list
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE a.user_account_id <> '10194c3c-d663-4c04-9362-5cc0042cdcfe' ORDER BY create_time DESC
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id limit 0,4
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id and b.stat=1 and b.stat = 1 where 1=1
-- SELECT count(*) FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id AND b.stat=1 AND a.stat=1 WHERE 1=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT * FROM juju_team
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe'
-- select id, sport_name sportName, create_time createTime, last_update_time lastUpdateTime, stat from juju_sport_type type where stat =1 and type.id in ( select sport_type_id from juju_venues_sport_type_mapping where stat=1 and venues_info_id='4c3d6d20-1d98-43f6-95a9-ad6573c28fa6' )
-- select * from juju_venues_info where user_account_id ='1b444c45-3af5-4f9e-92af-d84cb233d84f'
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail ,b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail, b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 LIMIT 0, 11
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d'
-- SELECT * FROM juju_team WHERE user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d'
-- SELECT * FROM juju_team WHERE user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d' ORDER BY create_time DESC LIMIT 0,4
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != 'bfe24cdf-33a7-4c5b-8463-49398341227c' LIMIT 0, 5
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != 'bfe24cdf-33a7-4c5b-8463-49398341227c' LIMIT 0, 5
-- SELECT * FROM juju_team a WHERE a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe' ORDER BY create_time DESC LIMIT 0, 5
SELECT DISTINCT a.*,b.user_account_id AS bb FROM juju_team a LEFT JOIN juju_team_list b on a.id = b.team_id AND b.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe' WHERE a.stat=1 ORDER BY create_time DESC
Wed Apr 29 19:28:52 CST 2015
] - 文件长度: 13109
[INFO ][2015-05-13 11:43:43,751] - 文件类型: image/jpeg
[INFO ][2015-05-13 11:43:43,751] - 文件名称: file
[INFO ][2015-05-13 11:43:43,751] - 文件原名: 7e927661-88c8-4734-82ef-46eebd7c97fb.jpg
[INFO ][2015-05-13 11:43:43,751] - ========================================
[INFO ][2015-05-13 11:43:43,751] - filePaht :Z:\upload\/20150513a14ce0dcaf664adb90418606e194c84e.jpg
JQ全选/全不选
$("#checkall").click(function(){
if(this.checked){
$("input[name='venueType']").each(function(){this.checked=true;});
}else{
$("input[name='venueType']").each(function(){this.checked=false;});
}
});
/* $("#checkall").click(function() {
alert('yin');
$("input[name='venueType']").prop("checked", this.checked);
});
$("input[name='venueType']").click(function() {
alert('jam');
var $subs = $("input[name='venueType']");
$("#checkall").prop("checked" , $subs.length == $subs.filter(":checked").length ? true :false);
}); */
http://192.168.1.89/api/m/preOrder/spaceLists/22c7baf9-5ec7-403e-a95b-28de28b5af1d.do?orderTime=2015-05-12&sjTime=18:00-19:00&ownerAccountId=22c7baf9-5ec7-403e-a95b-28de28b5af1d
$("#team_member").html("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].thumbnail + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">"+jsonData[i].nickName + "</span>\
</p>");
$("#team_member").html("<p style=\" font-size:10px; line-height:22px;\">\
职称:");
if(jsonData[i].teamPosition == 1){
$("#team_member").html("<span style=\" font-size:10px;\">队长</span>");
}else if(jsonData[i].teamPosition == 2){
$("#team_member").html("<span style=\" font-size:10px;\">副队长</span>");
}else{
$("#team_member").html("<span style=\" font-size:10px;\">普通队员</span>");
}
$("#team_member").html("</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>");
if(jsonData[i].nickName==1){
队长
}else if(jsonData[i].nickName==2){
副队长
}else{
普通队员
}
acdd8c7d-6c99-429c-987e-f412ac8a2beb
bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7
dbf98f84-7b83-497d-968b-bb8e7f12a24a
e93eb8ce-52ad-427b-abdf-340fa31b54b0
for(var i = 0;i <jsonData.length;i++){
var objHtml = "";
objHtml += "<div style='height:100px; width:100%; height:100%; overflow:hidden;'>";
objHtml +="<div style='float:left; margin-right:4px;margin-top:5px;'><img src='"+jsonData[i].thumbnail + "' width='60' height='60'></div>";
objHtml +="<div style='float:left; '>";
objHtml +="<p style='width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;'>";
objHtml +="昵称:<span style='font-size:10px;'>"+jsonData[i].nickName + "</span>";
objHtml +="</p>";
objHtml +="<p style=' font-size:10px; line-height:22px;'>";
objHtml +="职称:";
objHtml +="<span style=' font-size:10px;'>";
if(jsonData[i].teamPosition == 1){
objHtml +="队长";
}else if(jsonData[i].teamPosition == 2){
objHtml +="副队长";
}else{
objHtml +="普通队员";
}
objHtml +="</span>";
objHtml +="</p>";
objHtml +="</div>";
objHtml +="<div style='clear:both;'></div>";
objHtml +="</div>";
$("#team_member").html(objHtml);
}
'"+jsonData[i].nickName + "'
for(var i = 0;i <jsonData.length;i++){
$("#team_member").append("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].thumbnail + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">'"+jsonData[i].nickName + "'</span>\
</p>\
<p style=\" font-size:10px; line-height:22px;\">\
职称:\
if(jsonData[i].teamPosition==1){\
<span style=\" font-size:10px;\">'队长'</span>\
}else if(jsonData[i].teamPosition==2)){\
<span style=\" font-size:10px;\">'副队长'</span>\
}else{\
<span style=\" font-size:10px;\">'普通队员'</span>\
}\
</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>");
}
for(var i = 0;i <jsonData.length;i++){
$("#team_member").append("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].pic + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">'"+jsonData[i].nickName + "'</span>\
</p>\
<p style=\" font-size:10px; line-height:22px;\">\
职称:\
<span style=\" font-size:10px;\">'"+jsonData[i].teamPosition + "'</span>\
</p>\
<p style=\" font-size:10px;line-height:22px;\">\
特长:<span style=\" font-size:10px;\">\
'"+jsonData[i].teamPosition + "'\
</span>\
</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>"
);
}
cwftalus
http://192.168.1.89/user/team/showMembersInfo.do?id=%27bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7%27
SELECT a.*,c.nick_name,b.thumbnail FROM juju_team_list a left JOIN juju_users c on a.user_account_id = c.user_account_id left JOIN juju_team b ON a.team_id = b.id WHERE a.team_id =
if(jsonData == '验证码输入错误!'){
layer.tips(jsonData, '#change');
}else{
layer.tips(jsonData, '#user_sub');}
{"status":200,"message":null,"data":{"total":20,"pageSize":5,"currPage":1,"results":[{"id":"5cc365a2-2132-4406-87ff-f61d0614f5f3"
,"teamId":null,"userAccountId":"31a7df12-7bd1-4dac-902f-16011bedd156","telephone":null,"status":0,"createTime"
:1432025180000,"lastUpdateTime":null,"stat":1,"teamName":"a","warType":null,"joinNum":1,"thumbnail":""
,"sportId":"1","sportName":"足球","warDesc":"a","nickName":null,"teamPosition":null,"maxNum":1},{"id":"37391a25-220d-4a64-94b7-ee308de65984"
,"teamId":null,"userAccountId":"ccfcde40-3844-4309-b211-4f92dd6ec985","telephone":null,"status":0,"createTime"
:1432024666000,"lastUpdateTime":null,"stat":1,"teamName":"QQQQQQQQ","warType":null,"joinNum":1,"thumbnail"
:"/upload/20150519/8292be0daa2a4030923875c32a8e4f47.png","sportId":"8","sportName":"跑步","warDesc":"DDDDDDDDDDDDDD"
,"nickName":null,"teamPosition":null,"maxNum":67676767},{"id":"0a7be71f-4a41-4457-afef-2fa92b68fad7"
,"teamId":null,"userAccountId":"31a7df12-7bd1-4dac-902f-16011bedd156","telephone":null,"status":0,"createTime"
:1432024440000,"lastUpdateTime":null,"stat":1,"teamName":"A","warType":null,"joinNum":1,"thumbnail":""
,"sportId":"1","sportName":"足球","warDesc":"A","nickName":null,"teamPosition":null,"maxNum":1},{"id":"50ac30dd-81b7-44c0-94fe-5d678c920a86"
,"teamId":null,"userAccountId":"bfe24cdf-33a7-4c5b-8463-49398341227c","telephone":null,"status":0,"createTime"
:1431315566000,"lastUpdateTime":null,"stat":1,"teamName":"QQA","warType":null,"joinNum":1,"thumbnail"
:"/upload/20150511/1431315550396.jpg","sportId":"11","sportName":"卡丁车","warDesc":"小兔子战队","nickName":null
,"teamPosition":null,"maxNum":11},{"id":"21084107-5e35-4865-bdbb-48d76a27255f","teamId":null,"userAccountId"
:"75cee0c2-ab6d-4ff4-bf6f-0716afef8ead","telephone":null,"status":0,"createTime":1431313901000,"lastUpdateTime"
:null,"stat":1,"teamName":"PS","warType":null,"joinNum":1,"thumbnail":"/upload/20150511/1431313889862
.jpg","sportId":"11","sportName":"卡丁车","warDesc":"按时","nickName":null,"teamPosition":null,"maxNum":133
}],"startNum":0}}
SELECT * FROM juju_messages WHERE msg_to_id = '';
SELECT DATE(create_time),DATE(SYSDATE()),HOUR(SYSDATE()),HOUR(create_time),HOUR(SYSDATE())-HOUR(create_time) FROM juju_orders_items LIMIT 10;
SELECT * FROM juju_orders WHERE DATE(create_time) = DATE(SYSDATE())
UPDATE juju_orders SET order_status = -4 WHERE order_status <> 2 AND DATE(create_time) = DATE(SYSDATE()) AND (HOUR(SYSDATE())-HOUR(create_time)) >= 1;
UPDATE juju_orders_items SET order_status = -4 WHERE order_status <> 2 AND DATE(create_time) = DATE(SYSDATE()) AND (HOUR(SYSDATE())-HOUR(create_time)) >= 1;
SELECT NAME,COUNT(*) FROM `yd_venues_info` GROUP BY NAME;
SELECT DISTINCT FROM `yd_venues_info` GROUP BY NAME;
SELECT * FROM `yd_venues_info` WHERE NAME ='121弄健身点'
SELECT * FROM `yd_venues_info` WHERE category NOT LIKE '%社区%' AND category NOT LIKE '%农民体%' AND category NOT LIKE '%百姓%';
<div class="btn_bg" id="cz" check="0" onclick="_click('cz',0);" style="cursor:pointer; background-image:url('images/xz.png')">
<img src="images/czz.png" style="padding-top:2%; " />
</div>
<div class="btn_bg" id="gz" check="1" onclick="_click('gz',1);" style="cursor:pointer;">
<img src="images/gzz.png" style="padding-top:2%; " />
</div>
{"status":200,"message":null,"data":[{"id":310101,"parentId":"310100","name":"黄浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310104,"parentId":"310100","name":"徐汇区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310105,"parentId":"310100","name":"长宁区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310106,"parentId":"310100","name":"静安区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310107,"parentId":"310100","name":"普陀区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310108,"parentId":"310100","name":"闸北区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310109,"parentId":"310100","name":"虹口区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310110,"parentId":"310100","name":"杨浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310112,"parentId":"310100","name":"闵行区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310113,"parentId":"310100","name":"宝山区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310114,"parentId":"310100","name":"嘉定区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310115,"parentId":"310100","name":"浦东新区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310116,"parentId":"310100","name":"金山区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310117,"parentId":"310100","name":"松江区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310118,"parentId":"310100","name":"青浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310120,"parentId":"310100","name":"奉贤区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310230,"parentId":"310100","name":"崇明县","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1}]}
http://localhost:8080/upload/20150525/ba1d4ab7596b4f83a8ea6d91b409b554.jpg
{"status":200,"message":null,"data":[{"id":"7e7f58e0-5008-48e6-91ff-d2fe3bdb26bb","teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e"
,"userAccountId":"f550d777-f12a-4580-8cfb-531ff6aca4be","telephone":null,"status":1,"createTime":1432714541000
,"lastUpdateTime":null,"stat":1,"teamName":null,"warType":null,"joinNum":null,"thumbnail":"","sportId"
:null,"sportName":null,"warDesc":null,"nickName":"juju_s3978","teamPosition":"0","maxNum":null},{"id"
:"881f9998-7c8b-4fa5-9874-c61531a39d15","teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e","userAccountId"
:"1385f4c9-4e39-48d9-a503-2a9054df7fd0","telephone":null,"status":1,"createTime":1432774434000,"lastUpdateTime"
:null,"stat":1,"teamName":null,"warType":null,"joinNum":null,"thumbnail":"","sportId":null,"sportName"
:null,"warDesc":null,"nickName":"juju_s3978","teamPosition":"0","maxNum":null},{"id":"9143340e-d141-44ef-bc3e-887dcbe26960"
,"teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e","userAccountId":"83faf6f8-05ad-45da-b21c-a6f6d20f87a5"
,"telephone":null,"status":1,"createTime":1432708007000,"lastUpdateTime":null,"stat":1,"teamName":null
,"warType":null,"joinNum":null,"thumbnail":"","sportId":null,"sportName":null,"warDesc":null,"nickName"
:"juju_s3978","teamPosition":"1","maxNum":null}]}
f550d777-f12a-4580-8cfb-531ff6aca4be 1385f4c9-4e39-48d9-a503-2a9054df7fd0 83faf6f8-05ad-45da-b21c-a6f6d20f87a5
文件上传:/upload/20150529/77a106c7cf8b40859e0fde16c5dac571.jpg
http://192.168.1.169/upload/20150529/5cc3c93122c24e359325d971f01649ee.jpg"
APP接口:
http://192.168.1.87/api/m/umanages/login.do?randomPic=000000&accountName=%E6%B5%8B%E8%AF%9501&pwd=a11111 字符窜不加引号的噢
http://192.168.1.87/stadium/findChooseByAdd.do?pageSize=4&currPage=1
userAccountId 00000206-d691-11e4-a9ec-005056c00008
<a href="/app/index.html"><img src="/images/logo.png"></a>
http://192.168.1.103/api/rest/venues/updateInfoByTdc.do?orderno=1432174123209&documentNo=841973440198909033412&cardImage=102.jpg&
sid=97f75f60c1da6256c74d61bbe5ea7db8
seq=1234567891234567891234567891&sidPwd=3bc81b682e949840a8470acfdcc7c71f
12345678912345678912345678913bc81b682e949840a8470acfdcc7c71f
//layer.tips(data.message, '#confirm');
if(data.status == 200){
//console.log(data.status);
window.close();
window.parent.close();
//window.parent.parent.close();
//parent.layer.close(index);
layer.close(index);
layer.close();
}
//身份证正则表达式(15位)
isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/;
//身份证正则表达式(18位)
isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$/;
//15位和18位身份证号码的正则表达式
var regIdCard=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
$("#venueTypes").append("<div style=' float:left; font-size:12px; width:68px;'><input type='checkbox' name='venueType' onclick=\"setSelectAll();\" id='venueType"+ i +"' value=\'"+jsonData[i].id+"\'><label style='color:rgb(255, 255, 255);' for='venueType"+ i +"'>"+jsonData[i].sportName+"</label></option>");
<div style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;" id="showName">vivian-1111111121111</div>
<div class="cls_hand" style="height:40px;padding-top:10px;margin-right:10px;vertical-align:middle;float:left;" onclick="userManage();">
<img style="vertical-align:middle;" src="/images/sign_in.png">
您好,
<span id="showName">vivian-1111111121111</span>
</div>
<div class="cls_hand" style="height: 40px; padding-top: 10px; margin-right: 10px; vertical-align: middle; float: left;" onclick="userManage();">
<div style="float: left;">
<img style="vertical-align: middle;" src="/images/sign_in.png">
您好,
</div>
<div id="showName" style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;">vivian-1111111121111</div>
</div>
<div style='float: left;'>
<img src="/images/sign_in.png" style="vertical-align: middle;" />您好,
</div>
<div id="showName" style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;"></div>
http://192.168.1.103/venues/4c3d6d20-1d98-43f6-95a9-ad6573c28fa6.do
192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do user_account_id
192.168.1.70/preOrder/dateList/48311661-41fe-4383-b593-e077dabe8f05.do
192.168.1.70/preOrder/hourList/48311661-41fe-4383-b593-e077dabe8f05.do
192.168.1.70/preOrder/spaceLists/48311661-41fe-4383-b593-e077dabe8f05.do
预定信息:
<!--
<#list spaceOpenTimelist as y>
${y.openWeek} ${y.price} ${y.startTime} ${y.endTime}
</#list>
-->
http://192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do
http://192.168.1.103/space/48311661-41fe-4383-b593-e077dabe8f05.do
<!--
<#if sportTypeDtoList ??>
<#list sportTypeDtoList as x>
<a id="${x.sportType}" class="cur" href="###">${x.sportName}</a>
</#list>
</#if>
-->
<a id="basketball" class="cur" href="###">篮球</a>
<a id="football" href="###">足球</a>
http://192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do###
http://192.168.1.103/venues/1b444c45-3af5-4f9e-92af-d84cb233d84f.do###
http://192.168.1.103/venue_detail.html
<script>
$(function(){
//paybox标题显示
$('.pay_box h2').html($('.sbutton_box').find('a').eq(0).text()).attr('id',$('.sbutton_box').find('a').eq(0).attr('id'))
//体育馆种类切换
$('.sbutton_box a').on('click',function(){
$(this).addClass('cur').siblings('a').removeClass('cur')
$('.pay_box h2').html($(this).text()).attr('id',$(this).attr('id'))
})
//时间切换
$('.week_box ul li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur')
})
//选择场地和时间
$('.choose_box ul li.res').on('click',function(){
alert("abc");
$(this).toggleClass('cur');
})
//评论打分
var g_score = 0;
$('.grade_box ul li').on('click',function(){
$('.grade_box ul li').removeClass('cur')
$(this).prevAll('li').andSelf().addClass('cur')
g_score = $(this).index() +1
})
//切换场馆
$('.next_arr').on('click',function(){
$('.container ul').css('left', '-896px')
})
$('.prev_arr').on('click',function(){
$('.container ul').css('left', 0)
})
})
</script>
style="display:none;"
${(venusInfoDto.nickName)!} 加!做非空判断
13012817028
[INFO ][2015-07-14 17:39:50,735] - {"accessTime":"2015-07-14 17:39:50","host":"127.0.0.1:8080","requestURL":"http://127.0.0.1:8080/api/upload.do","requestURI":"/api/upload.do","contextPath":"","contentType":"multipart/form-data; boundary\u003d----WebKitFormBoundary2MM3gEAXc5Wr71V4","contextLength":35670,"method":"POST","parameterMap":{"id":["0125"]}}
[INFO ][2015-07-14 17:39:50,745] - 文件长度: 35398
[INFO ][2015-07-14 17:39:50,746] - 文件类型: image/jpeg
[INFO ][2015-07-14 17:39:50,746] - 文件名称: file
[INFO ][2015-07-14 17:39:50,746] - 文件原名: 1.jpg
[INFO ][2015-07-14 17:39:50,746] - ========================================
[INFO ][2015-07-14 17:39:50,761] - filePaht :F:\yin\/20150714/98c28b85df044d499fecaf667720e778.jpg
"<form action="/api/uploadEx.do" method="post" enctype="multipart/form-data" style="display: none;"></form>"
var _pageTag = getQueryStringByName('_pageTag');
function getQueryStringByName(name){
var result = location.search.match(new RegExp("[\?\&]" + name+ "=([^\&]+)","i"));
if(result == null || result.length < 1){
return "";
}
return result[1];
}
<a href="login.html?_pageTag=login">登录</a> | <a href="login.html?_pageTag=reg">注册</a>
http://192.168.1.70/api/message/findMessByOwner.do
{"status":200,"message":null,"data":{"total":17,"pageSize":3,"currPage":1,"results":[{"id":"80d3b5c1-01c6-4fa2-a0ca-d395ecd3ca48"
,"msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57","msgToId":"48311661-41fe-4383-b593-e077dabe8f05"
,"msgTime":1436976000000,"attachment":"","msgStatus":0,"createTime":1437026929000,"lastUpdateTime":1437026929000
,"stat":1,"userAccount":"哈瓦一","msgContent":"撒地方阿道夫撒旦","msgScore":5,"userImg":"","showMsgTime":"2015-07-16"
,"msgResource":1},{"id":"7851a155-938f-46fd-86d0-8ef3a3bd262a","msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57"
,"msgToId":"48311661-41fe-4383-b593-e077dabe8f05","msgTime":1436976000000,"attachment":"","msgStatus"
:0,"createTime":1437025770000,"lastUpdateTime":1437025770000,"stat":1,"userAccount":"哈瓦一","msgContent"
:"哈哈哈奤","msgScore":5,"userImg":"","showMsgTime":"2015-07-16","msgResource":1},{"id":"52276cb5-2ba0-466e-8236-016f7fb01bc7"
,"msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57","msgToId":"48311661-41fe-4383-b593-e077dabe8f05"
,"msgTime":1436976000000,"attachment":"","msgStatus":0,"createTime":1437025461000,"lastUpdateTime":1437025461000
,"stat":1,"userAccount":"哈瓦一","msgContent":"uuuuu","msgScore":3,"userImg":"","showMsgTime":"2015-07-16"
,"msgResource":1}],"startNum":0}}
Freemarker:
<input type="text" id="xLocation" name="xLocation" value="${(xLocation)!}"/>
<input type="text" id="yLocation" name="yLocation" value="${(yLocation)!}"/>
<input type="text" id="xLocation1" name="xLocation1" value="${(xLocation1?double)!}"/>
<input type="text" id="yLocation1" name="yLocation1" value="${(yLocation1?double)!}"/>
{"status":200,"message":null,"data":[{"id":"fdef643e-2bb5-4f1e-8b64-5f90d29f218d","userAccountId":"74c5f7d3-d8ee-4d2e-ae46-7d9a59e5394c"
,"userAccount":null,"provinceid":null,"provinceName":null,"cityid":null,"cityName":null,"countryid":null
,"countryName":null,"address":"dd","contacts":"dd","mobileNo":"13077777777","descs":null,"chargeType"
:null,"chargeTypeName":null,"venueType":null,"venueTypeNames":null,"otherServices":null,"email":null
,"nickName":"13077777777","userLevel":null,"userScore":null,"createTime":null,"lastUpdateTime":null,"stat"
:null,"status":null,"venueImg":null,"maxNum":null,"sportTypeList":null,"serviceTypeList":null,"teamType"
:null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard":null,"venueOperateLicense"
:null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id":"fcd404b8-9116-44aa-9088-659f48f6c346"
,"userAccountId":"fb727557-f295-471b-b5fd-e58df0089e2c","userAccount":null,"provinceid":-1,"provinceName"
:null,"cityid":-1,"cityName":null,"countryid":-1,"countryName":null,"address":"","contacts":null,"mobileNo"
:"15563636363","descs":null,"chargeType":null,"chargeTypeName":null,"venueType":null,"venueTypeNames"
:null,"otherServices":null,"email":null,"nickName":"15563636363","userLevel":null,"userScore":null,"createTime"
:null,"lastUpdateTime":null,"stat":null,"status":null,"venueImg":null,"maxNum":null,"sportTypeList":null
,"serviceTypeList":null,"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName"
:null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":1.0,"ylocation"
:2.0}]}
<li>
<img class="portrait_s" src="border='0'">
<div class="cout">
<h2>
哈瓦一
<img border="0" src="/img/dis_star_4.png">
<span class="time">2015-07-17来自web客户端</span>
</h2>
<p>sad as as as</p>
</div>
</li>
$(function(){
loadCheckSport();
loadCheckService();
loadDateList();//加载日期
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadVenuesClick();;
loadWeekClick();
loadclickFunction();//加载点击事件
loadMessagesBy();//异步加载评论信息
loadfabuinfo();
loadtijiaoOrder();
venuesBySeat(); //加载附近场馆信息
checkTextAeaLen(); //场馆评价字数
});
var index="";
function ajax_open() {
index = $.layer({
type: 2,
title: false, //不显示默认标题栏
shade: [0.5, '#000'], //不显示遮罩
shift: 'top', //从头动画弹出
area: ['800px', '520px'],
iframe: { src: '/ajax_login.html' }
});
}
function close(u){
layer.close(index);
$.post("/umanages/showUserAccount.do",{},function (data){
var userAccount=data.data;
if(userAccount.type==1){
$(".login").html("<a href='/personal_center.html'>"+u.data+"</a>");
}else{
$(".login").html("<a href='/app/site/siteIndex.html'>"+u.data+"</a>");
}
});
//alert(data.data);
}
function validatemobile() {
var mobile = $("#cellphone").val();
if (mobile.length == 0) {
layer.msg("请输入您的电话号码!", 1, 1);//alert("系统错误!");
return false;
}
if (mobile.length != 11) {
layer.msg("请输入有效的手机号码!", 1, 1);//alert("系统错误!");
return false;
}
var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
if (!myreg.test(mobile)) {
layer.msg("请输入有效的手机号码!", 1, 1);//alert("系统错误!");
return false;
}
return true;
};
function loadtijiaoOrder(){
$("#orderSave").click(function(){
var trLength = $("#choosed_item_box").find("span").length;
if(trLength==0){
layer.msg("请先选择场地!", 1, 1);//alert("系统错误!");
return false;
}
if(!validatemobile()){
return false;
}
var orderItems = "";
var itemPrices = "";
var itemSpaceName = "";
$(".choosed_item_box span").each(function(index,domEle){
orderItems+=domEle.id+",";
itemPrices+=$(domEle).attr("data-price")+",";
itemSpaceName+=$(domEle).attr("data-spacename")+",";
});
var ownerAccountId = $("#ownerAccountId").val();
var telephone = $("#cellphone").val();
var orderDate = $("#orderTime").val();
var orderTotal = $(".price").attr("data-price");//.val();
var sportType = $("#sportTypeId").val();
var validCode = $("#identifycode").val();
var jsonData = {validCode:validCode,sportType:sportType,orderTotal:orderTotal,ownerAccountId:ownerAccountId,telephone:telephone,orderTime:orderDate,orderItems:orderItems,itemPrices:itemPrices,itemSpaceName:itemSpaceName};
$.ajax({
url: "/api/orderBuy/buy.do",
data: jsonData,
async:false,
type: 'POST',
dataType: 'json',
success: function (data) {
//console.log(data);
if(data.status == '500'){
if(data.data.enable==0){//为登录处理
ajax_open();
return false;
}
layer.msg(data.message, 1, 1);//alert("系统错误!");
return false;
}else{
layer.msg(data.message, 1, 1);//alert("系统错误!");
if(data.data.gotoPay==1){//需要支付
check(data.data.orderId);
}else{//无须支付
freeCheck(data.data.orderId);
}
}
}
});
});
};
function freeCheck(orderIdNo){
$("#orderId").val(orderIdNo);
$("#freePayForm").submit();
}
function check(orderIdNo){
$("#orderId").val(orderIdNo);
$("#payForm").submit();
}
function loadCheckSport(){
$(".sbutton_box a").each(function(index,domEle){
if($(domEle).attr("class")=="cur"){
$("#sportTypeId").val($(domEle).attr("data-v"));
}
if($(domEle).attr("data-v")==1){
$(domEle).attr("id","football");
}else if($(domEle).attr("data-v")==2){
$(domEle).attr("id","basketball");
}else if($(domEle).attr("data-v")==3){
$(domEle).attr("id","badminton");
}else if($(domEle).attr("data-v")==8){
$(domEle).attr("id","running");
}
});
}
function loadCheckService(){
$(".device ul li").each(function(index,domEle){
if($(domEle).text()=="停车位"){
$(domEle).attr("id","park");
}else if($(domEle).text()=="WIFI"){
$(domEle).attr("id","wifi");
}else if($(domEle).text()=="商品有售"){
$(domEle).attr("id","shop");
}
});
}
//获取所有右侧栏订单,并实现订单删除功能
function orderDel(orderId,start){
id=orderId+"_"+start
$("#choosed_item_box span").each(function(){
if($(this).attr("id")==id){
$(this).remove();
return ;
}
});
}
function loadLastClick(){
//选择场地和时间
$("#choosed_item_box").html("");
$('.choose_box ul li.res').on('click',function(){
orderDel($(this).attr('data-space')+"",$(this).attr('data-start'));
var data_tag=$(this).attr('data-tag');
var data_price=$(this).attr('data-price');
if(data_price=="null"){
data_price=0;
}
var data_spaceId=$(this).attr('data-space');
var data_spacename=$(this).attr('data-spacename');
var data_start=$(this).attr('data-start');
var data_end=$(this).attr('data-end');
if(data_tag == 0){
var len= $('#choosed_item_box').children('span').length;
if(len >= 4){
layer.msg("一个用户一次最多预订4块场地!", 1, 1);
return false;
}
//id='"+$("#" + cid).attr('data-space-id')+"_"+$("#sjTime").val()+"'
$("#choosed_item_box").append("<span id='"+data_spaceId+"_"+data_start+"' data-spacename='"+data_spacename+"' data-price ='" + data_price +"' data_tag =" + data_tag +">"+ data_start + ":00-" + data_end + ":00 " + data_spacename + " " + data_price + "元</span>");
$(this).attr("data-tag",1);
//将原来的data-flag赋值为1
}else{
$("#"+data_spaceId+data_start).remove();
$(this).attr("data-tag",0);
}
$(this).toggleClass('cur');
var itemPrices=0;
$(".choosed_item_box span").each(function(index,domEle){
itemPrices+= parseInt($(domEle).attr("data-price"));
});
$(".price").html("¥" + itemPrices + "元");
$(".price").attr("data-price",itemPrices);
});
};
function loadWeekClick(){
//week切换内容
$('.week_box li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur');
$("#orderTime").val($(this).attr("data-tag"));
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadLastClick();//加载点击事件
$(".price").html("¥ 0 元");
$(".price").attr("data-price",0);
//$('#page_' + $(this).attr('tag')).addClass('show').siblings('div').removeClass('show')
});
};
//场馆类型切换内容
function loadVenuesClick(){
//体育馆种类切换
$('.sbutton_box a').on('click',function(){
$(this).addClass('cur').siblings('a').removeClass('cur');
$('.pay_box h2').html($(this).text()).attr('id',$(this).attr('id'));
if($(this).attr("class")=="cur"){
$("#sportTypeId").val($(this).attr("data-v"));
};
loadDateList();//加载日期
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadLastClick();//加载点击事件
$(".price").html("¥ 0 元");
$(".price").attr("data-price",0);
});
}
function loadclickFunction(){
//显示场馆评分
var m_count = Math.floor($('.score').find('span').text())
for(i=0;i<m_count;i++){
$('.score ul').find('li').eq(i).addClass('org')
}
//paybox标题显示
$('.pay_box h2').html($('.sbutton_box').find('a').eq(0).text()).attr('id',$('.sbutton_box').find('a').eq(0).attr('id'))
//时间切换
$('.week_box ul li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur');
})
//评论打分
var g_score = 0;
$('.grade_box ul li').on('click',function(){
$('.grade_box ul li').removeClass('cur')
$(this).prevAll('li').andSelf().addClass('cur')
g_score = $(this).index() +1
});
//切换场馆
$('.next_arr').on('click',function(){
$('.container ul').css('left', '-896px')
})
$('.prev_arr').on('click',function(){
$('.container ul').css('left', 0)
});
loadLastClick();
};
function loadDateList(){
// var userAccountId = '1b444c45-3af5-4f9e-92af-d84cb233d84f';
var ownerAccountId = $("#ownerAccountId").val();
var postUrl = "/venues/dateList/"+ownerAccountId+".do";
jQuery.ajax({
url: postUrl,
type: 'POST',
async:false,
dataType: 'json',
error: erryFunction, //错误执行方法
success: succFunction //成功执行方法
});
function succFunction(data){
// console.log(data);
var weekListObj = $("#week_list");
weekListObj.empty();
$.each(data, function(index, item) {
var dateobj = item['date'].split("-");
var month= dateobj[1];
var day= dateobj[2];
var date = month + "/" + day;
var objHtml = "";
if(index==0){
objHtml += " <li class=\"cur\" data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">今天</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}
else if(index==1){
objHtml += " <li data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">明天</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}else{
objHtml += " <li data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">"+date+"</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}
weekListObj.append(objHtml);
});
loadWeekClick();
}
function erryFunction(){
//alert('系统错误!');
layer.msg("系统错误!", 1, 1);
};
}
function loadHourList(){
var ownerAccountId = $("#ownerAccountId").val();
var orderTime = $("#orderTime").val();
var postUrl = "/venues/hourList/"+ownerAccountId+".do";
var jsonData = {ownerAccountId:ownerAccountId,orderTime:orderTime}
$.ajax({
url: postUrl,
data: jsonData,
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var hourListObj = $("#timelist");
hourListObj.empty();
$.each(data, function(index, item) {
var objHtml = "";
//console.log("data"+data);
objHtml += "<li>" + item + ":00" +"</li>";
hourListObj.append(objHtml);
});
}
});
}
function loadSpaceList(){
var ownerAccountId = $("#ownerAccountId").val();
var orderTime = $("#orderTime").val();
var postUrl = "/venues/spaceList/"+ownerAccountId+".do";
var sportTypeId =$("#sportTypeId").val();
var jsonData = {ownerAccountId:ownerAccountId,orderTime:orderTime,sportId:sportTypeId}
$.ajax({
url: postUrl,
data: jsonData,
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var spaceListObj = $("#spaceList");
spaceListObj.empty();
$.each(data, function(key, value) {
var objHtml = "";
objHtml += " <div id='page_day'><ul><p>" + key + "</p>";
$.each(value, function(index, item) {
var isnull=item['price'];
if(!isnull){
isnull=0;
}
//var data_tag = 'tag' + index;
if(item['isUser']==2){//已经被选择 不能点击
objHtml += "<li></li>";
}else{
objHtml += "<li class=\"res\" data-price="+item['price']+" data-space="+item['spaceId']+" data-spacename="+key+" data-config="+item['isUser']+" data-space="+key+" data-start="+item['startHour']+" data-end="+item['endHour']+" data-tag = 0>"+ isnull+"元"+"</li>";
}
//console.log(key+"--"+item);
});
objHtml += "</ul></div>";
spaceListObj.append(objHtml);
});
if($("#spaceList div").length < 1){
var hourListObj = $("#timelist");
hourListObj.empty();
spaceListObj.addClass('redalert');
spaceListObj.append("抱歉,当前没有场地可预定!");
}else{
spaceListObj.removeClass('redalert');
}
//完成之后获取剩余场数量
loadSpaceNum();
}
});
};
function loadSpaceNum(){
var resLength = $("#page_day ul li.res").length;
var $Id = $("#orderTime").val();
var resObj = $("#"+$Id);
resObj.html("剩余"+resLength+"场");
// console.log("resLength"+resLength);
};
function loadMessagesBy(){
var ownerAccountId = $("#ownerAccountId").val();
var pageSize =$("#pageSize").val();
var currPage = $("#currPage").val();
$("#pfAll").html('');
jQuery.ajax({
url: '/api/message/findMessByOwner.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,pageSize:pageSize,currPage:currPage},
success: function(data){
$(".message_box ul").html('');
if(data==''){
$(".message_box").html("<h2 align=center>暂无评论!</h2>")
}else{
var myObject = data.data;
if(myObject!=null){
var Obj = myObject.results;
var objHtml='';
for(var i =0;i<Obj.length;i++){
objHtml+="<li>";
if(Obj[i].userImg == null || Obj[i].userImg == "" ){
objHtml+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
objHtml+="<img class='portrait_s' src='"+Obj[i].userImg+"' border='0'>";
}
objHtml+="<div class='cout'>";
objHtml+="<h2>";
var b = '';
if(Obj[i].msgResource==1){b="来自web客户端";} else if(Obj[i].msgResource==2){b="来自手机客户端";}
if(Obj[i].msgScore!=null){
objHtml+="<span class='userAccountName'>"+Obj[i].userAccount+"</span> <img src='/img/dis_star_"+Obj[i].msgScore+".png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}else{
objHtml+="<span class='userAccountName'>"+Obj[i].userAccount+"</span> img src='/img/dis_star_3.png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}
objHtml+="</h2>";
objHtml+="<p>"+Obj[i].msgContent+"</p>";
objHtml+="</div>";
objHtml+="</li>";
}
$(".message_box ul").append(objHtml);
var totals = myObject.total;
var currPages = myObject.currPage;
$("#pfsize").html("("+totals+"条评论)");
var tempCurr =0;
if(totals%10==0){
tempCurr = parseInt(totals/3);
}else{
tempCurr = parseInt(totals/3+1);
}
$("#currPage").val(myObject.currPage);
$(".load_mes").click(function(event){
findMore();
});
}
}
}
});
};
function loadfabuinfo(){
$("#fabu").click(function(){
var ownerAccountId = $("#ownerAccountId").val();
var pf = $(".grade_box ul li.cur").length;
if(pf==0){
pf = 5;
}
var pfText= $("#pfText").val();
if(pfText.length>140){
layer.msg("评论字数不能超过140字", 1, 1);
return false;
}else if($.trim(pfText)==''){
layer.msg("评论不能为空",1,1);
return false;
}else{
jQuery.ajax({
url: '/api/message/insert.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,msgContent:pfText,msgScore:pf,msgResource:1},
success: function(data){
if(data.status==500){
layer.msg(data.message, 1, 1);
}else{
var dataObj = data.data;
var pfAllObj = $(".message_box ul");
var pfList = "";
pfList+="<li>";
if(dataObj['userImg'] == "" || dataObj['userImg'] == null){
pfList+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
pfList+="<img class='portrait_s' src="+dataObj['userImg']+" border='0'>";
}
pfList+="<div class='cout'>";
pfList+="<h2>";
var b = '';
if(dataObj['msgResource']==1){b="来自web客户端";} else if(dataObj['msgResource']==2){b="来自手机客户端";}
if(dataObj['msgScore']!=null){
pfList+="<span class='userAccountName'>"+dataObj['userAccount']+"</span> <img src='/img/dis_star_"+dataObj['msgScore']+".png' border='0'><span class='time'>"+dataObj['showMsgTime']+b+"</span>";
}else{
pfList+="<span class='userAccountName'>"+dataObj['userAccount']+"</span> img src='/img/dis_star_3.png' border='0'><span class='time'>"+dataObj['showMsgTime']+b+"</span>";
}
pfList+="</h2>";
pfList+="<p>"+dataObj['msgContent']+"</p>";
pfList+="</div>";
pfList+="</li>";
pfAllObj.prepend(pfList);
$("#pfText").val('');
//$("#pfsize").html(parseInt($("#totalLists").html())+1);
layer.msg("评论发布成功", 1, 1);
}
}
});
}
});
};
function findMore(){
var currPage =parseInt($("#currPage").val())+1;
var pageSize = parseInt($("#pageSize").val());
var ownerAccountId = $("#ownerAccountId").val();
jQuery.ajax({
url: '/api/message/findMessByOwner.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,pageSize:pageSize,currPage:currPage},
success: function(data){
var myObject = data.data;
if(myObject==null){
$(".load_mes").html("没有更多评论了。");
}else{
var Obj = myObject.results;
var objHtml='';
for(var i =0;i<Obj.length;i++){
objHtml+="<li>";
if(Obj[i].userImg == "" ||Obj[i].userImg == null ){
objHtml+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
objHtml+="<img class='portrait_s' src="+Obj[i].userImg+" border='0'>";
}
objHtml+="<div class='cout'>";
objHtml+="<h2>";
var b = '';
if(Obj[i].msgResource==1){b="来自web客户端";} else if(Obj[i].msgResource==2){b="来自手机客户端";}
if(Obj[i].msgScore!=null){
objHtml+="<img src='/img/dis_star_"+Obj[i].msgScore+".png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}else{
objHtml+="<img src='/img/dis_star_3.png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
};
objHtml+="</h2>";
objHtml+="<p>"+Obj[i].msgContent+"</p>";
objHtml+="</div>";
objHtml+="</li>";
}
$(".message_box ul").append(objHtml);
var totals = myObject.total;
var currPages = myObject.currPage;
$("#pfsize").html("("+totals+"条评论)");
// var tempCurr =0;
// if(totals%10==0){
// tempCurr = parseInt(totals/3);
// }else{
// tempCurr = parseInt(totals/3+1);
// }
$("#currPage").val(myObject.currPage);
// $(".load_mes").click(function(event){
// findMore();
// });
}
}
});
};
function refreshImage(_this){
var imageUrl = '/draw/drawRandom.do'; //你的生成图片的页面
_this.src = imageUrl + '?' + Math.random();
};
//获取附近场馆信息
function venuesBySeat(){
var xLocation = $("#xLocation").val() * 1;
var yLocation = $("#yLocation").val() * 1;
var postUrl = "/api/m/venue/queryBySeat.do";
$.ajax({
url: postUrl,
data: {longitude:xLocation,latitude:yLocation},
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var str = data.data;
var strText = "";
strText += "<ul>";
for (var i = 0; i <str.length; i++) {
var address =str[i].address;
if(address.length>9){
address=address.substring(0,9)+"...";
}
if(str[i].spaceNum==0){
str[i].spaceNum=5;
}
if(str[i].venueImg=="" | str[i].venueImg == null){
strText += "<li style=\"cursor:pointer;\" onclick='toven(\""+str[i].id+"\");'><img src=\"/img/venue_t.jpg\" width=\"200\" height=\"200\" alt=\"\"/><p><span class=\"name\">"+address+"</span><span class=\"score\">"+str[i].spaceNum+".0</span></p></li>";
}else{
strText += "<li style=\"cursor:pointer;\" onclick='toven(\""+str[i].id+"\");'><img src=\""+str[i].venueImg+"\" width=\"200\" height=\"200\" alt=\"\"/><p><span class=\"name\">"+address+"</span><span class=\"score\">"+str[i].spaceNum+".0</span></p></li>";
}
}
strText += "</ul>";
$("#venuesBySeat").html("");
$("#venuesBySeat").html(strText);
}
})
}
function checkTextAeaLen(){
var limitNum = 140; //数据库为varchar(255)
//var pattern = '还可以输入' + limitNum + '字符';
$('#num').html(limitNum);
var teamDescLen = $("#pfText").val().length;
if(teamDescLen>255){
$('.num').html("字数超过限制!");
}else{
var result = limitNum - teamDescLen;
pattern = '还可输入' + result + '字';
$('.num').html(pattern);
}
/* $('#teamDesc').keyup(function(){
var remain = $(this).val().length;
if(remain > 255){
pattern = "字数超过限制!";
}else{
var result = limitNum - remain;
pattern = '还可以输入' + result + '字符';
}
$('#contentwordage').html(pattern);
}); */
$('#pfText').on('propertychange input keyup', function() {
var remain = $(this).val().length;
var result = limitNum - remain;
if(remain > 140){
pattern = "字数超过限制!";
}else{
pattern = '还可输入' + result + '字';
$('.num').html(pattern);
}
});
}
//跳转
function toven(id){
location.href="/venues/"+id+".do";
}
●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●
{"status":200,"message":null,"data":{"total":24,"pageSize":16,"currPage":1,"results":[{"id":"4c3d6d20-1d98-43f6-95a9-ad6573c28fa6"
,"userAccountId":"48311661-41fe-4383-b593-e077dabe8f05","userAccount":null,"provinceid":310000,"provinceName"
:null,"cityid":310100,"cityName":null,"countryid":310101,"countryName":null,"address":"宝山区一二八纪念路401号
一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号","contacts":"哈达威","mobileNo":"13012817022"
,"descs":"运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项运动城交通便利
,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球
,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及
外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间
,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运
动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达
商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球
,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万
达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中
环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻
宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便
利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动与三号线之间,南北高架,中环线及外环线
包围,紧邻宝山万达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环
绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛环绕。WWWWWWWWWWWWW
羽毛球WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
,"chargeType":1,"chargeTypeName":null,"venueType":"1,2,3,8","venueTypeNames":null,"otherServices":"1
,2,3","email":"","nickName":"卢湾体育馆","userLevel":null,"userScore":3,"createTime":1429012312000,"lastUpdateTime"
:1436525818000,"stat":1,"status":null,"venueImg":"/upload/20150612/00daedba7d8f4e78b181eecbb1860d63.jpg"
,"maxNum":333,"sportTypeList":[{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}]
,"serviceTypeList":[{"id":"2","serviceName":"商品有售","createTime":null,"lastUpdateTime":null,"stat":1}
,{"id":"3","serviceName":"停车位","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"1","serviceName"
:"WIFI","createTime":null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum"
:0,"pageSize":0,"spaceNum":4,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense"
:null,"xlocation":null,"ylocation":null},{"id":"9402fead-04a5-432c-9ba1-87c181ce9096","userAccountId"
:"b50cd8d0-46b4-4c9f-9e2a-0e4aa2b40671","userAccount":null,"provinceid":310000,"provinceName":null,"cityid"
:310100,"cityName":null,"countryid":310101,"countryName":null,"address":"dddd","contacts":null,"mobileNo"
:"13800138000","descs":null,"chargeType":0,"chargeTypeName":null,"venueType":"1,10,11,12,13,14,15,2,3
,4,5,6,7,8,9","venueTypeNames":null,"otherServices":null,"email":null,"nickName":"[email protected]","userLevel"
:null,"userScore":null,"createTime":1434019893000,"lastUpdateTime":1434019893000,"stat":1,"status":null
,"venueImg":"/upload/20150612/00daedba7d8f4e78b181eecbb1860d63.jpg","maxNum":null,"sportTypeList":[{"id"
:"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"3","sportName"
:"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"1","sportName":"足球"
,"createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime"
:1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList":[],"teamType":null,"isFalse"
:null,"startNum":0,"pageSize":0,"spaceNum":1,"adminName":null,"adminIdCard":null,"venueOperateLicense"
:null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id":"1903515d-82d7-4057-bf3b-586bcbb33a3b"
,"userAccountId":"2fd91780-d0ff-4fe2-a146-7ceaca5edb03","userAccount":null,"provinceid":310000,"provinceName"
:null,"cityid":310100,"cityName":null,"countryid":310101,"countryName":null,"address":"闵行区莲花南路1500号,
麦多生活广场","contacts":"","mobileNo":"15618785577","descs":"室外篮球馆,临近商圈,交通方便,附近生活设施丰富。","chargeType":1,"chargeTypeName"
:null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices":"1,2,3"
,"email":"[email protected]","nickName":"园园园园园园园园园园dXX","userLevel":null,"userScore":5,"createTime":1431751687000
,"lastUpdateTime":1432537589000,"stat":1,"status":null,"venueImg":"/upload/20150516/a81ac16e458c411d8e809572889d75c9
.jpg","maxNum":800,"sportTypeList":[{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[{"id":"3","serviceName":"停车位","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"2","serviceName"
:"商品有售","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"1","serviceName":"WIFI","createTime"
:null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum"
:1,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation"
:null,"ylocation":null},{"id":"298b823f-42a2-49a8-907a-bd49c6c324d1","userAccountId":"3dae99e7-d5eb-4aa1-a8b7-204af5fe3723"
,"userAccount":null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid"
:310101,"countryName":null,"address":"黄浦区新天地","contacts":null,"mobileNo":"13812345678","descs":null,"chargeType"
:0,"chargeTypeName":null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices"
:null,"email":null,"nickName":"13912345678","userLevel":null,"userScore":null,"createTime":1432876979000
,"lastUpdateTime":1432876979000,"stat":1,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb
.jpg","maxNum":null,"sportTypeList":[{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard"
:null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id"
:"db743eed-2d84-4e6a-b557-3e01a080b884","userAccountId":"ee1632cb-0154-410b-9581-43d278261769","userAccount"
:null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid":310101,"countryName"
:null,"address":"新天地","contacts":null,"mobileNo":"15912345679","descs":null,"chargeType":0,"chargeTypeName"
:null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices":null,"email"
:null,"nickName":"15912345678","userLevel":null,"userScore":null,"createTime":1432534774000,"lastUpdateTime"
:1432534774000,"stat":1,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg"
,"maxNum":null,"sportTypeList":[{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard"
:null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id"
:"0d04c48d-2c87-4967-96bd-3529ec240a8d","userAccountId":"1b444c45-3af5-4f9e-92af-d84cb233d84f","userAccount"
:null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid":310101,"countryName"
:null,"address":"","contacts":"","mobileNo":"13415251253","descs":"","chargeType":1,"chargeTypeName"
:null,"venueType":"1,2,3,8","venueTypeNames":null,"otherServices":"1","email":"","nickName":"13852514245"
,"userLevel":null,"userScore":null,"createTime":1433905836000,"lastUpdateTime":1437113601000,"stat":1
,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg","maxNum":100,"sportTypeList"
:[{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id"
:"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"8","sportName"
:"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"3","sportName":"羽毛球"
,"createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList":[{"id":"1","serviceName"
:"WIFI","createTime":null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum"
:0,"pageSize":0,"spaceNum":null,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense"
:null,"xlocation":null,"ylocation":null}],"startNum":0}}
"NetworkError: 404 Not Found - http://192.168.1.70/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg"
0ff4255...edb.jpg
3d1e0cf0-96be-482a-af2c-04adde6c0870
http://192.168.1.103/app/news/index.html?index=lxwm
http://192.168.1.103/app/news/index.html?index=lxwm%20target=
[INFO ][2015-07-21 09:02:49,437] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/loginV2.do","requestURI":"/umanages/loginV2.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":46,"method":"POST","parameterMap":{"accountName":["13012817028"],"pwd":["a11111"],"repwdflag":["1"]}}
[DEBUG][2015-07-21 09:02:49,438] - user login accountName=13012817028 pwd=a11111randomPic=null
[DEBUG][2015-07-21 09:02:49,439] - user login accountName=13012817028 pwd=a11111
[INFO ][2015-07-21 09:02:49,439] - slave
[DEBUG][2015-07-21 09:02:49,442] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,442] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account WHERE ( password = ? and user_account = ? and stat = ? )
[DEBUG][2015-07-21 09:02:49,442] - ==> Parameters: 71b596cb42ee254f7416043d184fc970(String), 13012817028(String), 1(Integer)
[DEBUG][2015-07-21 09:02:49,445] - <== Total: 1
[INFO ][2015-07-21 09:02:49,474] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/umanagesV2.do","requestURI":"/umanages/umanagesV2.do","contextPath":"","contextLength":-1,"method":"GET","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,834] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/showUserInfo.do","requestURI":"/umanages/showUserInfo.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,835] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/showlogin.do","requestURI":"/umanages/showlogin.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,836] - slave
[INFO ][2015-07-21 09:02:49,837] - slave
[DEBUG][2015-07-21 09:02:49,839] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,840] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account where id = ?
[DEBUG][2015-07-21 09:02:49,840] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,840] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,840] - ==> Preparing: select users.gender as gender,users.id,users.real_name as realName,users.job as job,users.provinceId as provinceId,users.cityId as cityId,users.countryId as countryId,users.address as address,users.email as email,users.mobile_no as mobileNo,users.age as age,users.user_image as userImage,acc.user_account as userAccount, users.brithday as brithday,users.nick_name as nickName,users.charge_type as chargeType,users.venue_type as venueType,users.user_level as userLevel,users.user_score as userScore,users.create_time as createTime,users.last_update_time as lastUpdateTime,users.height as height,users.weight as weight from juju_users users inner join juju_user_account acc on users.user_account_id = acc.id where users.user_account_id = ?
[DEBUG][2015-07-21 09:02:49,841] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,842] - <== Total: 1
[DEBUG][2015-07-21 09:02:49,845] - <== Total: 1
[INFO ][2015-07-21 09:02:49,848] - slave
[INFO ][2015-07-21 09:02:49,850] - slave
[DEBUG][2015-07-21 09:02:49,851] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,851] - ==> Preparing: select users.gender as gender,users.id,users.real_name as realName,users.job as job,users.provinceId as provinceId,users.cityId as cityId,users.countryId as countryId,users.address as address,users.email as email,users.mobile_no as mobileNo,users.age as age,users.user_image as userImage,acc.user_account as userAccount, users.brithday as brithday,users.nick_name as nickName,users.charge_type as chargeType,users.venue_type as venueType,users.user_level as userLevel,users.user_score as userScore,users.create_time as createTime,users.last_update_time as lastUpdateTime,users.height as height,users.weight as weight from juju_users users inner join juju_user_account acc on users.user_account_id = acc.id where users.user_account_id = ?
[DEBUG][2015-07-21 09:02:49,852] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,854] - <== Total: 1
[DEBUG][2015-07-21 09:02:49,854] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,855] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account where id = ?
[DEBUG][2015-07-21 09:02:49,855] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,858] - <== Total: 1
[INFO ][2015-07-21 09:02:50,031] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/address/list.do","requestURI":"/address/list.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":23,"method":"POST","parameterMap":{"level":["3"],"parentId":["310100"]}}
[INFO ][2015-07-21 09:02:50,057] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/sportType/findAll.do","requestURI":"/sportType/findAll.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:50,067] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/stadium/findChooseByAdd.do","requestURI":"/stadium/findChooseByAdd.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":80,"method":"POST","parameterMap":{"venueType":["1"],"countryid":[""],"cityid":["310100"],"pageSize":["4"],"currPage":["1"],"nickName":[""],"userScore":["0"]}}
[INFO ][2015-07-21 09:02:50,069] - slave
[DEBUG][2015-07-21 09:02:50,072] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:50,072] - ==> Preparing: select DISTINCT info.space_num as spaceNum,info.id,info.user_account_id as userAccountId,info.provinceId,info.cityId,info.countryId,info.address,info.contacts,info.mobile_no as mobileNo,info.descs,info.charge_type as chargeType,info.venue_type as venueType, info.other_services as otherServices,info.email,info.nick_name as nickName,info.user_level as userLevel,info.user_score as userScore,info.create_time as createTime,info.last_update_time as lastUpdateTime,info.stat,info.venue_img as venueImg,info.max_num as maxNum from juju_venues_info info inner join juju_venues_sport_type_mapping mapp on info.id = mapp.venues_info_id where mapp.stat=1 and provinceId=? and mapp.sport_type_id =? and info.cityId=? order by info.space_num desc,info.create_time desc limit ?,?
[DEBUG][2015-07-21 09:02:50,073] - ==> Parameters: 310000(Integer), 1(String), 310100(Integer), 0(Long), 4(Integer)
[DEBUG][2015-07-21 09:02:50,081] - <== Total: 4
18639149842 15618785577 15921107607 xh520518
alert("denglu"+$(this).closeset);
alert("zhece"+$(this).closeset);
Cookie cookie = new Cookie("userInfo", sb.toString());
cookie.setMaxAge(maxAge);
cookie.setPath("/");
cookie.setDomain(request.getContextPath());
<a target="_" href="/app/news/index.html?index=lxwm">关于我们</a>
<a target="_" href="/app/news/index.html?index=lxwm">加入我们</a>
<a target="_" href="/app/news/index.html?index=cjwt">常见问题</a>
<a target="_" href="/app/news/index.html?index=wzdt">网站地图</a>
$("#login_cont").keydown(function (event) {
var event = event || window.event; //兼容火狐
if (event.keyCode == "13") {//keyCode=13是回车键
$('.login_btn').click();
}
});
Mon Jun 15 17:13:24 CST 2015 Wed Jul 22 09:57:32 CST 2015 -18000
Wed Jul 22 10:30:39 CST 2015 Wed Jul 22 10:33:20 CST 2015
Mon Jun 15 17:13:24 CST 2015 Wed Jul 22 10:34:19 CST 2015(now)
Wed Jul 22 11:14:23 CST 2015 Tue Jun 16 17:13:24 CST 2015
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\WEB-INF\view\front\venue_detail.ftl
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\WEB-INF\view\front\venue_detail.ftl
{"status":200,"message":null,"data":{"total":14,"pageSize":3,"currPage":2,"results":[{"id":"265f9abe-0621-4c8b-b197-12648be991a9"
,"msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa","msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb"
,"msgTime":1437667200000,"attachment":"","msgStatus":0,"createTime":1437723745000,"lastUpdateTime":1437723745000
,"stat":1,"userAccount":"juju_p0442","msgContent":"aaa","msgScore":1,"userImg":null,"showMsgTime":"2015-07-24"
,"msgResource":1},{"id":"f0c045bb-7636-4cba-9dee-ddaf6a7b37ee","msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa"
,"msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb","msgTime":1437667200000,"attachment":"","msgStatus"
:0,"createTime":1437723731000,"lastUpdateTime":1437723731000,"stat":1,"userAccount":"juju_p0442","msgContent"
:"999","msgScore":4,"userImg":null,"showMsgTime":"2015-07-24","msgResource":1},{"id":"2ef3a7c8-8d88-4fb0-ad2d-08ad54d5c597"
,"msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa","msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb"
,"msgTime":1437667200000,"attachment":"","msgStatus":0,"createTime":1437723716000,"lastUpdateTime":1437723716000
,"stat":1,"userAccount":"juju_p0442","msgContent":"888","msgScore":5,"userImg":null,"showMsgTime":"2015-07-24"
,"msgResource":1}],"startNum":3}}
注:opt格式如下{
"userid": "1212121212",
"venueid": "12121212",
"orderDate": "2015-05-12",
"orderTel": "13040691917",
"valiCode": "304033",
"orders": [
{
"sessionid": "1",
"orderTime": "17:00-18:00",
"sessionName": "2号球场"
},
{
"sessionid": "2",
"orderTime": "18:00-19:00",
"sessionName": "3号球场"
}
]
}
注:opt格式如下{
"userid": "1212121212",
"venueid": "12121212",
"orderDate": "2015-05-12",
"orderTel": "13040691917",
"orders": [
{
"sessionid": "1",
"orderTime": "17:00-18:00",
"sessionName": "2号球场"
},
{
"sessionid": "2",
"orderTime": "18:00-19:00",
"sessionName": "3号球场"
}
]
}
id varchar
team_name varchar
create_time datetime
last_update_time datetime
stat int
group int
father varchar
mother varchar
contact varchar
address varchar
child_name varchar
child_sex varchar
child_birthday date
child_school varchar
child_student_card varchar
child_id_card varchar
against_order int
space varchar
against_camp int
against_round int
package com.juju.sport.family.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.juju.sport.common.util.BeanUtils;
import com.juju.sport.family.dto.CarnivalTeamDto;
import com.juju.sport.family.pojo.CarnivalTeam;
import com.juju.sport.family.service.ICarnivalService;
@Service
public class ICarnivalServiceImpl implements ICarnivalService{
@Autowired
public CarnivalDao carnivalDao;
public List<CarnivalTeamDto> findAgainstTeamList(){
List<CarnivalTeam> list = carnivalDao.findAgainstTeamList();
List<CarnivalTeamDto> carnivalTeamDto = BeanUtils.createBeanListByTarget(list, CarnivalTeamDto.class);
return carnivalTeamDto;
}
}
http://192.168.1.152/test/carnival_admin.html
http://192.168.1.152:8080/admin/game/train/create.do
192.168.1.152:8080/admin/game/train/create.do
http://192.168.1.152:8080/admin/game/train/create.do?trainTheme='111'&trainAuthor='222'&trainPic='1'&trainThumbnail='a'
{"success":false,"message":"The current request is not a multipart request"}
http://192.168.1.152:8080/admin/game/train/create.do?trainTheme=aa&trainAuthor=bbb&trainPic=ccc&trainThumbnail=ddd
[INFO ][2015-08-13 15:29:20,339] - {"accessTime":"2015-08-13 15:29:20","remoteIp":"192.168.1.152","host":"192.168.1.227:8080","requestURL":"http://192.168.1.227:8080/admin/login/login.do","requestURI":"/admin/login/login.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":35,"method":"POST","parameterMap":{"userCode":["superadmin"],"password":["111111"]}}
[INFO ][2015-08-13 15:29:20,363] - {"accessTime":"2015-08-13 15:29:20","remoteIp":"192.168.1.152","host":"192.168.1.227:8080","requestURL":"http://192.168.1.227:8080/admin/login/getUser.do","requestURI":"/admin/login/getUser.do","contextPath":"/admin","contextLength":0,"method":"POST","parameterMap":{}}
http://192.168.1.107:8080/admin/login/index.do
/admin/WEB-INF/page/user-manage.jsp
/admin/WEB-INF/page/user/user-manage.jsp
http://192.168.1.107:8080/admin/login/index.do
AdminUserLoginInfoDto(success=false, realName=jam, groupName=管理员, accountCode=jam, passwd=71b596cb42ee254f7416043d184fc970, role=RoleDto(id=b317cb71-5ddd-4c79-a5f6-5ed8f107ce5c, roleName=管理员, roleDescription=内部后台管理员), groups=[AdminMenuGroupDto(id=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=用户管理, menuGroupOrder=0, functions=[AdminMenuFunctionDto(id=02d437fb-36bc-418a-9cd3-24b4d89c9ffe, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=会员管理, menuFunctionAction=user/manager/index.do, openType=null, menuFunctionDescript=会员管理,修改和查询), AdminMenuFunctionDto(id=5888e3cd-8514-4795-bb1d-94a1a12ad519, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=场馆管理, menuFunctionAction=user/venues/index.do, openType=null, menuFunctionDescript=场馆管理), AdminMenuFunctionDto(id=8a5ecc8a-c4e1-4792-99bc-34b4921626c9, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=球队管理, menuFunctionAction=user/team/index.do, openType=null, menuFunctionDescript=球队管理)]), AdminMenuGroupDto(id=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=赛事管理, menuGroupOrder=1, functions=[AdminMenuFunctionDto(id=55b7086f-896f-4ae9-a0ce-39bd45ac1f3a, menuGroupId=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=null, menuFunctionName=赛事管理, menuFunctionAction=game/race/index.do, openType=null, menuFunctionDescript=赛事信息管理), AdminMenuFunctionDto(id=92d8fb05-7a8e-4849-9624-c0bf2a55ad16, menuGroupId=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=null, menuFunctionName=首页管理, menuFunctionAction=/user/homepage/index.do, openType=null, menuFunctionDescript=)]), AdminMenuGroupDto(id=664c26a0-c1b4-4bab-bb08-0148243a4ea3, menuGroupName=订单管理, menuGroupOrder=2, functions=[AdminMenuFunctionDto(id=0cd4dab1-04d2-426a-869d-e287fa4155dc, menuGroupId=664c26a0-c1b4-4bab-bb08-0148243a4ea3, menuGroupName=null, menuFunctionName=订单管理, menuFunctionAction=order/index.do, openType=null, menuFunctionDescript=线上定单查询)]), AdminMenuGroupDto(id=73935c1b-040a-4b84-976b-5001a4e5e228, menuGroupName=积分管理, menuGroupOrder=3, functions=[AdminMenuFunctionDto(id=8e845b07-c80e-40fa-8d64-1384861bbd47, menuGroupId=73935c1b-040a-4b84-976b-5001a4e5e228, menuGroupName=null, menuFunctionName=勋章管理, menuFunctionAction=user/medal/index.do, openType=null, menuFunctionDescript=测试功能)]), AdminMenuGroupDto(id=18ded062-4071-11e5-82e9-000c29d6facb, menuGroupName=培训管理, menuGroupOrder=4, functions=[AdminMenuFunctionDto(id=45c28101-a05a-47ba-aa2a-f0c1523b7476, menuGroupId=18ded062-4071-11e5-82e9-000c29d6facb, menuGroupName=null, menuFunctionName=培训管理, menuFunctionAction=game/train/index.do, openType=null, menuFunctionDescript=培训信息管理)]), AdminMenuGroupDto(id=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=功能管理, menuGroupOrder=5, functions=[AdminMenuFunctionDto(id=6060becb-175a-4777-b330-805aaee314f1, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=菜单管理, menuFunctionAction=menu/index.do, openType=null, menuFunctionDescript=左侧菜单栏管理), AdminMenuFunctionDto(id=329cf740-0f86-4882-8dd0-056534640ebc, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=功能管理, menuFunctionAction=action/index.do, openType=null, menuFunctionDescript=具体到action的配置), AdminMenuFunctionDto(id=4e7cc78b-572b-4940-995b-348b5b90245c, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=角色管理, menuFunctionAction=role/index.do, openType=null, menuFunctionDescript=角色权限管理), AdminMenuFunctionDto(id=903e38df-f82d-47e4-bb6e-ef10e5d639a0, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=账号管理, menuFunctionAction=manager/account/index.do, openType=null, menuFunctionDescript=新建帐号,分配角色)])])
D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld --defaults-file=D:\tools\work\64\mysql-5.6.23-winx64\my.ini MySQL
%MYSQL_HOME%\bin;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\windows\system32\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;%SystemRoot%;%SystemRoot%\system32\wbem;D:\Program Files\Python27
3006: "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MySQL3306
3008: "D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld.exe" --defaults-file="D:\tools\work\64\mysql-5.6.23-winx64\my.ini" MySQL3308
3009: "D:\tools\work\64\mysql-5.6.25-winx64\bin\mysqld.exe" --defaults-file="D:\tools\work\64\mysql-5.6.25-winx64\my.ini" MySQL3309
C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld MySQL3306
D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld MySQL3308
D:\tools\work\64\mysql-5.6.25-winx64\bin\mysqld MySQL3309
http://192.168.1.75/race/ajaxJumpInfos.do
name:'contactType',
Integer type = Integer.valueOf(contactDto.getTypeName());
contactDto.setContactType(type);
(默认)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
(新)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
http://localhost:8080/admin/index.html
(梁佳)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
[INFO ][2015-09-05 16:07:09,604] - {"accessTime":"2015-09-05 16:07:09","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/create.do","requestURI":"/admin/apply/create.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":572,"method":"POST","parameterMap":{"startTime_add":["2015-09-05"],"pname_add":["11"],"isPayed_add":["0"],"applyTime":["2015-09-05T00:00:00"],"courseName_add":["亲子足球小班"],"endTime_add":["2015-09-05"],"depositIspayed":["1"],"endTime":["2015-09-05T00:00:00"],"startTime":["2015-09-05T00:00:00"],"mobile_add":["11"],"spaceName":["盛大花园小学"],"cname_add":["11"],"isPayed":["0"],"pname":["11"],"spaceName_add":["盛大花园小学"],"depositIspayed_add":["1"],"cname":["11"],"applyTime_add":["2015-09-05"],"courseName":["亲子足球小班"],"mobile":["11"]}}
[INFO ][2015-09-05 16:15:21,026] - {"accessTime":"2015-09-05 16:15:21","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/create.do","requestURI":"/admin/apply/create.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":303,"method":"POST","parameterMap":{"startTime":["2015-09-05T00:00:00"],"spaceName":["上海七宝明强小学"],"pname":["11"],"isPayed":["0"],"applyTime":["2015-09-05T00:00:00"],"depositIspayed":["1"],"endTime":["2015-09-05T00:00:00"],"cname":["11"],"mobile":["11"],"courseName":["亲子足球小班"]}}
SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.creat_time as creatTime,c.update_time as updateTime,c.status,c.free_times as freeTimes
FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id
WHERE a.id = #{courseId,jdbcType=INTEGER} and a.status = 1 and b.status = 1 and c.status = 1
applyManage_add
http://localhost:8080/admin/course/findSpaceByCourseId.do?_dc=1441594810577&courseId=%E4%BA%B2%E5%AD%90%E8%B6%B3%E7%90%83%E5%B0%8F%E7%8F%AD&page=1&start=0&limit=30"
localhost:8080/admin/index.html
EXPLAIN SELECT * FROM training_time_district a WHERE a.`id` IN (
SELECT b.district_time_id FROM training_address_district_time b WHERE b.`address_id` = 2
) AND a.`status`= 0
http://localhost:8080/admin/course/findSpaceByCourseId.do?courseId=1
http://localhost:8080/admin/spaceInfo/findTimeDistrictBySpaceId.do?spaceId=1
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time from training_user_course WHERE ( status = ? and pname like ? and mobile like ? and course_name like ? and cname like ? and space_name like ? and apply_time between ? and ? ) order by create_time desc limit 0,30
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time from training_user_course WHERE ( status = 1 and apply_time between 1440864000000 and 1441382400000 ) order by create_time desc limit 0,30 ;
-- SELECT c.name, c.course_time as courseTime, c.address, c.description, c.start_time as startTime, c.end_time as endTime, c.max_student as maxStudent, t.tag_name as tagName FROM training_course c INNER JOIN training_course_tag t ON c.tag_id = t.id where 1=1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id=3 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 2 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT b.* FROM training_address a LEFT JOIN training_time_district b on b.id = a.district_id WHERE a.id = 1 and a.status = 1 and b.status = 1;
-- training_address training_address_district_time training_time_district
-- SELECT c.* FROM training_address a LEFT JOIN training_address_district_time b on a.id = b.address_id LEFT JOIN training_time_district c on b.district_time_id = c.id where a.id=2 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT * FROM training_address a LEFT JOIN training_address_district_time b on a.id = b.address_id ;
-- SELECT a.* FROM training_time_district a WHERE a.id IN (
-- SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1
-- ) AND a.status = 1
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT a.id,a.day_of_week as dayOfWeek,a.start_time as startTime,a.end_time as endTime ,a.create_time as createTime,a.update_time as updateTime,a.status FROM training_time_district a WHERE a.id IN ( SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1) AND a.status = 1 ;
-- SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- select * FROM training_course;
-- select * FROM training_course_class;
-- select * FROM training_address;
SELECT a.id,a.day_of_week as dayOfWeek,a.start_time as startTime,a.end_time as endTime ,a.create_time as createTime,a.update_time as updateTime,a.status FROM training_time_district a WHERE a.id IN ( SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 1 AND b.status = 1) AND a.status = 1 ;
/**
* 生成订单后五位
* @return
*/
private String CreateNo(){
int n=0;
n=(int)(Math.random()*100000);
while(n<10000 || !handle(n)){
n=(int)(Math.random()*100000);
}
return n+"";
}
private boolean handle(int n){
int[] list=new int[5];
for(int i=0;i<5;i++){
list[i]=n%10;
n=n/10;
}
for(int i=0;i<5;i++){
for(int j=i+1;j<5;j++){
if(list[i]==list[j]) return false;
}
}
return true;
}
/**
* 生成订单号
* @return
*/
private String CreateOrderNo(){
return CreateDate()+CreateNo();
}
SELECT b.`name`,c.place,a.* FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id LEFT JOIN training_address c on a.space_id = c.id WHERE a.`status`=1 ORDER BY a.id;
SELECT b.`name`,a.* FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id WHERE a.`status`=1 and b.`status`=1 ORDER BY a.id;
SELECT * from training_user_course a where a.`status`=1 ORDER BY a.id;
-- SELECT * FROM training_course;
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time, day_of_week, space_id from training_user_course WHERE ( status = 1) order by create_time desc limit 0,30 ;
SELECT a.id,a.open_id as openId,a.user_id as userId,a.course_id as courseId,a.class_id as classId,a.used_time as usedTime,a.left_time as leftTime,a.apply_time as applyTime,a.discription,a.toto_fee as totoFee,a.is_payed as isPayed,a.create_time as createTime,a.update_time as updateTime,a.deposit_ispayed as depositIspayed,a.mobile,a.course_name as courseName,a.pname,a.utype,a.cname,a.birthday,a.origin_school as originSchool,a.space_name as spaceName,a.order_no as orderNo,a.trade_no as tradeNo,a.status,a.day_of_week as dayOfWeek,a.space_id as spaceId, b.name,c.place
FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id AND a.status =1 LEFT JOIN training_address c on a.space_id = c.id AND b.status=1 and c.status=1 ;
SELECT count(*) FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id AND a.status =1 LEFT JOIN training_address c on a.space_id = c.id AND b.status=1 and c.status=1 ORDER BY a.create_time desc ;
http://localhost:8080/admin/course/findAllCourse.do
JsonUtil.java
{"total":85,"pageSize":30,"currPage":3,"results":[{"id":94,"pname":"1322","cname":"125","courseId":2
,"courseName":"少年足球增强班","mobile":"13036955525","spaceId":null,"spaceName":null,"startTime":"1441036800"
,"endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441708186,"applyTimeAdd":null
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":95
,"pname":"1111","cname":"1111","courseId":2,"courseName":"少年足球增强班","mobile":"13255555555","spaceId":null
,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441708285,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null
:1441036800-1441036800"},{"id":96,"pname":"123","cname":"123","courseId":2,"courseName":"少年足球增强班","mobile"
:"13222222222","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong"
:0,"endTimeLong":0,"applyTime":1441713861,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek"
:null,"districtTime":"null:1441036800-1441036800"},{"id":97,"pname":"阿萨德","cname":"阿萨德","courseId":1
,"courseName":"亲子足球小班","mobile":"13696969696","spaceId":null,"spaceName":null,"startTime":"15:33","endTime"
:"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000,"applyTimeAdd":null,"isPayed":0
,"depositIspayed":0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":98,"pname":"请问","cname":"
请问","courseId":2,"courseName":"少年足球增强班","mobile":"18911111111","spaceId":null,"spaceName":null,"startTime"
:"15:20","endTime":"19:00","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":0,"dayOfWeek":"周二","districtTime":"周二:15:20-19:00"},{"id":99,"pname"
:"是","cname":"撒旦","courseId":1,"courseName":"亲子足球小班","mobile":"13695958585","spaceId":null,"spaceName"
:null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000
,"applyTimeAdd":null,"isPayed":1,"depositIspayed":0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"
},{"id":100,"pname":"bbb","cname":"bbb","courseId":2,"courseName":"少年足球增强班","mobile":"13433333222","spaceId"
:null,"spaceName":null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441641600000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime":"周
一:15:33-16:33"},{"id":102,"pname":"bbb1","cname":"bbb","courseId":2,"courseName":"少年足球增强班","mobile":"13433333222"
,"spaceId":null,"spaceName":null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441641600000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime"
:"周一:15:33-16:33"},{"id":109,"pname":"mmmm","cname":"mmmn","courseId":1,"courseName":"亲子足球小班","mobile"
:"13623231414","spaceId":1,"spaceName":"盛大花园小学","startTime":"15:33","endTime":"16:33","startTimeLong"
:0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek"
:"周一","districtTime":"周一:15:33-16:33"},{"id":110,"pname":"mmmma","cname":"mmmn","courseId":1,"courseName"
:"亲子足球小班","mobile":"13623231414","spaceId":1,"spaceName":"盛大花园小学","startTime":"15:33","endTime":"16:33"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":112,"pname":"氢气球","cname":"饿饿饿","courseId"
:2,"courseName":"少年足球增强班","mobile":"13222222233","spaceId":null,"spaceName":null,"startTime":"1441036800"
,"endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441763105,"applyTimeAdd":null
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":113
,"pname":"leave","cname":"yezi","courseId":2,"courseName":"少年足球增强班","mobile":"13626262323","spaceId"
:2,"spaceName":"上海七宝明强小学","startTime":"15:20","endTime":"19:00","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441728000000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周二","districtTime":"周
二:15:20-19:00"},{"id":114,"pname":"勿忘我","cname":"氢气球","courseId":2,"courseName":"少年足球增强班","mobile":"13322323333"
,"spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441763338,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":115,"pname":"111","cname":"氢气球","courseId":2,"courseName":"少年足球
增强班","mobile":"13222222222","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441763653,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":116,"pname":"1122","cname":"氢
气球","courseId":2,"courseName":"少年足球增强班","mobile":"13333333333","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441763730,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id"
:117,"pname":"1111","cname":"起氢气球","courseId":2,"courseName":"少年足球增强班","mobile":"13223333333","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441764074,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":118,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球
增强班","mobile":"13222223333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441765082,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":119,"pname":"阳光","cname":"小太阳"
,"courseId":1,"courseName":"亲子足球小班","mobile":"13856569696","spaceId":14,"spaceName":"普陀123","startTime"
:"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd"
:null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":120,"pname"
:"1-1","cname":"111","courseId":2,"courseName":"少年足球增强班","mobile":"13222223333","spaceId":null,"spaceName"
:null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441765394
,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"
},{"id":121,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球增强班","mobile":"13222223333","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441766133,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":122,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球
增强班","mobile":"13222223333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441766170,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":123,"pname":"111","cname":"氢气
球","courseId":2,"courseName":"少年足球增强班","mobile":"13221122211","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441766262,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id"
:124,"pname":"请问我","cname":"勿忘我","courseId":2,"courseName":"少年足球增强班","mobile":"13222233323","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441766501,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":127,"pname":"让人r","cname":"让人r","courseId":2,"courseName":"少年足球
增强班","mobile":"13222233333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441768432,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:0,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":128,"pname":"1112","cname":"1112"
,"courseId":2,"courseName":"少年足球增强班","mobile":"13222222222","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441769459,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"}],"startNum"
:60}
[INFO ][2015-09-09 13:06:22,724] - {"accessTime":"2015-09-09 13:06:22","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/update.do","requestURI":"/admin/apply/update.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":162,"method":"POST","parameterMap":{"startTime":["15:30"],"spaceName":["22"],"pname":["leave"],"isPayed":["1"],"applyTime":["2015-09-09T00:00:00"],"depositIspayed":["1"],"endTime":["17:30"],"cname":["yezi"],"mobile":["13626262323"],"courseName":["2"]}}
{"total":2,"pageSize":30,"currPage":1,"results":
[{"id":1,"pname":"叮当","cname":"小叮当","courseId":29,"courseName":"足球基础课","mobile":"13616265353","spaceId":40,"spaceName":"花木中心小学","startTime":"15:00","endTime":"16:01"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441814400,"applyTimeAdd":"2015-09-10","isPayed":0,"depositIspayed"
:0,"dayOfWeek":"周一","districtTime":"周一:15:00-16:01"},
{"id":3,"pname":"关羽","cname":"关银屏","courseId":29,"courseName":"足球基础课","mobile":"13312345678","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1443628800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441864053,"applyTimeAdd":"2015-09-10"
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1443628800"}],"startNum"
:0}
http://localhost/train/wap/login.html
'JUJU.store.system.SpaceInfoManage.AddressAllInfoStore',
'JUJU.store.system.CourseInfoManage.CourseSpaceStore' url: JUJU.global.path + 'course/findSpaceByCourseId.do',
http://localhost:8080/admin/course/findSpaceByCourseId.do?_dc=1442027260837&courseId=30
昨天我发现楼下小摊有5块钱一个的高仿iPhone6s模型,于是买了一个然后在一个人多的广场河边假装打电话,
说:"给劳资滚,我永远不会原谅你的,分手吧!”
然后我潇洒的把手机模型扔到了河里,拿出一根烟,
故作忧郁的在那里摆了个销魂的姿势站着,
旁边好多美女用那花痴的表情看着我。
当我正装备得瑟一下时!一个小盆友上来拍了拍我的肩膀,
大声的对我说:"大哥,你的手机浮上来了…”
"[{\"id\":\"1cf6f298-9029-4574-946f-14db1b17b913\",\"name\":\"幼儿班\",\"courseTime\":10,\"tagName\":\"
热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana, sans-serif
\\\"\\u003e幼儿班\\u003c/font\\u003e\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime
\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":12,\"actualStudent\":0,\"isneedCname\":0,
\"avgPrice\":1.2},{\"id\":\"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d\",\"name\":\"启蒙班\",\"courseTime\":10
,\"tagName\":\"热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana
, sans-serif\\\"\\u003e启蒙班\\u003c/font\\u003e\",\"startTime\":1438358400,\"startTimeFmt\":\"2015-08-01
\",\"endTime\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":10,\"actualStudent\":0,\"isneedCname
\":0,\"avgPrice\":1.1},{\"id\":\"75\",\"name\":\"足球兴趣班培训\",\"courseTime\":10,\"tagName\":\"热门\",\"tagId
\":\"36\",\"description\":\"1\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime\"
:1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":21,\"actualStudent\":19,\"isneedCname\":1,\"avgPrice
\":1.0}]"
{"status":200,"message":"查询成功","data":[{"id":"d3d80cc1-02ae-4a81-98e5-7896d1ac85c9","title":"q123","subtract"
:"qweerqwrrwe","content":"rwerwerewrwr","microPic":"upload/20150929/d6f412ee30924ba090034d6bf70824f7
.","marked":1,"createTime":1443142652917,"lastUpdateTime":1443490948057,"stat":1,"markedStr":null,"createTimeStr"
:null,"startTimeStr":null,"endTimeStr":null},{"id":"1f989e99-1855-40ff-981d-cb451699007c","title":"人
头","subtract":"qweerqwrrwe","content":"rwerwerewrwr","microPic":"upload/20150929/de1fbdb22a744ae39e9d516e6797a47b
.jpg","marked":1,"createTime":1443142638050,"lastUpdateTime":1443490917054,"stat":1,"markedStr":null
,"createTimeStr":null,"startTimeStr":null,"endTimeStr":null},{"id":"17fa89ff-546e-4d16-868f-917d3cf9b433"
,"title":"123123","subtract":"23132323","content":"423423432424","microPic":"upload/20150923/6229b14cc6aa44508de306ed9df02abf
.jpg","marked":1,"createTime":1442976996819,"lastUpdateTime":null,"stat":1,"markedStr":null,"createTimeStr"
:null,"startTimeStr":null,"endTimeStr":null}]}
http://localhost/upload/d6f412ee30924ba090034d6bf70824f7.jpg
http://localhost/upload/20150929/de1fbdb22a744ae39e9d516e6797a47b.jpg
http://localhost/upload/6229b14cc6aa44508de306ed9df02abf.jpg
[{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":12,"actualStudent":0,"isneedCname":0,"avgPrice":1.2},
{"id":"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d","name":"启蒙班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e启蒙班\u003c/font\u003e","startTime":1438358400,"startTimeFmt":"2015-08-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":10,"actualStudent":0,"isneedCname":0,"avgPrice":1.1},
{"id":"75","name":"足球兴趣班培训","courseTime":10,"tagName":"热门","tagId":"36","description":"1","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":21,"actualStudent":20,"isneedCname":1,"avgPrice":1.0}]
[{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":12,"actualStudent":0,"isneedCname":0,"avgPrice":1.2},
{"id":"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d","name":"启蒙班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e启蒙班\u003c/font\u003e","startTime":1438358400,"startTimeFmt":"2015-08-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":10,"actualStudent":0,"isneedCname":0,"avgPrice":1.1},
{"id":"75","name":"足球兴趣班培训","courseTime":10,"tagName":"热门","tagId":"36","description":"1","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":21,"actualStudent":20,"isneedCname":1,"avgPrice":1.0}]
{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"endTime":1443628800,"maxStudent":12,"actualStudent":0,"isneedCname":0,"createTime":1443592041,"status":1,"tagName":"热门","price":0.0}
[{"id":"68","city":"上海","name":"徐汇","status":1},{"id":"69","city":"上海","name":"闵行","status":1},{"id":"70","city":"上海","name":"杨浦","status":1}]
http://localhost/v2.0/index.html
http://localhost/v2.0/myaccount_college.html
"[{\"id\":\"1cf6f298-9029-4574-946f-14db1b17b913\",\"name\":\"幼儿班\",\"courseTime\":10,\"tagName\":\"
热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana, sans-serif
\\\"\\u003e幼儿班\\u003c/font\\u003e\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime
\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":12,\"actualStudent\":0,\"isneedCname\":0,
\"avgPrice\":1.2}]"
http://localhost:8080/training/mineCollege.do?openId=oSpKwv8Rvr4yIvO-P23xcgNxq3MU
http://localhost:8080/training/getUserInfo.do?openID=oSpKwv8Rvr4yIvO-P23xcgNxq3MU
{"status":"200","message":"查找成功!","data":"{"id":"b32d8555-d5b1-4015-a67f-2a9102de8408","openId":"","pname":"麻麻","utype":"0","cname":"尧尧","birthday":"1441036800","fmbirthday":"2015-09-01","birthdays":"","birthdayStr":"","originSchool":"","mobile":"18956565656","status":"1","createTime":"","fmCreateTime":"","updateTime":"","name":"","address":"","spaceTime":"","dayOfWeek":"","startTime":"","endTime":"","courseId":"","addressId":"","spaceTimeId":"","courseAbove":"","notCourse":"","leaveCourse":"","absenteeismCourse":"","classId":"","location":"南京","position":"","pic":"","microPic":"","description":"","lastLoginTime":"","fmLastLoginTime":""}"}
{"status":200,"message":"查询成功","data":{"total":6,"pageSize":2,"currPage":1,"results":[{"id":"cdd30697-50ea-465c-aa19-d9dc4c4647db"
,"title":"452452","subtract":"452452452452","content":"<h1>聚运动闵行区见面会,“送教入校”即将全面启动</h1>\r\n\t\t\t\t<p
>上周五,聚运动“送教入校”项目团队一行拜访了闵行区5所对接中小学,与各位对接学校领导和老师见面的同时也对场地进行实地考察。由于行程原因,和闵行区对接的执行教练没能赶上见面会,因此整个参观团队由小可可
维奇带领。在今后一年里,聚运动团队将和闵行区学校进行紧密的合作,推动校园足球深入课堂。</p>\r\n\t\t\t\t<h2>吴泾三小</h2>\r\n\t\t\t\t<img class=\"full
\" src=\"img/counseling-2.png\"/> \r\n\t\t\t\t<p>吴泾第三小学是整个行程的第一站,提早到达的小编先进入球场一睹为快。尽管并不大,但球场草坪的质量很高,而
且整个场地与远处宏伟的氯碱化工的巨大烟囱以及闵浦大桥引桥相映衬,工业文明的壮景和人类原生的对竞技的追求形成强烈对比,能让人感到一股非凡的气势。</p>\r\n\t\t\t\t<img class=\"full
\" src=\"img/counseling-2.png\"/> \r\n\t\t\t\t<p>闵行区教育局领导王琼老师和吴泾三小的顾校长也早早来到学校,等待聚运动团队的到来。在亲密的合影后,顾校长
带着聚运动团队参观了操场和其他室内设施。</p>\r\n\t\t\t\t<p class=\"bottum\">顾校长亲切地介绍了吴泾三小的女足特色,目前学校拥有三个女子梯队。在市级比赛中吴泾三小的表
现一直可圈可点,但对现状并不满足的的顾校长希望外教团队能帮助吴泾三小的校队更上一个台阶。小可可维奇表示将会安排优秀的教练进驻闵行,争取带领吴泾三小的各年龄段校队在区级和市级比赛中取得更出色的成绩。</p
>","microPic":null,"pic":"/upload/51de9ee9160a4dae81fdf951f6767d89.jpg","marked":0,"createTime":1444372047290
,"lastUpdateTime":1444372580545,"stat":1,"markedStr":null,"createTimeStr":"2015-10-09","startTimeStr"
:null,"endTimeStr":null},{"id":"0d140bcf-0ae6-4b8c-87fc-ee523c7861fd","title":"中国好声音","subtract":"你是
天使","content":"你是恶魔","microPic":"upload/20151009/1f4a3052bb8f460ca219657f4e3420e5.jpg","pic":"/upload
/d6f412ee30924ba090034d6bf70824f7.jpg","marked":1,"createTime":1444369701804,"lastUpdateTime":1444372426543
,"stat":1,"markedStr":null,"createTimeStr":"2015-10-09","startTimeStr":null,"endTimeStr":null}],"startNum"
:0}}
http://127.0.0.1:8080/training/getAvaCourses.do?ava=1&&marked=1
http://localhost:8080/training/msgPage.do?page=2
http://www.jujusports.cn/login.html?_pageTag=login
{"status":200,"message":"查询成功","data":[{"id":"39f331ae-f35f-455c-8c26-51326a53f94a","title":"标题标题22"
,"subtract":"摘要23432","content":"内容324234","microPic":null,"pic":null,"marked":1,"createTime":1442907441046
,"lastUpdateTime":1444445543961,"stat":1,"markedStr":null,"createTimeStr":null,"startTimeStr":null,"endTimeStr"
:null,"newVideo":null},{"id":"71031d76-1af6-4641-848a-1eba65f32434","title":"标题2","subtract":"摘要112"
,"content":"内容******","microPic":"/image/xx.jsp","pic":null,"marked":1,"createTime":1442906668073,"lastUpdateTime"
:null,"stat":1,"markedStr":null,"createTimeStr":null,"startTimeStr":null,"endTimeStr":null,"newVideo"
:null}]}
后台:http://10.10.11.86:8080/admin/index.html 123 123456
{"status":200,"message":"查询成功","data":{"total":3,"pageSize":0,"currPage":1,"results":[{"courseId":"1cf6f298-9029-4574-946f-14db1b17b913"
,"addressId":"aff35ff9-2e35-4e87-ad8f-3bcf92f51887","classId":"44bc0830-f7cf-4b31-be39-8780f5eb6198"
,"name":"幼儿班","course_time":10,"tag_id":"36","equip":"啊啊啊、11","micro_pic":"img/simple3.jpg,img/simple3
.jpg,img/simple3.jpg","price":10,"startdate":null,"place":"上海法官学院","address":"光华路2888","tag_name":"热
门","marked":1,"startTime":"1441036800","endTime":"1443628800"},{"courseId":"1cf6f298-9029-4574-946f-14db1b17b913"
,"addressId":"aff35ff9-2e35-4e87-ad8f-3bcf92f51887","classId":"a06f928d-61e2-4420-a444-b2f3aad34ecd"
,"name":"幼儿班","course_time":10,"tag_id":"36","equip":"啊啊啊、11","micro_pic":"img/simple3.jpg,img/simple3
.jpg,img/simple3.jpg","price":12,"startdate":null,"place":"上海法官学院","address":"光华路2888","tag_name":"热
门","marked":1,"startTime":"1441036800","endTime":"1443628800"}],"startNum":0}}
聚运动后台改版待解决问题:
①日期查询 有点误差
②添加各种校验
③添加和编辑场地级联 编辑有点问题 场地下拉列表框初始值的问题
④添加功能有缺陷 √
⑤编辑回显 √
⑥批量删除 √
缺陷:取消按钮不起作用; 日期控件没关闭按钮
http://127.0.0.1:8080/admin/apply/findApplyByPage.do
http://103.36.132.3:8081/admin/index.html
[email protected]
IM测试环境:192.168.1.245
http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html
http://pr.chinaz.com/
http://www.bnedq.com/宝尼尔电器 每日瑜伽
http://10.10.11.139:8080/admin/main.do 123:123456 admin:000000
http://10.10.11.139:8080/upload.jsp
http://127.0.0.1/userMan/index.htm
f:\yin\1447149471353\20151110 (系统找不到指定的路径。)
所有功能这周完成,包括注册和登录!
图片上传和批量上传的问题
图片列表最好设一个按钮,”设为封面“
[{"id":"1","gameId":"","name":"飞虎队","logo":"","contact":null,"distruct":"","members":null,"creater":""
,"homeCourt":"","setUpTime":null,"setUpTimeStr":null,"grade":null,"win":null,"drew":null,"lost":null
,"lastUpdateTime":null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr":null,"stat":1},{"id"
:"2","gameId":"","name":"小虎队","logo":"","contact":null,"distruct":"","members":null,"creater":"","homeCourt"
:"","setUpTime":null,"setUpTimeStr":null,"grade":null,"win":null,"drew":null,"lost":null,"lastUpdateTime"
:null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr":null,"stat":1}]
\upload\20151118\4dc88675451249968700edec1e553b2f.jpg,\upload\20151118\5398dc469b734db1ab66394fa78ba02f.jpg,
\upload\20151118\50a49bf908dd423a8bc78861fcc29f79.jpg,\upload\20151118\4f8c601577824e2b8ea0569d260f3e72.jpg,\upload\20151118\9cc36ebd4d8342bab7f2ae21538ae3c0.jpg,
相册表单校验和按时间查询还没做,逻辑是否有问题?
<bean id="freeMarker" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<!--<property name="templateLoaderPath" value="classpath:mailTemplate"/>-->
<property name="templateLoaderPath" value="/WEB-INF/view"/>
<!--指定模板文件目录-->
<property name="freemarkerSettings">
<!-- 设置FreeMarker环境属性-->
<props>
<prop key="template_update_delay">1800</prop>
<!--刷新模板的周期,单位为秒-->
<prop key="default_encoding">UTF-8</prop>
<!--模板的编码格式 -->
<prop key="locale">zh_CN</prop>
<!-- 本地化设置-->
</props>
</property>
</bean>
utype=&password=&randomPic=111111&mail_user_type=1&email=jamhihi%40120.com&mail_picCaptcha=aaaa&mobile=
utype=1&password=a11111&randomPic=111111&mail_user_type=1&email=jamhihi%40120.com&mail_picCaptcha=aaaa&phone_user_type=2&mobile=13012817028
utype=2&password=b11111&randomPic=111111&mail_user_type=1&email=jamhihi%40121.com&mail_picCaptcha=cccc&phone_user_type=2&mobile=13012817028
后期优化:后台删除之前弹出个确定要删除。
<script src="static/js/jquery-2.1.3.min.js"></script>
<a href="reg.html">注册</a>
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style">
<span class="jiathis_txt">分享到:</span>
<a class="jiathis_button_tools_1"></a>
<a class="jiathis_button_tools_2"></a>
<a class="jiathis_button_tools_3"></a>
<a class="jiathis_button_tools_4"></a>
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript" >
var jiathis_config={
url:"www.jam.com",
summary:"",
shortUrl:false,
hideMore:true
}
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
.reg_box .forms ul li.certificate .preview > label.browse {
background: #f1f1f1 none repeat scroll 0 0;
border-top: 1px solid #ccc;
color: #666;
cursor: pointer;
display: block;
height: 29px;
line-height: 30px;
text-align: center;
width: 100%;
}
.reg_box .forms ul li.certificate .preview > label.browse {
background: #f1f1f1 none repeat scroll 0 0;
border-top: 1px solid #ccc;
color: #666;
cursor: pointer;
display: block;
height: 29px;
line-height: 30px;
text-align: center;
width: 100%;
}
http://127.0.0.1/userMan/mp23680469_1437469645407_11.gif
/upload/20151125/e246695f361f4ad2acb197f14f9977a7.gif
{"status":200,"message":null,"data":{"total":7,"totalPage":1,"pageSize":10,"currPage":1,"results":[{"id"
:"95ae79b9-88e7-496b-a58a-08f8ab590ee1","video":"\\upload\\20151125\\d81346a950c5402380c75e905107089a
.flv","publishPeople":"测试员4","pageRanking":null,"videoStatus":0,"marked":1,"lastUpdateTime":1448416308000
,"createTime":1448415717000,"lastUpdateTimeStr":"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName"
:"测试4","teamId":"214sadagy4hyadsg","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload
\\20151125\\dbd473f97e7c4521a9dd0208abceaed8.jpg"},{"id":"ee9bea69-37d0-4f0c-a9bd-17b645c1766c","video"
:"\\upload\\20151125\\8d45dc5a73354c36a541336a391ff71a.flv","publishPeople":"测试员3","pageRanking":null
,"videoStatus":0,"marked":1,"lastUpdateTime":1448416448000,"createTime":1448415589000,"lastUpdateTimeStr"
:"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName":"测试视频3","teamId":"214332zdsgzxgvdsagtadsgdsa"
,"gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload\\20151125\\1cd13ff24f214e7dbf3dfa569bcc74a2
.jpg"},{"id":"4f7a4d26-1be6-43a1-8e0b-1814ac0fcaa8","video":"\\upload\\20151125\\8fcc3c844df24b2690b2eeed797f753e
.flv","publishPeople":"测试员2","pageRanking":null,"videoStatus":0,"marked":1,"lastUpdateTime":1448416468000
,"createTime":1448415485000,"lastUpdateTimeStr":"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName"
:"测试视频2","teamId":"214332zdsgzxgvdsagtadsgdsa","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb"
:"\\upload\\20151125\\778e5a1057a741f09e37b1b35657d974.jpg"},{"id":"1d09f114-f086-45fa-9758-46bfea16c3fe"
,"video":"\\upload\\20151125\\7af12ed09ee448dcb96ce688a2684930.flv","publishPeople":"测试员","pageRanking"
:null,"videoStatus":0,"marked":1,"lastUpdateTime":1448415426000,"createTime":1448415426000,"lastUpdateTimeStr"
:"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName":"测试视频","teamId":"214332zdsgzxgvdsagtadsgdsa"
,"gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":""},{"id":"ff3bf5e1-6f4b-449f-81ae-5b2518f118ac"
,"video":"\\upload\\20151124\\d11d3d0aa51b4544bf17b9a04c2540b3.flv","publishPeople":"刀妹","pageRanking"
:null,"videoStatus":0,"marked":1,"lastUpdateTime":1448336321000,"createTime":1448336321000,"lastUpdateTimeStr"
:"2015-11-24","createTimeStr":"2015-11-24","stat":1,"videoName":"艾欧尼亚","teamId":"214sadagy4hyadsg","gameId"
:"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload\\20151123\\2ca1dbce46134bf7be36d5eaca479aad
.jpg"},{"id":"8dbb8cf5-3b65-47a9-8341-a867d922eefd","video":"\\upload\\20151124\\2375a2f58f96491c8d62a5142f9bc83d
.flv","publishPeople":"盖伦","pageRanking":null,"videoStatus":1,"marked":1,"lastUpdateTime":1448336842000
,"createTime":1448336270000,"lastUpdateTimeStr":"2015-11-24","createTimeStr":"2015-11-24","stat":1,"videoName"
:"德玛西亚","teamId":"23432qasdggggg","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload
\\20151123\\2ca1dbce46134bf7be36d5eaca479aad.jpg"},{"id":"","video":"","publishPeople":"asasas","pageRanking"
:null,"videoStatus":1,"marked":1,"lastUpdateTime":null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr"
:null,"stat":1,"videoName":"asdasas","teamId":"95ae79b9-88e7-496b-a58a-08f8ab590ee1","gameId":"95ae79b9-88e7-496b-a58a-08f8ab590ee1"
,"videoThumb":"\\upload\\20151116\\c6a0617fe3323a4305c8581fbd00cede.jpeg"}],"startNum":0}}
http://localhost/video/youth_video.htm# 要设计没有视屏时的空白页.
http://localhost/album/list.htm
http://127.0.0.1/tc/video/.htm
response=={"status":200,"message":"图片上传成功","data":{"url":"/upload/20151127/54a4c25faae249189e37767bb78b95e8.jpg"}}
statusText==success
xhr==[object Object]
把teamId和登录的id进行比较.对应的权限
127.0.0.1/pic/myPicList.htm
http://127.0.0.1/video/myVidList.htm###
<img title="" style="width:50px;height:50px" src="http://127.0.0.1/\upload\20151202\635d6652474f4f87b120d881a8f10de8.jpg">
http://127.0.0.1/pic/%5Cupload%5C20151130%5C141ffacdc1994230927367869a730331.png
http://127.0.0.1/upload/20151130/141ffacdc1994230927367869a730331.png
<img class="banner" src="\upload\20151130\141ffacdc1994230927367869a730331.png" border="0">
http://127.0.0.1/tc/team/mg/b2116559-dff2-4190-a817-fd5737a50d0a.htm
Question:
①图片上传IE8 点击浏览没反应 ②相册视屏为空时页面什么也没有. ③上传照片时替换的问题(没有上传时不能将原来照片替换掉,要保留原来图片--图片修改的时候)
http://192.168.1.70/index.htm###
http://127.0.0.1/pic/myPicList.htm###
http://127.0.0.1/tc/team/mg/b2116559-dff2-4190-a817-fd5737a50d0a.htm##
http://www.jujusports.cn/third/weixinLogin.htm?code=031abfa5ea113d43c6e152470317ed3z&state=undefined
http://www.jujusports.cn/userMan/userInfo.htm
http://www.jujusports.cn/third/userMan/userInfo.htm
o_t-9w1QIxRHSGnzv6aSeM-wZeVw
select id, email, mobile, password, nick_name, cname, ename, gender, utype, trainer_level, papers_pic, province, location, position, pic, micro_pic, description, visible_stat, last_login_time, last_update_time, create_time, audit, stat, qq, weixin, sina, telephone, postcode, detailed_address from sport_user WHERE ( weixin = 'o_t-9w1QIxRHSGnzv6aSeM-wZeVw' and stat = 1 );
<img id="logo_img_general" alt="" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg">
<img alt="" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg" id="logo_img_general">
<img border="0" alt="" id="team_logo_img" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg">
127.0.0.1:8081/admin/main.do
http://192.168.1.70:8080/admin/login_toLogin.do
http://127.0.0.1:8081/admin/login_toLogin.do
预生产环境: 86 和227
<img style="width:50px;height:50px" title="" src="http://127.0.0.1/\upload\20151216\2b8e487e381b4394997a0c3e2e29b170.jpg">
http://127.0.0.1/tc/index/b2116559-dff2-4190-a817-fd5737a50d0a.htm
ALTER TABLE sport_album_picture ADD `pic_status` int(4) DEFAULT '0' COMMENT '照片状态(0.待审核 1.审核通过 2.审核不通过)';
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus,b.title ,c.name as teamName FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc ;
SELECT * from sport_album_picture where stat = 1;
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus, b.title,b.stat,c.name as teamName, c.stat FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc;
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus, b.title,b.stat as albumStat,c.name as teamName,c.stat as teamStat FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc;
主干: svn://192.168.1.156/repo/jujuSport/trunk
分支: svn://192.168.1.156/repo/jujuSport/branches/tianfang20151222
svn://192.168.1.156/repo/jujuSport/trunk/tianfang
https://graph.qq.com/oauth/show?which=error&display=pc&error=100010&client_id=101211878&response_type=token&scope=all&redirect_uri=http%3A%2F%2Fwww.jujusports.cn%2Fresult.html
https://graph.qq.com/oauth/show?which=ConfirmPage&display=pc&client_id=101211878&response_type=token&scope=all&redirect_uri=http%3A%2F%2Fwww.jujusports.cn%2Fresult.html
video_type 视频类型(1:happy football, 2:精英训练营,3:原创视频,4:教练员培训)
ALTER TABLE sport_album_picture ADD `pic_type` int(4) DEFAULT NULL COMMENT '相片类型(4:教练员培训)',
src="http://127.0.0.1\upload\20151224\c6382d1b138c43758bcdde0b0af04a40.jpg"
src="127.0.0.1\upload\20151224\8047ecb61a2749c6b08a2a7fb653db98.jpg"
注:sportUser表环境中标数据要清空,否则脏数据 lecturer的值为null将不会显示出来 ==> 解决方案 在页面修改即可:1和其他
UPDATE sport_user SET lecturer = 0;
注意一一对应;起始符和结束符
<#if page.lecturer ?? >
<#if page.lecturer == 1 >
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="0" class='btn btn-mini btn-success' title="取消培训主讲人"><i class=''></i>取消主讲人</a>
<#elseif page.lecturer == 0 >
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="1" class='btn btn-mini' title="设置培训主讲人"><i class=''></i>设置主讲人</a>
</#if>
<#else>
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="1" class='btn btn-mini' title="设置培训主讲人"><i class=''></i>设置主讲人</a>
</#if>
UPDATE sport_user SET lecturer = NULL;
select MD5(123456),MD5(1234),MD5('a11111'),MD5(123),MD5(111111),MD5("a12345");
MD5(123456):e10adc3949ba59abbe56e057f20f883e
MD5(1234):81dc9bdb52d04dc20036dbd8313ed055
MD5('a11111'):71b596cb42ee254f7416043d184fc970
MD5(123):202cb962ac59075b964b07152d234b70
MD5(111111):96e79218965eb72c92a549dd5a330112
MD5("a12345"):af8f9dffa5d420fbc249141645b962ee
MD5(1):c4ca4238a0b923820dcc509a6f75849b
http://10.10.11.209/SMS/regMobileVal.htm?mobilePhone=15618178557712
<div id="mailpreview" class="preview">
<input id="file" type="file" name="file">
</div>
<div id="mailpreview" class="preview">
<input id="hfThumbnail" type="hidden" value="" name="mail_pic">
<img id="userImageS" border="0" alt="" src="/static/img/preview.png">
<label class="browse" for="file">浏览</label>
<input id="file" type="file" name="file">
<a id="query" class="upload" href="###">浏览</a>
</div>
http://127.0.0.1:8080/main/index
category=1&count=11&category=3&count=22&category=2&count=33&category=1&count=44&productStyleId=2&productShapeId
=1&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a
&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator=%3C&totalFixedPrice=11&content
=11&lunchCount=11&lunchCount=11&isSensitiveIngredients=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-07
&lunchCountSelect=on&lunchCount=&dinnerCountSelect=on&dinnerCount=
category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=1&productCuisineId=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a
&productColorId=2&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator=%3C&totalFixedPrice=22&nutrition
=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=0.01&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069
&nutrition_flag=%3D&content=100&nutrition=117830b6-913b-4ea2-9176-a57f8d3082b8&nutrition_flag=%3E&content
=0&isSensitiveIngredients=0&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-01&lunchCountSelect=on
&lunchCount=1001&dinnerCountSelect=on&dinnerCount=10001
category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=2&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=100&totalFixedPriceOperator
=%3D&totalFixedPrice=80&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=0.01
&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3E&content=10&nutrition=117830b6-913b-4ea2-9176-a57f8d3082b8
&nutrition_flag=%3D&content=5&isSensitiveIngredients=1&fixingsStartTime=2015-12-02&fixingsEndTime=2015-12-18
&lunchCountSelect=on&lunchCount=88&dinnerCountSelect=on&dinnerCount=999
http://127.0.0.1:8080/;jsessionid=jvqbvcr5xxr0bk4nachcnjv3
http://127.0.0.1:8080/smart/addSmart.do?category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=123&totalFixedPriceOperator
=%3C&totalFixedPrice=111&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3C&content=11
&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3E&content=22&isSensitiveIngredients
=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-31&lunchCountSelect=on&lunchCount=22&dinnerCount
=11
productStyleName=&productShapeName=&productTasteName=&productCuisineName=&productColorName=&categoryId
=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount=3&productStyleId=2&productShapeId
=beafe1f0-2cd3-4f3d-9f2d-46c3882fbf53&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=33
&nutritionId=625ae3e0-2f73-4964-916b-e5d063659293&nutritionOperator=%3C&nutritionContent=44&isSensitiveIngredients
=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-08&lunchCountSelect=on&lunchCount=5&dinnerCountSelect
=on&dinnerCount=6
productStyleName=&productShapeName=&productTasteName=&productCuisineName=&productColorName=&categoryId
=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount=3&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a&productColorId=2&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=33
&nutritionId=07af8e44-d60f-46b4-b607-bc99213b0d23&nutritionOperator=%3E&nutritionContent=44&isSensitiveIngredients
=1&fixingsStartTime=2015-12-08&fixingsEndTime=2015-12-15&lunchCountSelect=on&lunchCount=55&dinnerCountSelect
=on&dinnerCount=66
setMealName=%E5%87%AF%E7%91%9F%E7%90%B301&productStyleName=&productShapeName=&productTasteName=&productCuisineName
=&productColorName=&categoryId=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount
=3&productStyleId=1&productShapeId=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=1&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&isSensitiveIngredients=0&fixingsStartTimeStr=2015-12-01&fixingsEndTimeStr=2015-12-31
&lunchCountSelect=on&lunchCount=33&dinnerCount=
@Autowired
@Getter
private SportAlbumMapper mapper;
@Override
public Object getMapper() {
return mapper;
}
lunchCountSelect dinnerCountSelect lunchCount dinnerCount
select * from (
SELECT a.* from t_cb_intelligent_fixings where stat = 1
) a
LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id and b.fixings_type = 2
LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
SELECT a.* from t_cb_intelligent_fixings a
LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id
LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
WHERE b.fixings_type = 2 AND a.stat = 1;
-- select * from (
-- SELECT a.* from t_cb_intelligent_fixings where stat = 1
-- ) a
-- LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id and b.fixings_type = 2
-- LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
-- LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id ;
--
-- SELECT a.* from t_cb_intelligent_fixings a
-- LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id
-- LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
-- LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
-- WHERE b.fixings_type = 2 AND a.stat = 1;
-- SELECT DISTINCT a.name,a.id,a.unit from t_cb_nutrition a;
-- SELECT id,max(B),max(C) FROM TABLE1 GROUP BY A,B,C;
-- select a.* from t_cb_nutrition a group by id,name;
查询所有营养:
select * from t_cb_param_config a where a.param_type = 'material_nutrition';
top.Dialog.close();
查询智能配菜接口:http://127.0.0.1:8080/smart/findSmart.do
赛事通: svn://192.168.1.156/repo/sst/trunk
思考:Long类型变为String 类型 ==> Long.toString 和 String.valueOf的区别==>操作结果表示:貌似2个都可以
SELECT a.id,a.set_meal_name as setMealName,a.fixings_master_id as fixingsMasterId,a.lunch_count as lunchCount,a.dinner_count as dinnerCount,a.total_cost_operator as totalCostOperator,a.total_cost as totalCost, a.total_fixed_price_operator as totalFixedPriceOperator,a.total_fixed_price as totalFixedPrice,a.is_sensitive_ingredients as isSensitiveIngredients,a.fixings_start_time as fixingsStartTime,a.fixings_end_time as fixingsEndTime,a.create_time as createTime, a.last_update_time as lastUpdateTime,a.stat,b.fixings_name as fixingsName,b.fixings_type as fixingsType FROM t_cb_intelligent_fixings a LEFT JOIN t_cb_fixings_master b ON a.fixings_master_id = b.id WHERE a.stat = 1 and b.fixings_type = 2 and a.set_meal_name like '1' ORDER BY a.create_time DESC LIMIT 0,10;
赛事通: http://127.0.0.1:8080/admin/toLogin.do admin :123456
select id, title, create_user_id, create_user_name, content, update_user_id, update_user_name, group_id, group_name, pic, create_time, last_update_time, stat from sst_notice WHERE ( stat = 1 ) order by create_time DESC limit 1,10 ;
select * from sst_notice WHERE ( stat = 1 ) order by create_time DESC limit 1,10 ; -- 应该从0开始
select * from sst_notice ;
http://192.168.1.70:8080/admin/login_toLogin.do
-- CREATE TABLE `a` (
-- `id` bigint(20) NOT NULL AUTO_INCREMENT,
-- `message_id` int(11) NOT NULL,
-- `user_id` int(11) NOT NULL,
-- `msg` varchar(1024) DEFAULT NULL,
-- `gmt_create` datetime NOT NULL,
-- PRIMARY KEY (`id`),
-- KEY `user_id` (`user_id`,`message_id`),
-- KEY `idx_gmt_create` (`gmt_create`)
-- ) ENGINE=InnoDB DEFAULT CHARSET=gbk;
-- CREATE TABLE `b` (
-- `user_id` int(11) NOT NULL,
-- `message_id` int(11) NOT NULL,
-- `msg` varchar(1024) DEFAULT NULL,
-- `gmt_create` datetime NOT NULL,
-- PRIMARY KEY (`user_id`,`message_id`),
-- KEY `idx_gmt_create` (`gmt_create`)
-- ) ENGINE=InnoDB DEFAULT CHARSET=gbk;
-- CREATE TABLE `index_str` (
-- `id` int(11) NOT NULL AUTO_INCREMENT,
-- `user_id` varchar(30) NOT NULL,
-- `name` varchar(30) DEFAULT NULL,
-- PRIMARY KEY (`id`),
-- KEY `idx_user_id` (`user_id`)
-- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gbk
-- select * from index_str\g;
select * from index_str WHERE user_id = 11;
select * from index_str WHERE user_id = '11';
select * from index_str WHERE user_id = 00011;
select * from index_str WHERE user_id = '00011';
http://10.10.11.133:8080/main/index
http://127.0.0.1:8080/admin/main.do
http://192.168.1.70:8080/admin/login_toLogin.do
<img style="width:60px;height:60px;" src="http://192.168.1.70//upload/20160120/4a0062f3379d4169bf88fc74a2fa20cc.jpg" alt="" id="img_show_XTKEQD">
http://192.168.1.70//upload/20160120/4a0062f3379d4169bf88fc74a2fa20cc.jpg
<img id="img_show" style="width:60px;height:60px;" src="192.168.1.193\upload\20160120\f57c4b087ed44003ac22d6ded3872a08.jpg" alt="">
192.168.1.193\upload\20160120\f57c4b087ed44003ac22d6ded3872a08.jpg
sst_competition_apply 赛事报名表
http://127.0.0.1:8080/admin/competition/news/findCompNewsView.do?pId=14
http://127.0.0.1:8080/admin/competition/notice/findCompNoticeView.do?pId=14
http://127.0.0.1:8080/admin/team//findTeamView.do?pId=19
notice_edit.htm
2100 300+100+300+400 6000(600+100+100+20*30+100=1500) 4500(4*800+1200)
2017-29:(8000-3000)*12=60000
2018-30:(8000-3000)*12=60000
80*8=65 65+20=85 65*0.3=20 65/(20*12)=2700 65/(10*12)=5400
http://192.168.1.180:8080/cookbookAdmin/main/index
待解决问题:
①球队图片上传多文件上传问题 已解决
②后台表单校验 已解决
③球员管理? 已解决
④某些审批性的字段是否要加 暂不加
⑤后台获取当前用户信息 已解决
⑥智能配菜删除最后一条记录报错 已解决(<if test="star != null and end != null and star >= 0">)
⑦配菜总价正则 已解决(数据库类型为bigint(50)所以页面校验调整为只能输入整数)
⑧日期框问题 (插件问题,暂不解决)
⑨球队位置下拉列表框(数据库里存的为int类型.页面要处理)
[DEBUG][2016-01-29 14:31:25,390] - ==> Preparing: INSERT INTO sst_team_image (id, team_id, title, img_url, note, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat) VALUES (?,?,?,?,?,?,?, ?,?,?,?,?) , (?,?,?,?,?,?,?, ?,?,?,?,?) , (?,?,?,?,?,?,?, ?,?,?,?,?)
[DEBUG][2016-01-29 14:31:25,400] - ==> Parameters: f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null,
f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null,
f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null
[DEBUG][2016-01-29 15:05:38,383] - ==> Parameters: 0dbd5950-5514-4358-85d9-2320f0bc5b45(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\f394cbe9b68e47a7a5c7ef3f3c01da4e.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null,
5b468d6a-bfcf-4389-9482-97622e170823(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\80348433cdb24b3f8b4a0dd1e36366e5.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null,
d8e5b2aa-ff2e-4a04-9838-b7607b13da83(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\e899f68db9b140bab4176a0aaab91474.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null
IntelligentFixingsDto(id=4bc5bc50-e0e6-4dc6-b634-c2b8b3aeb637, setMealName=fff, fixingsName=null, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=0, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[], shape=[], taste=[], cuisine=[], color=[], star=0, end=0, totalPage=0)
IntelligentFixingsDto(id=null, setMealName=null, fixingsName=ggg, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[com.ssic.cookbook.manager.dto.CategoryDto@270c836e], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[com.ssic.cookbook.manager.dto.SmartNutritionDto@2688bec9], nutritionId=[1], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=null, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[com.ssic.cookbook.manager.dto.StyleDto@5ba591e2], shape=[com.ssic.cookbook.manager.dto.ShapeDto@530cbb6f], taste=[com.ssic.cookbook.manager.dto.TasteDto@68e59f01], cuisine=[com.ssic.cookbook.manager.dto.CuisineDto@3b2a3074], color=[com.ssic.cookbook.manager.dto.ColorDto@4ed32e04], star=0, end=0, totalPage=0)
增加IntelligentFixingsDto(id=null, setMealName=null, fixingsName=hhh, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[com.ssic.cookbook.manager.dto.CategoryDto@6cfb984], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[com.ssic.cookbook.manager.dto.SmartNutritionDto@2f9c8c9a], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=null, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[com.ssic.cookbook.manager.dto.StyleDto@4ed2eae1], shape=[com.ssic.cookbook.manager.dto.ShapeDto@793a8234], taste=[com.ssic.cookbook.manager.dto.TasteDto@703a6219], cuisine=[com.ssic.cookbook.manager.dto.CuisineDto@8fe90df], color=[com.ssic.cookbook.manager.dto.ColorDto@d92516], star=0, end=0, totalPage=0)
编辑IntelligentFixingsDto(id=68d053a3-d307-419c-8bc7-696982972e76, setMealName=hhh1, fixingsName=null, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=0, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[], shape=[], taste=[], cuisine=[], color=[], star=0, end=0, totalPage=0)
-- SELECT a.id,a.set_meal_name as setMealName,a.fixings_master_id as fixingsMasterId,a.lunch_count as lunchCount,a.dinner_count as dinnerCount,a.total_cost_operator as totalCostOperator,a.total_cost as totalCost, a.total_fixed_price_operator as totalFixedPriceOperator,a.total_fixed_price as totalFixedPrice,a.is_sensitive_ingredients as isSensitiveIngredients,a.fixings_start_time as fixingsStartTime,a.fixings_end_time as fixingsEndTime,a.create_time as createTime, a.last_update_time as lastUpdateTime,a.stat,b.fixings_name as fixingsName,b.fixings_type as fixingsType FROM t_cb_intelligent_fixings a LEFT JOIN t_cb_fixings_master b ON a.fixings_master_id = b.id WHERE a.stat = 1 and b.fixings_type = 2 ORDER BY a.create_time DESC LIMIT -10,10;
UPDATE t_cb_intelligent_fixings SET stat=1;
-- select * from t_cb_intelligent_fixings;
20160203==>待解决问题:
① 计划的定时提醒功能 =>改为王翔做了
② 菜谱系统查询优化 =>注意把7个表的查询返回值要改成dto,之前是pojo
手机端发布公告(移动端转json格式字符串)
ISportAddressesService
http://127.0.0.1:8081/home/comp/list.do?currPage=1&pageSize=2
http://127.0.0.1:8081/home/comp/news.docurrPage=1&pageSize=2&compId='4aa4250e-d01e-4610-80d2-ce20e8be3ab6'
-- `sst_competition``sst_competition`select count(*) from sst_competition WHERE ( stat = 1 ) ;
-- select id, title, content, icon, start_date, end_date, is_closed, comp_type, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition WHERE ( stat = 1) order by create_time DESC limit 0,0 ;
-- select id, comp_id, comp_name, title, summary, pic, content, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition_news WHERE ( comp_id = '4aa4250e-d01e-4610-80d2-ce20e8be3ab6' and stat = 1 ) order by create_time desc limit 0,2;
-- select id, comp_id, comp_name, title, summary, pic, content, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition_news WHERE ( comp_id = '4aa4250e-d01e-4610-80d2-ce20e8be3ab6' and stat = 1 ) order by create_time desc limit 0,2 ;
SELECT * FROM sst_addresses WHERE LEVEL= 1;
http://10.10.11.174:8081/home/user/list.do?userId=0409b62b-564a-4217-8b75-d9b9389d644e&currPage=1&pageSize=10
http://centos231/group-two/jujusports.git
http://127.0.0.1:8081/home/album/findAlbumByPage.do?page=2&limit=3
地址接口: 127.0.0.1:8081/home/address/findProvince.do?level=0&parentId=''
* @describe 查询省:LEVEL = 1 AND parent_id ="1"(parent_id可不传)
* @describe 查询市:LEVEL = 2 AND parent_id ="省份Id"
* @describe 查询区:LEVEL = 3 AND parent_id ="市Id"
http://10.10.11.154:8081/home/address/findAddress.do?level%20=%201&parentId%20=%200
http://10.10.11.105:8080/main/index
http://192.168.1.248:8880/cookbook/main/index
http://103.36.132.8/appGroupController/findUserByGroupId.do?groupId=9ecb565b-9618-4122-87ab-9a6194ffd3f9
user_id
0409b62b-564a-4217-8b75-d9b9389d644e
48a8acf7-67d0-44a9-806e-3b00c2b1337a
d4a9dc41-dfe6-4e5b-8c3e-e777423ab5f7
http://127.0.0.1:8081/user/findUserByGroupId.do?groupId=1
SELECT user_id FROM sst_group_user WHERE group_id = 1;
SELECT * FROM sport_user WHERE id IN (SELECT user_id FROM sst_group_user WHERE group_id = 1);
SELECT a.mobile FROM sport_user a WHERE a.id IN (SELECT user_id FROM sst_group_user b WHERE b.group_id = 1);
file:///D:/git/jujusports-web/html/ssfl/forgate.html###
http://127.0.0.1/user/forget.htm
待解决 :修改用户时 随机名重复
110000 > 北京市
420112 > 东西湖区
修改用户信息记得校验
http://127.0.0.1:8081/user/findUserInfo.htm?id=012da943-8201-4028-b389-a53158d4c8ce
210000 210624 210600
<!-- <#if userInfo.province?? && page.id == userInfo.province?number>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}" selected="selected">${(page.name)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if> -->
<#list allProvince as page>
<#if userInfo.province??>
<#if page.id == userInfo.province?number>
<option value="${(userInfo.area)!}" selected="selected">${(userInfo.areaStr)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
<#else>
<option value="" selected="selected">请选择</option>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
</#list>
<#if allProvince?? >
<option value="" selected="selected">请选择</option>
<#list allProvince as page>
<#if userInfo.province??>
<option value="${(userInfo.province)!}" selected="selected">${(userInfo.provinceStr)!}</option>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
</#list>
</#if>
var ajaxParams = $("#userInfo").serialize();
$.ajax({
url:'/user/edit.htm',
type: 'POST',
dataType: 'json',
async:false,
data:ajaxParams,
success:function(data){
//console.log(data.data);
if(data.status == 200){
layer.msg("修改用户信息成功");
}else{
layer.msg("修改用户信息失败");
}
}
})
<span class="js-addr show-inf">
北京市 北京市 东城区
</span>
<img border="0" src="\upload\20160318\49d1781071cf4f85b588e6ab605df4ab.jpg" id="imgShow">
Z:/jam/upload/upload/20160318/49d1781071cf4f85b588e6ab605df4ab.jpg
\upload\20160318\9b1f995fdf4643098a1f9c81ef937b79.png
<span class="js-sex show-inf">男</span>
Question:①导航栏跟踪红线问题.
②邮箱找回密码问题.
file:///D:/git/jujusports-web/html/ssfl/forgate.html###
http://www.jujusports.cn/index.htm
http://127.0.0.1/user/toPerson.htm
<button onclick="checkMaterial('1e8ee3b7-3fdd-4d9e-87e6-2f6608a3e6c6');" data-target="#myModal" data-toggle="modal" class="btn btn-mini btn-primary">查看</button>
<input id="productId" type="hidden" value="066dd8b9-0c38-4def-982e-b07151d91295" name="productId">
<input id="smartId" type="hidden" value="5c90423b-ea08-4b4f-b779-5bef273c4c7a" name="smartId">
<input id="lunchCount" type="hidden" value="11" name="lunchCount">
<input id="dinnerCount" type="hidden" value="0" name="dinnerCount">
ModelAndView mv = getModelAndView();
UserDto userDto= (UserDto) session.getAttribute(SessionConstants.LOGIN_USER_INFO);
if(userDto == null){
mv.setViewName("/index");
return mv;
}
List<UserDto> list = userService.findUserByParam(userDto);
if(list == null || list.size() == 0){
mv.setViewName("/index");
return mv;
}
UserDto dto = list.get(0);
表: t_cb_fixings_result_type_product
smartId f7e1076b-3ee3-4701-a26a-28279b81a7f5 bd6b7464-1025-4bb5-9673-1273656a0a3c 1800408b-5ec8-450d-8352-c0363b370b6b
productId 4ac8ff32-f4f2-453a-9a4b-079ccc5fef0b fd79cbd8-9db4-4389-8c52-959d468a2bf3 9ccbc5be-087f-42bd-9d61-06832525fb97
1.0
FixingsResultDto
id=1800408b-5ec8-450d-8352-c0363b370b6b;productId=9ccbc5be-087f-42bd-9d61-06832525fb97;lunchCount=1;dinnerCount=
http://127.0.0.1/datacenter/points.htm?compId=edf136cc-286a-4765-b0c0-e623764fbce1
http://127.0.0.1/datacenter/points.htm?compId=edf136cc-286a-4765-b0c0-e623764fbce1&currPage=1
file:///D:/git/jujusports-web/html/ssfl/data-trailer.html
file:///D:/git/jujusports-web/html/ssfl/data-battle-detail.html
http://127.0.0.1/competition/match/trailerDetil.htm
http://127.0.0.1/competition/match/trailer.htm?id=79e2c6ee-fce1-4475-84fc-21d84e753e2f
sst_team_player_datas 表添加字段,后台记得修改
sst_notice 增加接收公告人字段(text类型)
SELECT b.name AS teamNmae,(a.win*3+a.draw) AS integral,a.* FROM sst_competition_team a LEFT JOIN sst_team b ON a.team_id = b.id WHERE comp_id= '`sst_match_team_base_datas`' ORDER BY integral DESC;
SELECT a.* FROM sst_competition_match a WHERE a.home_team_id = b.team_id
TeamPlayerPositionEnum
SELECT id, comp_id, comp_name, team_id, team_name, team_icon, player_id, player_name, POSITION, times, play_times, num, points, assists, yellow, red, create_admin_id, create_admin_name, create_time, last_update_time, stat FROM sst_team_player_datas WHERE ( comp_id = '05ab432c-67ec-42bb-8ef7-1bac55f28976' AND stat = 1 ) ORDER BY red DESC LIMIT 0,10 ;
http://127.0.0.1/competition/match/trailer.htm?currPage=3
forgate.html
person.html
regiest.html
safe.html
team-herald.html
team-introduction.html
team-member.html
待解决:
后台记得加字段(公告里面的允许转发)
公告图片上传后URL的问题,要去掉前缀
bae421af-31c4-4e75-9674-00308b147034(String), a3efc072-0142-4fff-b951-3adc659a70c9(String), e256e2ad-edc1-4aeb-bf94-014cf506a4a5(String), null, null, null, null,
SELECT b.*,a.readstat AS ReadStat,a.user_id FROM sst_notice_users AS a LEFT JOIN sst_notice AS b ON a.notice_id = b.id WHERE a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' ORDER BY b.create_time DESC LIMIT 0,1;
10.10.11.15:8081/home//notice/findNoticeView.do?currPage=1&pageSize=10
10.10.11.15:8081/home//notice/findNoticeView.do?currPage=1&pageSize=10&userId=40b41478-1094-49da-b21a-9ab7c7cbb42f
select b.id,b.title,b.create_user_id as createUserId ,b.to_users as toUsers,b.create_user_name as createUserName, b.content,b.group_id as groupId,b.group_name as groupName,b.pic,b.create_time as createTime,b.stat,b.allow_forward as allowForward, a.readstat as ReadStat, c.nick_name as nickName FROM sst_notice_users as a LEFT JOIN sst_notice as b ON a.notice_id = b.id LEFT JOIN sport_user c ON a.user_id = c.id WHERE a.user_id = ? ORDER BY b.create_time desc limit ?, ?
http://10.10.11.15:8081/home/notice/findNotice.do?id=e0df8791-c91b-478c-8eb5-aa5e383619be
-- SELECT b.*,a.readstat AS ReadStat,a.user_id FROM sst_notice_users AS a LEFT JOIN sst_notice AS b ON a.notice_id = b.id WHERE a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' ORDER BY b.create_time DESC LIMIT 0,1;
-- select b.*,a.readstat as ReadStat,a.`user_id` from sst_notice_users as a left join sst_notice as b on a.notice_id = b.id ;
-- select b.*,a.readstat as ReadStat from sst_notice_users as a left join sst_notice as b on a.notice_id = b.id where a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' order by b.create_time desc limit 0,1;
-- select a.*,b.*,c.`nick_name` from sst_notice as a left join sst_notice_users as b on a.id = b.notice_id left join sport_user c on b.`user_id` = c.id where b.user_id='40b41478-1094-49da-b21a-9ab7c7cbb42f';
-- SELECT a.*,b.* FROM sst_notice AS a LEFT JOIN sst_notice_users AS b ON a.id = b.notice_id WHERE b.user_id='40b41478-1094-49da-b21a-9ab7c7cbb42f';
-- select id, title, create_user_id, to_users, create_user_name, content, update_user_id, update_user_name, group_id, group_name, pic, create_time, last_update_time, stat, read_stat, allow_forward from sst_notice WHERE ( id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' and stat = 1 ) ;
SELECT * FROM sst_notice WHERE id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
SELECT a.*,b.readstat FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
-- select count(*) from sst_notice_users WHERE ( id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' and readstat = 1 and stat = 1 );
SELECT COUNT(*) FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
SELECT COUNT(*) FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' AND b.readstat =0;
b4cd50b0-dedb-4a88-befe-16c93a6ca2fb,42980458-0ab3-4b60-aa89-51ca8c2be248,733d9b62-ea84-42cc-91fe-0a7f43a8c209
http://127.0.0.1:8080/admin/competition/match/list.do
http://192.168.1.70:8080/admin/competition/match/list.do
发送短信接口: http://127.0.0.1:8081/home/sms/send.do?mobile=13012817028
insert into sst_album_picture ( id, pic, title, described, create_time, stat ) values ( ?, ?, ?, ?, ?, ? )
BUG:菜单类型为空会报错 list页面会报错 ====>数据问题,不解决
重写上传接口,能同时上传2个文件
var urls_shadow = '';
var imgurl_shadow = '';
$("#upload_shadow").uploadify({
'uploader': '${base}/plugins/uploadify/uploadify.swf',
'script':"${base}/file/upload.htm;jsessionid=${sessionId!}",
'cancelImg': '${base}/plugins/uploadify/cancel.png',
'queueID': 'fileQueue',
'auto': true,
'multi':true,
'buttonText': 'select',
'sizeLimit':1024*1024*10,
//'simUploadLimit' : 1,
//'queueSizeLimit' : 1,
'fileDesc' : 'pictures',
'sizeLimit':1024*1024*10,
'fileExt': '*.gif;*.png;*.jpg',
onComplete: function(event, queueID, fileObj, response, data) {
var dataObj = eval("("+response+")");
if(dataObj.status == 200){
parent.layer.msg('图片上传成功', {
shade: [0.9, '#000'],
icon: 6,
time: 800 //2秒关闭(如果不配置,默认是3秒)
}, function(){
//$("#img_show").attr("src",'${imgurl}'+dataObj.filePath);
var img_id = "img_show_" + queueID;
img_url = '${imgurl_shadow}'+dataObj.filePath;
imgurl_shadow = dataObj.filePath + ",";
$("#img_contain").append("<img id='" + img_id + "' alt='' src='" + img_url + "' style='width:60px;height:60px;'/>");
urls_shadow += imgurl_shadow;
//console.log("@@"+urls);
});
} else {
layer.alert("对不起," + fileObj.name + "上传失败!<br/>请选择小于10M的图片文件", {
shade: [0.9, '#000'],
icon: 3,
time: 3000 //2秒关闭(如果不配置,默认是3秒)
});
}
//console.log("event = " + event+ ";queueID = " + queueID + ";fileObj = " + fileObj+ ";dataObj = " + dataObj+ ";data = " + data);
//console.log(dataObj.filePath);
//$("#thumbnail").val(dataObj.filePath);
//$("#pic").val(urls);
},
onSelect:function(){
},
onError: function(event, queueID, fileObj) {
layer.alert("对不起," + fileObj.name + "上传失败!<br/>请选择小于10M的图片文件", {
shade: [0.9, '#000'],
icon: 3,
time: 3000 //2秒关闭(如果不配置,默认是3秒)
});
}
});
<div class="control-group">
<label class="control-label" for="form-field-2">阴影图</label>
<div class="controls">
<input multiple type="file" id="upload_shadow"/>
</div>
<div class="controls" id="img_shadow">
</div>
</div>
<#if userInfo.gender == 1>
<input class="hide" type="radio" name="gender" id="male" value="1" checked="chekced"/>
<label class="sex male check hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2" />
<label class="sex female hide" for="female">女</label>
<span class="js-sex show-inf">男</span>
<#elseif userInfo.gender == 2>
<input class="hide" type="radio" name="gender" id="male" value="1"/>
<label class="sex male hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2" checked="chekced"/>
<label class="sex female check hide" for="female">女</label>
<span class="js-sex show-inf">女</span>
<#else>
<input class="hide" type="radio" name="gender" id="male" value="1" checked="chekced"/>
<label class="sex male check hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2"/>
<label class="sex female hide" for="female">女</label>
<span class="js-sex show-inf"></span>
</#if>
http://10.10.11.78:8080/dashboard/#/ide/nbyan
<td class='hidden-phone'><#if page.menuType??> <#list
menuTypes as type> <#if page.menuType?eval ==
type.getId()>${type.getCname()}</#if> </#list> <#else> <span
class='label label-warning'>未加入菜单</span> </#if>
</td>
http://127.0.0.1:8080/admin/main.do
http://192.168.1.70:8080/admin/toLogin.do
http://127.0.0.1:8080/admin/toLogin.do
<#list auditTypes as type>
<option <#if (query.picStatus?? && query.picStatus?eval == type.getIndex())>selected="selected"</#if> value="${type.getIndex()}">${type.getName()}</option>
</#list>
上超联赛个人中心BUG
-- select * from `sport_addresses` where id="130300";
SELECT id, parent_id, NAME, LEVEL, create_time, last_update_time, stat FROM sst_addresses WHERE ( LEVEL = 1 AND parent_id = "130300" AND stat = 1 ) ;
SELECT id, parent_id, NAME, LEVEL, create_time, last_update_time, stat FROM sst_addresses WHERE ( LEVEL = 2 AND parent_id = "130300" AND stat = 1 ) ;
[INFO ][2016-04-08 09:47:37,951] - slave
[DEBUG][2016-04-08 09:47:37,954] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,954] - ==> Preparing: select id, name, icon, province, city, area, address, summary, contacts, mobile, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team where id = ?
[DEBUG][2016-04-08 09:47:37,955] - ==> Parameters: 0bc20f4d-8028-4565-96d9-eedfaeebed82(String)
[DEBUG][2016-04-08 09:47:37,958] - <== Total: 1
[INFO ][2016-04-08 09:47:37,961] - slave
[DEBUG][2016-04-08 09:47:37,964] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,965] - ==> Preparing: select id, team_id, team_name, year, game_name, result, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team_result WHERE ( team_id = ? and stat = ? )
[DEBUG][2016-04-08 09:47:37,965] - ==> Parameters: 0bc20f4d-8028-4565-96d9-eedfaeebed82(String), 1(Integer)
[DEBUG][2016-04-08 09:47:37,967] - <== Total: 0
[INFO ][2016-04-08 09:47:37,971] - slave
[DEBUG][2016-04-08 09:47:37,975] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,976] - ==> Preparing: select id, name, icon, province, city, area, address, summary, contacts, mobile, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team where id = ?
[DEBUG][2016-04-08 09:47:37,976] - ==> Parameters: cdad29c0-cd4f-4871-94f4-9ee00b6fc83f(String)
[DEBUG][2016-04-08 09:47:37,979] - <== Total: 1
<img id="img_show" alt="" src="\upload\20160408\67f596e998f8498489c3fc46a7c3fc42.gif" style="width:60px;height:60px;">
http://127.0.0.1:8080/admin/user/findUserInfoView.do?pId=3
findUserInfoView
SELECT a.id, b.id AS userId,a.name, a.age, a.card_no AS cardNo, a.mobile, a.school, a.student_no AS studentNo, a.photo,a.create_time AS createTime,a.last_update_time AS lastUpdateTime, a.stat,b.nick_name AS nickName FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 LIMIT 0, 10;
SELECT COUNT(*) FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 ;`sst_notice_users``sst_notice_users`
gender //姓别(1:男;2:女)
SELECT a.id, b.id AS userId,a.name, a.age, a.card_no AS cardNo, a.mobile, a.school, a.student_no AS studentNo, a.photo,a.create_time AS createTime,a.last_update_time AS lastUpdateTime, a.stat,b.nick_name AS nickName FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 ;
<li id="userId_chzn_o_1" class="active-result" style="">juju_q5736</li>
<li id="userId_chzn_o_2" class="active-result" style="">rt37555557</li>
<li id="userId_chzn_o_4" class="active-result" style="">11111112</li>
<li id="userId_chzn_o_7" class="active-result" style="">juju_x2392</li>
<li id="userId_chzn_o_8" class="active-result" style="">王翔</li>
<li id="userId_chzn_o_9" class="active-result" style="">测试</li>
<li id="userId_chzn_o_10" class="active-result" style="">juju_t9258</li>
<li id="userId_chzn_o_12" class="active-result result-selected" style="">ken222</li>
<li id="userId_chzn_o_15" class="active-result" style="">zgy</li>
<li id="userId_chzn_o_97" class="active-result" style="">Mr</li>
<li id="userId_chzn_o_98" class="active-result" style="">沐风</li>
<li id="userId_chzn_o_99" class="active-result" style="">111</li>
<li id="userId_chzn_o_100" class="active-result" style="">8111</li>
<li id="userId_chzn_o_101" class="active-result" style="">asdsad</li> 13382052252
后台信息校验-- 身份证,年龄,非空, 如:用户赛事信息模块
usercontroll ctrl + l 534
ALTER TABLE sport_user ADD `birthday` varchar(10) DEFAULT NULL COMMENT '生日';
后台球员列表BUG
http://www.jujucatering.com:8080/index.htm#slide-3
http://www.jujucatering.com:5050/admin/menu/findPage.do?pId=300
http://127.0.0.1:8082/index.htm?mId=4c8d507e-de2b-41cc-9667-e35e95914bb4
http://192.168.1.70:8080/admin/main.do
ALTER TABLE sst_album_picture ADD `order_no` int(4) DEFAULT NULL COMMENT '照片排序';
按教练,领队,队长进行排序
ALTER TABLE sst_home_menu ADD `is_show` int(4) DEFAULT '1' COMMENT '首页是否显示(0:不显示;1:显示)',
400 622 6332 3308642881
mvn deploy -DaltDeploymentRepository=ken-mvn-repo::default::file:E:/Maven
市教委 --> 区教委 --> 学校
DTO 加注解@JsonIgnoreProperties
private Boolean dishes;???? 布尔型??
写代码,是犯罪. 找bug,是破案- -..
-- select id, committee_id, school_name, mobile_no, address, longitude, latitude, level, province, city, area, create_time, last_update_time, stat from t_edu_school WHERE ( stat = 1 ) order by create_time DESC
-- select count(*) from t_pro_wares WHERE ( id = '03438834-bf88-4224-b764-d60effa5348c' and dishes = true and stat = 1 );
SELECT * FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423';
t_edu_school t_pro_packages t_pro_dishes
-- select id, committee_id, school_name, mobile_no, address, longitude, latitude, level, province, city, area, create_time, last_update_time, stat from t_edu_school WHERE ( stat = 1 ) order by create_time DESC
-- select count(*) from t_pro_wares WHERE ( id = '03438834-bf88-4224-b764-d60effa5348c' and dishes = true and stat = 1 );
SELECT a.id,a.school_name AS schoolName,a.`school_thum` AS schoolThum, a.`mobile_no` mobile_no AS mobileNo,
b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase,
d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` LEFT JOIN t_pro_wares d ON c.wares_id = d.id
WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1;
接口列表:
学校列表(需要搜索功能):
http://127.0.0.1:8091/school/findSchoolList.do
http://127.0.0.1:8091/school/findSchoolList.do?pageSize=10&currPage=1 不传pageSize则查询所有
供应商列表(需要搜索功能):
http://127.0.0.1:8091/supplier/findSupplierList
http://127.0.0.1:8091/supplier/findSupplierList?pageSize=5&currPage=1
http://127.0.0.1:8091/supplier/findSupplierList?pageSize=5&currPage=1&id=76cca569-427a-412b-9c41-87e8393ad783 传id
上海市区县列表 :
http://127.0.0.1:8091/area/findArea
学校信息:根据学校id查学校信息(需要带出当天全部年级午餐菜单) :
127.0.0.1:8091/school/findSchoolDetialList/01284a57-6972-4e96-aa58-2166e3cf8f55.do @RequestMapping("/findSchoolDetialList/{id}")
食品列表:根据供应商id查食品列表
原料列表:根据供应商id查原料列表
http://127.0.0.1:8091/supplier/findSupplierWares?pageSize=5&currPage=1
供应商资质:根据供应商id查供应商资质信息
http://127.0.0.1:8091/supplier//findSupplierDetail/01284a57-6972-4e96-aa58-2166e3cf8f55.do
学校信息:根据学校id查学校信息(需要带出当天全部年级午餐菜单)
菜单:根据日期、年级和类别(早中晚餐)查菜单
http://127.0.0.1:8091/school/findSchoolDetialList/000d804f-ffdc-432a-b9b7-85307a611423.do
http://127.0.0.1:8091/school/findSchoolDetialList/000d804f-ffdc-432a-b9b7-85307a611423.do?supplyDate=20160518&grade=2&supplyPhase=2&pageSize=5&currPage=1
查询学校各年级接口:
http://127.0.0.1:8091/school/classList.do
DATE_FORMAT(b.supply_date, 'yyyy-MM-dd HH:mm:ss')
SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` LEFT JOIN t_pro_wares d ON c.wares_id = d.id WHERE
a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND b.supply_date = '20160518' AND b.grade = 2 AND b.supply_phase = 2 ORDER BY a.create_time DESC LIMIT 0, 5 ;
SELECT DATE_FORMAT('2016-05-17 12:14:32', '%Y%m%d') FROM t_pro_packages;
批次 台账
查询资讯信息
http://127.0.0.1:8091/information/findInformationList.do&type=1
http://127.0.0.1:8091/information/findInformationDetial/1111111111.do
SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='bf734a59-1e59-11e6-be68-005056a5ed30' AND a.`stat` = 1 AND b.`stat` = 1;
-- SELECT UUID();
EduTaskExMapper 返回的字段多了(可以适当减少)
测试 task模块
http://127.0.0.1:8091/task/findReceiveList/62c173ea-1e59-11e6-be68-005056a5ed30.do
http://127.0.0.1:8091/committee/findCommitteeList.do
SELECT a.task_id AS taskId,a.readstat, b.id AS userId,b.name,b.user_image AS userImage FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.receive_id = b.id WHERE a.task_id='62c173ea-1e59-11e6-be68-005056a5ed30' AND a.stat = 1 AND b.stat = 1;
http://127.0.0.1:8091/task/findSendListById/jamaaaaaaaaa.do?pageSize=5&currPage=1
http://127.0.0.1:8091/task/upadteTask/62c173ea-1e59-11e6-be68-005056a5ed30/bf734a59-1e59-11e6-be68-005056a5ed30.do
http://127.0.0.1:8091/task/findReceiveList/62c173ea-1e59-11e6-be68-005056a5ed30.do?pageSize=5&currPage=1
APP测试环境: http://192.168.1.246:8080/task/findSendListById/jamaaaaaaaaa.do?pageSize=5&currPage=1
com.ssic.education.common.mapper.ProDishesExMapper
http://127.0.0.1:8091/task/sendTask.do?receiveId=111,222,
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed30/0.do?pageSize=5&currPage=1
通知: 根据用户当前id判断当前是那个用户接口(市教委;区教委;学校)
http://127.0.0.1:8091/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423
http://192.168.1.246/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423
http://192.168.1.246/committee//findCommitteeList.do
http://127.0.0.1:8092/pro/packages/detail.htm?id=b57704bf-34f0-4a4b-add6-947609e52b2b
http://127.0.0.1:8091/school/searchPackages.do?customerId=b57704bf-34f0-4a4b-add6-947609e52b2b
-- SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark FROM t_edu_school a
-- LEFT JOIN t_pro_packages b ON a.id = b.customer_id
-- LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
-- LEFT JOIN t_pro_wares d ON c.wares_id = d.id
-- WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 ORDER BY a.create_time desc
-- SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
-- FROM t_edu_school a
-- LEFT JOIN t_pro_packages b ON a.id = b.customer_id
-- LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
-- LEFT JOIN t_pro_wares d ON c.wares_id = d.id
-- WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND DATE_FORMAT(now() , '%Y%m%d') = 20160526 ORDER BY a.create_time desc LIMIT 0, 10;
-- select DATE_FORMAT(NOW() , '%Y%m%d') from dual;
SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
FROM t_edu_school a
LEFT JOIN t_pro_packages b ON a.id = b.customer_id
LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
LEFT JOIN t_pro_wares d ON c.wares_id = d.id
WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND DATE_FORMAT(b.supply_date, '%Y%m%d') = 20160525 ORDER BY a.create_time DESC LIMIT 0, 10;
http://127.0.0.1:8091/school/searchPackages.do?customerId=b57704bf-34f0-4a4b-add6-947609e52b2b&pageSize=5&currPage=1
http://127.0.0.1:8091/school/searchPackages.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1
/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423&customerId=b57704bf-34f0-4a4b-add6-947609e52b2b
修改接口:通知已读未读; 接收者名字;
发送通知选人要查出当前用户类型(市教委,区教委还是学校) 一个教委账号可以2个人登录
套餐类表接口修改
create_id
create_name
192.168.1.246/task/sendTask.do?receiveId=111,222,&createId=bf734a59-1e59-11e6-be68-005056a5ed31&title=aa&pic=bb&summary=cc&content=dd&createName=ee
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/findSendListById?bf734a59-1e59-11e6-be68-005056a5ed31.do
Question:
任务分页可能有问题:默认按10分页?
通知详情已读未读
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do&readstat=1
http://192.168.1.246/committee/findCommitteeList.do?pageSize=20&currPage=1
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do?readstat=2
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/sendTask.do?receiveId=111,222,&createId=bf734a59-1e59-11e6-be68-005056a5ed31&title=aa&pic=bb&summary=cc&content=dd&createName=ee
http://192.168.1.246/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1
http://192.168.1.246/committee//findCommitteeList.do
@Override
public EduUsersDto selectUserType(String id) {
EduUsersDto dto = eduUsersDao.selectUserType(id);
if(dto.getSourceType() == 1){
dto.setUserType(0);
}
return dto;
}
http://127.0.0.1:8091/task/findTaskByPara.do?id=06028160-f701-42d4-9923-d2a7c37ad61d&readstat=1
http://192.168.1.246/task/upadteTask/38202604-c5eb-424a-bc17-87ee4a2de55b1.do
SELECT b.`name`,a.`task_id`,a.`readstat`, FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.`receive_id` = b.id WHERE a.`task_id`='38202604-c5eb-424a-bc17-87ee4a2de55b';
SELECT * FROM t_edu_task_receive;
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1
BUG: 1.任务content不显示 可能生成POJO content问题
2.枚举返回Map不好接收的问题
3.任务接收区分用户
4.选择学校level要改下 区教委选择学校
http://127.0.0.1:8091/task/chooseReceive.do?id='0'
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
http://127.0.0.1:8091/school/chooseSchool.do?isPage=1
http://127.0.0.1:8091/committee/findCommitteeListNoPage.do?type=2
http://192.168.1.36/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
127.0.0.1:8091/task/chooseReceive.do?id=1&level=1&pageSize=2&currPage=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=c6b93e05-7786-4420-ad56-beba03ade17c&taskType=1 (老严数据)
http://127.0.0.1:8091/school/chooseSchool.do?level={2}&committeeId=1ed24882-5fd2-4e22-aacc-51be0fd6bbe2&pageSize=10&currPage=1&type=0&isPage=1
-- SELECT distinct b.`name`,a.`task_id` as taskId, a.`readstat` FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.receive_id = b.id
-- WHERE a.`task_id`= '25d5ec84-d7a9-41f5-8e01-5038125d73c1' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time DESC
SELECT id, title, pic, summary, create_id, create_name, create_time, last_update_time, stat FROM t_edu_task WHERE ( id = '25d5ec84-d7a9-41f5-8e01-5038125d73c1' AND stat = 1 ) ;
http://127.0.0.1:8091/task/findTaskByPara.do?id=c6b93e05-7786-4420-ad56-beba03ade17c&taskType=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2,&createId=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2,&createId=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=21147150-fa11-4c90-9784-5813cc58524d&taskType=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90+崇明县教委,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2+吴淞区教委,&createId=1
127.0.0.1:8091/task/sendTask.do?receiveIdsNames=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90;崇明县教委,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2;吴淞区教委,&sendIdsNames=1;市教委&title=测试&summary=测试摘要&content=测试内容&pic=jam.jpg
http://127.0.0.1:8091/task/findTaskByPara.do?id=accf550f-8081-4e44-a2d4-6f8f4aaf6c69&taskType=1
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=0&level=1&pageSize=2&currPage=1
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=1&level=1&committeeId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90
SELECT id, task_id, task_title, readstat, receive_id, receive_name, send_name, school_id, create_time, last_update_time, stat FROM t_edu_task_receive
WHERE ( id = 'accf550f-8081-4e44-a2d4-6f8f4aaf6c69' AND stat = 1 ) ;
-- select id, title, pic, summary, create_id, create_name, create_time, last_update_time, stat from t_edu_task WHERE ( id = 'c6b93e05-7786-4420-ad56-beba03ade17c' and stat = 1 ) ;
SELECT id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, LEVEL, AREA, city, province, supplier_id, reviewed, create_time, last_update_time, stat FROM t_edu_school
WHERE ( LEVEL LIKE ? AND committee_id = ? AND stat = ? ) ORDER BY create_time DESC LIMIT 0,10;
http://127.0.0.1:8091/task/upadteTask.do?taskId=4bd0c0c1-0a17-400e-b4fe-80d7c1119c0c&receiveId=afcd3e81-8a1e-4bc8-8408-ecb511fa7f55
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
显示图片拼路径:
String realPath = PropertiesUtils.getProperty("upload.look.url");
for (ProLicense proLicense : ProLicenseList) {
proLicense.setLicPic(realPath + proLicense.getLicPic());
}
公告存多张图片的情况:数据库加大字段(200-> 500),用分号隔开 InformationServiceImpl
List<EduInformationDto> informationDtoList = BeanUtils.createBeanListByTarget(list, EduInformationDto.class);
String realPath = PropertiesUtils.getProperty("upload.look.url"); //拼接图片显示路径
for (EduInformationDto dto : informationDtoList) {
if(StringUtils.isNotEmpty(dto.getPic())){
String pics[] = dto.getPic().split(";");
if(pics.length >0){
for(String pic: pics){
pic = realPath + pic;
}
dto.setPics(pics); //pics用于存放多张图片的路径
}
}
}
http://127.0.0.1:8091/school/chooseSchool.do?level=1&committeeId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90&type=1&isPage=1&pageSize=10&currPage=1
市教委列表里面去掉上海市教委
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&scholName=鹏鹏
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=0&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&scholName=鹏鹏
http://192.168.1.36/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=2&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&schoolName=上海
String realPath = PropertiesUtils.getProperty("upload.look.url");
//String realPath = "127.0.0.1:8091"; //拼接图片显示路径
for (EduInformationDto dto : informationDtoList) {
if(StringUtils.isNotEmpty(dto.getPic())){
String pics[] = dto.getPic().split(";");
if(pics.length >0){
for(int i =0 ;i <pics.length ;i++){
pics[i] = realPath + pics[i];
}
dto.setPics(pics); //pics用于存放多张图片的路径
}
}
}
Information得重写. (权限问题)
http://192.168.1.36 开发环境 数据库:192.168.1.81 new_edu
http://192.168.1.246 测试环境 数据库:192.168.1.81 test_edu
datasource.url=jdbc:mysql://192.168.1.81:3306/new_edu?characterEncoding=utf-8&useUnicode=true
datasource.username=edu_user
datasource.password=123456
dev_edu数据库作为研发数据库,new_edu没删除,但已废弃。
datasource.username=edu_admin为管理员用户
if(StringUtils.isNotBlank(dto.getSupplyDateStr())){
System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
System.out.println(DateUtils.parse(dto.getSupplyDateStr(), DateUtils.YMD_DASH));
criteria.andSupplyDateEqualTo(DateUtils.parse(dto.getSupplyDateStr(), DateUtils.YMD_DASH)); //套餐日期
}else{
criteria.andSupplyDateEqualTo(DateUtils.parse(DateUtils.format(new Date(), DateUtils.YMD_DASH), DateUtils.YMD_DASH)); //不传则默认查询当天
}
http://127.0.0.1:8091/information/findInformationList.do?type=2&title=测试&pageSize=5&currPage=1&sourceId=1
http://127.0.0.1:8091/information/findInformationList.do?pageSize=5&currPage=1&sourceId=1
http://127.0.0.1:8091/information/findInformationList.do?pageSize=5&currPage=1&sourceType=0&sourceId=000d804f-ffdc-432a-b9b7-85307a611423&title=54
http://localhost:8091/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1&type=1&supplyDateStr=2016-06-03
光明食品有限公司
sst-admin AdminLogServiceImpl
provider 测试环境: http://192.168.1.242/index.jsp
http://localhost:8091/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1&type=1
packageId:9243f13e-8764-4c7b-ba3c-90b1ed1029e8
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat
-- from t_edu_school WHERE ( level like '%{2}%' and committee_id = '1ed24882-5fd2-4e22-aacc-51be0fd6bbe2' and stat = 1) order by create_time DESC limit 0,10 ;
-- SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
-- FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time ;
-- SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
-- FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time ;
-- SELECT * FROM t_edu_task_receive WHERE receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND stat = 1 ;
-- select id, package_name, supplier_id, type, customer_type, customer_id, grade, supply_date, supply_phase, create_time, last_update_time, stat from t_pro_packages
-- WHERE ( customer_id = '000d804f-ffdc-432a-b9b7-85307a611423' and type = 1 and supply_date = 2016-06-01 and stat = 1 ) order by stat desc,create_time desc limit 0,5
-- select id, title, pic, summary, content, type, create_admin_id, create_admin_name, create_source_id, create_time, last_update_time, stat from t_edu_information WHERE ( stat = 1 ) order by create_time DESC limit 0,20 ;
-- select count(*) from t_edu_information WHERE ( stat = 1 ) ;
-- select id, package_name, supplier_id, type, customer_type, customer_id, grade, supply_date, supply_phase, create_time, last_update_time, stat
-- from t_pro_packages WHERE ( customer_id = 'da2953b6-6bc0-4f67-aec1-549440efad77' and supply_date = 20160601 and stat = 1 ) order by stat desc,create_time desc limit 0,10 ;
-- select count(*) from t_pro_packages WHERE ( customer_id = 'da2953b6-6bc0-4f67-aec1-549440efad77' and stat = 1) ;
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat from t_edu_school where id = 'da2953b6-6bc0-4f67-aec1-549440efad77';
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat
-- from t_edu_school WHERE ( level like %(null)% and committee_id = null and stat = ? ) order by create_time DESC limit 0,10 ;
SELECT id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, LEVEL, AREA, city, province, supplier_id, reviewed, create_time, last_update_time, stat FROM t_edu_school WHERE ( stat = 1 ) ORDER BY create_time DESC LIMIT 0,10 ;
http://localhost:8091/school/school.do?customerId=da2953b6-6bc0-4f67-aec1-549440efad77&supplyDateStr=2016-06-01&type=0
问题:评分的问题.web有值,app为空.
http://127.0.0.1:8091/information/findInformationDetial/9f4e5f79ef234960a1727f5c6fd73284.do
127.0.0.1/index.htm http://127.0.0.1:8080
http://192.168.1.246/school/chooseSchool.do?committeeId=2dab54b2-26fa-11e6-b1e8-005056a5ed30&currPage=1&pageSize=10&sourceType=0&type=0&scholName=上海
搜索maven log4j查jar包
测试环境:http://192.168.1.240/info/release.htm 对应 test数据库
http://192.168.1.246/upload/20160606/e89e91cade2444eca4eeac535e155aeb.jpg
http://192.168.1.240/upload/20160606/ebf492cc9ef5477a8c80ab4cff8c8898.jpg
http://192.168.1.246/school/school.do?customerId=f751e20d-8579-4afe-b3da-89ba41642f59&supplyDateStr=2016-06-03&type=0
http://127.0.0.1:8092/info/release.htm
http://www.jujusports.cn/upload/20160606/7ddcd7b6bec74bee96a71579f9ab9991.gif
mark加阅读时间.
umeditor.config.js
要把generator抽象出来
<p><img src="http://192.168.1.240/info/upload/20160607/28481465296453849.jpg" _src="http://192.168.1.240/info/upload/20160607/28481465296453849.jpg"/>UUUUUUUUUU</p> 图片是249
content没值,pojo要重新生成 --解决
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=1&level=-1&committeeId=-1
127.0.0.1:8091/task/sendTask.do?receiveIdsNames=e6ee5101-2c5b-11e6-b1e8-005056a5ed30;崇明县教委,e6ee4acf-2c5b-11e6-b1e8-005056a5ed30;黄浦区教委,&sendIdsNames=-1;上海市教委&title=测试666&summary=测试摘要666&content=测试内容666&pic=jam.jpg
@AccessRequired 登录注销不加,其他controll里的方法都加这个注解
执行顺序:(优先级从高到低。)静态代码块>mian方法>构造代码块>构造方法。
http://localhost:8091/school/school.do?customerId=57ca2418-b3b8-4991-af28-5d89a8c6f585&supplyDateStr=2016-06-01&type=0
1374782599-481994108-157545031-3186668011-1075902644
74d685aa-e610-4682-a2e1-0b71e543bbea
SELECT * FROM t_edu_task_receive WHERE receive_id = 'e6ee4c4f-2c5b-11e6-b1e8-005056a5ed30' AND readstat = 0 AND stat = 1;
127.0.0.1:8091/task/findReadAccount/e6ee4c4f-2c5b-11e6-b1e8-005056a5ed30.do
接口加注解:@AccessRequired
樱花日语:
肇嘉浜路1033号 徐家汇国际大厦16楼
上海黄浦区福州路666号金陵海欣大厦17楼
中庸,无欲无求
szys887 3366063869 107840247 1524691238 750260846
昂刺鱼 黄吖丁头 青旅
mongod.exe --bind_ip yourIPadress --logpath "D:\data\dbConf\mongodb.log" --logappend --dbpath "D:\data\db" --port 0903 --serviceName "jam mongod" --serviceDisplayName "ken mongod" --install
http://192.168.1.246/information/findInformationList.do?type=1&sourceType=2&sourceId=e6ee4f43-2c5b-11e6-b1e8-005056a5ed30&pageSize=20&currPage=1&edutk=1731c594e43bd0cab82669ea94ded2d0
Post 请求 Body里面 ; get请求 url传值(其中一种)
http://127.0.0.1:8091/school/chooseSchool.do?type=1&sourceType=2&committeeId=e6ee4f43-2c5b-11e6-b1e8-005056a5ed30
工行卡管理63215141 对应区卡点: 瑞京二路11号 (021)64733992,(021)64733449 9点到5点上班
营业时间:对公:周一周二周三周四周五 09:00-12:00 13:30-16:30 个人:周一周二周三周四周五周六周日 09:00-12:00 12:00-17:00
http://longtugame.com/download/gamedown
http://www.pgzs.com/
tianfang/tianfang-common/src/main/java/com/tianfang/common/alipay/config/AlipayConfig.java
有纸,太薄,一用,就破;纸破,手污,虽洗,难净,每食,顿思!遂批,太差,谁料,乃是,己家,无奈,秒删!
jquery post时content-type的几种取值
SELECT a.id id,a.create_time createTime,a.descript descript,a.leaf leaf,a.left_menu leftMenu,a.menu_id menuId,a.menu_title menuTitle, a.parent_id parentId,a.last_update_time updateTime,a.stat stat,a.menu_icon menuIcon,a.menu_url menuUrl,a.orderby orderby FROM sport_menu a
LEFT JOIN sport_authorization b ON a.id = b.menu_id WHERE a.stat = 1 AND b.stat = 1 AND b.admin_id = '67e798f3-effe-407e-a625-d09b6a306041' ORDER BY a.orderby ASC ;
查询数据库同步SQL:SHOW STATUS LIKE "%wsrep%";
jujusport 3个数据库:224 225 226
<!--freemarker指定模板文件目录-->spring-template.xml
<property name="templateLoaderPath" value="/WEB-INF/view"/>
<#if formationMap ??>
<#list map?keys as key> <!-- <option value="${(itemKey)!}">${playerPosition[itemKey]}</option> -->
<h4 class="school"><span>${(key)!}</span><br>${map.get(key).getCourseTypeCname()}</h4>
<!-- <#list map.get(key) as page>
<ul>
<li><img src="${(page.courseImg)!}" border="0"><p>${(page.courseCname)!}<br>${(page.courseEname)!}<a href="###">详情</a></p></li>
</ul>
</#list> -->
</#list>
</#if>
[OnlineTeachCourseDto(id=0c47a6f0-2b43-48cf-bf2d-9f83b7875bc1, courseCname=小学生训练营, courseEname=little student, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=\upload\20160120\ec70c0ca3ccb407db18d4a808ba5e1b9.jpg, lastUpdateTime=Wed Jan 20 15:26:32 CST 2016, createTime=Wed Jan 20 10:07:52 CST 2016, stat=1)=[OnlineTeachCourseDto(id=0c47a6f0-2b43-48cf-bf2d-9f83b7875bc1, courseCname=小学生训练营, courseEname=little student, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=\upload\20160120\ec70c0ca3ccb407db18d4a808ba5e1b9.jpg, lastUpdateTime=Wed Jan 20 15:26:32 CST 2016, createTime=Wed Jan 20 10:07:52 CST 2016, stat=1)], OnlineTeachCourseDto(id=1b9c3c3f-d527-41ae-93fd-60f8ecbb236a, courseCname=中学生训练营, courseEname=middle student, courseType=2, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=中学培训课程 , courseImg=\upload\20160120\5d603d60aa9744dfab66d92dbe14d8b1.jpg, lastUpdateTime=Tue Jul 12 08:59:34 CST 2016, createTime=Wed Jan 20 10:07:34 CST 2016, stat=1)=[OnlineTeachCourseDto(id=1b9c3c3f-d527-41ae-93fd-60f8ecbb236a, courseCname=中学生训练营, courseEname=middle student, courseType=2, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=中学培训课程 , courseImg=\upload\20160120\5d603d60aa9744dfab66d92dbe14d8b1.jpg, lastUpdateTime=Tue Jul 12 08:59:34 CST 2016, createTime=Wed Jan 20 10:07:34 CST 2016, stat=1)], OnlineTeachCourseDto(id=2e6cb574-f8da-471d-8702-2349aa71c55b, courseCname=22, courseEname=, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=, lastUpdateTime=null, createTime=Mon Jul 11 17:58:41 CST 2016, stat=1)=[OnlineTeachCourseDto(id=2e6cb574-f8da-471d-8702-2349aa71c55b, courseCname=22, courseEname=, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=, lastUpdateTime=null, createTime=Mon Jul 11 17:58:41 CST 2016, stat=1)], OnlineTeachCourseDto(id=356b1081-0674-465b-a9d7-941952d18093, courseCname=大学训练营, courseEname=big school, courseType=2, courseTypeCname=中学生, courseTypeEname=middle, courseTypeName=中学培训课程 , courseImg=, lastUpdateTime=Mon Jul 11 17:51:44 CST 2016, createTime=Mon Jul 11 17:34:27 CST 2016, stat=1)=[OnlineTeachCourseDto(id=356b1081-0674-465b-a9d7-941952d18093, courseCname=大学训练营, courseEname=big school, courseType=2, courseTypeCname=中学生, courseTypeEname=middle, courseTypeName=中学培训课程 , courseImg=, lastUpdateTime=Mon Jul 11 17:51:44 CST 2016, createTime=Mon Jul 11 17:34:27 CST 2016, stat=1)], OnlineTeachCourseDto(id=b4dafd91-271f-426a-b1b1-609aaeca9de4, courseCname=幼儿园预备营, courseEname=hahahaha, courseType=3, courseTypeCname=高中生, courseTypeEname=high, courseTypeName=高中培训课程, courseImg=\upload\20160711\acbe5a7845014263bc4ee9384bf9b6e8.jpg, lastUpdateTime=Mon Jul 11 17:51:36 CST 2016, createTime=Mon Jul 11 17:35:33 CST 2016, stat=1)=[OnlineTeachCourseDto(id=b4dafd91-271f-426a-b1b1-609aaeca9de4, courseCname=幼儿园预备营, courseEname=hahahaha, courseType=3, courseTypeCname=高中生, courseTypeEname=high, courseTypeName=高中培训课程, courseImg=\upload\20160711\acbe5a7845014263bc4ee9384bf9b6e8.jpg, lastUpdateTime=Mon Jul 11 17:51:36 CST 2016, createTime=Mon Jul 11 17:35:33 CST 2016, stat=1)]]
课程内容名不能重复
建议单表查询:List<OnlineTeachCourseDto> list = iOnTeachCourseService.findCoursesAndType(new OnlineTeachCourseDto());
-- select md5(123456) ;
UPDATE sport_user SET PASSWORD = 'e10adc3949ba59abbe56e057f20f883e';
400错误一般是参数异常=> dto和传入参数类型不匹配;
http://127.0.0.1/index.htm
http://127.0.0.1:8081/admin/main.do
SELECT a.id, a.course_cname AS courseCname, a.course_ename AS courseEname, a.course_type_id AS courseTypeId, a.course_img AS courseImg, a.last_update_time AS lastUpdateTime, a.create_time AS createTime, a.stat , b.`course_type_cname` AS courseTypeCname,b.`course_type_ename` AS courseTypeEname ,a.orderby AS courseOrder, b.orderby AS typeOrder FROM sport_online_teach_course a LEFT JOIN sport_online_teach_coursetype b ON a.course_type_id = b.id
WHERE a.stat = 1 AND a.is_release = 1 ORDER BY b.orderby ASC, a.orderby ASC, a.create_time DESC
员工管理表(后台用户表)t_odr_employee
Question:年龄,身高,体重应该加个排序(目前按创建时间排列)
先做支付后台 太湖1650032324
测试环境地址:http://192.168.1.88:8080/admin/
投诉建议表的生成. (投诉建议列表按时间查询)
从网上看大神们按win7,然后自己用格过的u盘(3个都不行。。),把iso文件放在mac,用bootcamp安装的时候 三项都选了。但每次下载完windows支持文件后,就提示找不到安装器光盘。。请问大神们这是怎么回事?
<img style="width: 45px; height: 45px;" src="http://127.0.0.1/\upload\20160727\ba60f15520c9461e87a14e65eee0838d.jpg">
测试IP: 192.168.1.88:8080/admin/main.do admin/admin
http://127.0.0.1:8092/login.htm
SELECT DISTINCT supplier_id,supplier_name FROM t_pro_warning;
findKing.com
-- select * from t_pro_supplier where supplier_type = 1;
-- SELECT * FROM t_pro_license WHERE stat = 1;
-- select a.`cer_source`,b.supplier_name,a.* from t_pro_license a left join t_pro_supplier b on a.`relation_id` = b.id where a.`cer_source` in(0,1) AND b.supplier_type = 1 and a.`stat` = 1 AND b.`stat` = 1 AND b.`reviewed` = 1 ;
SELECT a.id, a.school_id AS schoolId, a.supplier_id AS supplierId, a.school_name AS schoolName,a.address,a.contact,a.mobile_no AS mobileNo,a.project_name AS projectName,a.manager_id managerId,a.manager_name AS managerName,a.manager_no AS managerNo,a.remark,a.manager_status AS managerStatus,a.create_time AS createTime,
a.updater,a.last_update_time,a.stat
FROM t_edu_school_supplier a INNER JOIN t_edu_school b ON a.school_id = b.id WHERE b.committee_id='e6ee4bd5-2c5b-11e6-b1e8-005056a5ed30' AND a.stat = 1 AND b.stat = 1;
t_edu_license
SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName,
a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber
FROM t_pro_wares a LEFT JOIN t_pro_dishes_ware b ON a.id = b.ware_id LEFT JOIN t_pro_dishes c ON b.dishes_id = c.id WHERE c.id={} AND a.stat1 = 1 AND b.stat = 1 AND c.stat = 1;
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode,
a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime,
a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId
FROM t_edu_school_supplier a
LEFT JOIN t_pro_supplier b
ON a.supplier_id = b.id
WHERE a.school_id =#{sourceId} AND b.supplier_type = 1 AND a.stat= 1 AND b.stat=1
http://127.0.0.1:8097/main.do
http://127.0.0.1:8094/admin/login.jsp
<#if warningMap ??>
<ul>
<#list warningMap?keys as key>
<li><a href="/info/warningDetail/${key}.htm">${warningMap.get(key)} <!-- <span> ${warningDto.createTime?string("yyyy-MM-dd")}</span> --></a></li>
</#list>
</ul>
<a class="more" href="/info/warningList.htm">更多信息</a>
<#else>
<ul style="text-align: center; line-height: 240px;">
<span>暂无数据</span>
</ul>
</#if>
<!-- <span class="date">${(${warningMap[key].createTime?string('yyyy-MM-dd'))!}</span> -->
加字段:t_pro_license 表加written_name
t_pro_warning 表加written_name ,lic_pic ,lic_type
[email protected]:zhuyangxing/Lunch_platform.git 给到的页面
index 首页√
certificate_warning_detail 预警详情√
register_a √注册页
register_b √
register_c √
register_d √
building 监控提示页√
user_center 关联单位页面 √
add_relation 无关联单位页面√
dish_detail √ 菜详情页(后台还没有)
supplier_detail √ 原料供应商详情页
entrust_company √ 委托经营单位详情(即团餐公司))
materia_detail √ 原料详情页
distribution_detail 批次信息(带地图)
safe_track ☆
track_a √ 追溯的四个页面
track_b √
track_c √
track_d √
forgot.html有改动
<a href="##">监控</a>
http://127.0.0.1:8092/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222&supplyDateStr=2016-08-10
http://127.0.0.1:8092/trace/traceWares?dishesId=122d0ee4-47e0-458b-9d1e-17376db56262
/trace/showDishes?schoolId=57ca2418-b3b8-4991-af28-5d89a822222&supplyDateStr=2016-08-10
用户表 :唐四小学 id=a673aebc-51b0-4da1-9a9f-5d98c0155e33 sourceId=a673aebc-51b0-4da1-9a9f-5d98c0155e33
-- select id, title, warn_time, lose_time, remain_time, license_id, license, lic_type, lic_pic, written_name, source_id, supplier_id, supplier_name, read_stat, create_admin_id, create_admin_name, create_time, last_update_time, stat from t_pro_warning WHERE ( supplier_id = 'ffa604cb-cadf-4f0c-91b5-61394b777777' and stat = 1 ) ;
-- SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a right JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id ='94ca8956-36a8-4a4b-b2e6-7bb7e3527de5' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
-- select id, enterprise_name, school_id, lic_no, lic_name, lic_pic, manage_palce, legal_person, creator, create_time, updater, last_update_time, stat from t_edu_license WHERE ( lic_no = '11' and lic_name = '餐饮服务许可证' and stat = 1) ;
-- select id, package_id, name, school_id, class_type_id, supplier_id, image, supply_date, creator, create_time, updater, last_update_time, stat from t_pro_dishes WHERE ( school_id = '57ca2418-b3b8-4991-af28-5d89a822222' and supply_date between 2016-08-10 00:00:00 and 2016-08-10 23:59:59 and stat = 1) ;
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a RIGHT JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id = '94ca8956-36a8-4a4b-b2e6-7bb7e3527de5' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
7d3b5a19-b4d7-4cd0-a648-f51e87515220
调用百度地图页面: ProLedgerController mv.setViewName("/ledger/distribution_detail");
$('#calendar').fullCalendar({events:[
{
title: '20',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-20'
},
{
title: '21',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-21'
}
]})
events: [
{
title: '20',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-20'
},
{
title: '21',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-21'
},
{
title: '22',
url: 'http://www.baidu.com',
start: '2016-08-22'
}
]
obj_:{
title: '10',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-10'
},
{title: '10',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-10'}
$('#calendar').fullCalendar({
events: function(start, end, callback) {
$.ajax({
url: 'myxmlfeed.php',
dataType: 'xml',
data: {
// our hypothetical feed requires UNIX timestamps
start: Math.round(start.getTime() / 1000),
end: Math.round(end.getTime() / 1000)
},
success: function(doc) {
var events = [];
$(doc).find('event').each(function() {
events.push({
title: $(this).attr('title'),
start: $(this).attr('start') // will be parsed
});
});
callback(events);
}
});
}
});
$('#calendar').fullCalendar({
eventSources: [
{
events: function(start, end, callback) {
// ...
},
color: 'yellow', // an option!
textColor: 'black' // an option!
}
]
});
//前一天
$("#before").on("click", function() {
alert("access1");
debugger;
var supplyDate = "${(dishesDto.supplyDate)!}";
var before = supplyDate.getTime() - 24*60*60*1000;
var after = supplyDate.getTime() + 24*60*60*1000;
var beforeDate = before.getFullYear()+"-" + (before.getMonth()+1) + "-" + before.getDate();
var afterDate = after.getFullYear()+"-" + (after.getMonth()+1) + "-" + after.getDate();
console.log("beforeDate = " + beforeDate +"; afterDate = " + afterDate);
});
/*
alert("access1");
debugger;
//var supplyDate = ${(dishesDto.supplyDate)!};
var supplyDate = $("#supplyDate").val();
var before = supplyDate.getTime() - 24*60*60*1000;
var after = supplyDate.getTime() + 24*60*60*1000;
var beforeDate = before.getFullYear()+"-" + (before.getMonth()+1) + "-" + before.getDate();
var afterDate = after.getFullYear()+"-" + (after.getMonth()+1) + "-" + after.getDate();
console.log("beforeDate = " + beforeDate +"; afterDate = " + afterDate);
*/
学校和团餐公司一一对应 , 学校和原料供应商并非一一对应
根据t_pro_ledger_master里面的 配送日期和配送状态来确定
eduuserDto报错,因为URL 没加.htm
<ul>
<li><label for="">法人信息:</label><span>${supplierDto.corporation!}</span></li>
<li><label for="">联系电话:</label><span>${supplierDto.corporationWay!}</span></li>
<li><label for="">注册时间:</label><span>${supplierDto.regTime!}</span></li>
<li><label for="">注册地址:</label><span>${supplierDto.regAddress!}</span></li>
<li><label for="">企业地址:</label><span>${supplierDto.address!}</span></li>
<li><label for="">三证合一:</label><span>${supplierDto.businessLicense!}<a href="#">图片>></a></span></li>
<li><label for="">食品卫生许可证:</label><span>${supplierDto.foodProduceCode!}<a href="#">图片>></a></span></li>
<li><label for="">运输许可证:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">餐饮服务许可证:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">ISO认证证书:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">其他资质证书:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
</ul>
<#list waresList as dto>
<tr>
<td class="color" > <a href="/trace/waresDetails.htm?waresId=${dto.id!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.waresName!}</a> </td>
<td class="color"> <a href="/trace/supplierDetail.htm?id=${dto.supplierId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.supplierName!}</a> </td>
<td> ${dto.startAddress!} </td>
<td class="color"> <a href="/trace/ledgerDetail.htm?id=${dto.batchId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.batchNo!}</a> </td>
<td> ${(dto.actionDate?string("yyyy-MM-dd"))!}</td>
<td> <span class="track" id="track" data-info="${dto.supplierId!}"
onClick="window.location.href='/trace/traceSupplier.htm?id=${dto.supplierId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${traceMenuDto.supplyDateMenu!}&dishesNameMenu=${traceMenuDto.dishesNameMenu!}&dishesIdMenu=${traceMenuDto.dishesIdMenu!}'">追朔</span> </td>
</tr>
</#list>
-- SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName, a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber,a.wares_supplier AS waresSupplier FROM t_pro_wares a LEFT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 and b.dishes_id = '22A' ORDER BY a.create_time DESC ;
-- SELECT a.* FROM t_pro_wares a RIGHT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 AND b.dishes_id = '22A' ORDER BY a.create_time DESC ;
-- SELECT a.wares_id AS waresId,b.ware_batch_no AS batchNo, b.start_address AS startAddress ,b.action_date as actionDate ,a.supplier_id AS supplierId, a.supplier_name AS supplierName FROM t_pro_ledger a LEFT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 and b.haul_status = 2 and a.wares_id in ( '33aa','33bb' ) ORDER BY a.`create_time` DESC ;
-- SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName, a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber,a.wares_supplier AS waresSupplier FROM t_pro_wares a RIGHT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 and b.dishes_id = 'king005' ORDER BY a.create_time DESC ;
-- SELECT a.wares_id AS waresId,b.ware_batch_no AS batchNo, b.start_address AS startAddress ,b.action_date as actionDate ,a.supplier_id AS supplierId, a.supplier_name AS supplierName FROM t_pro_ledger a LEFT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 and a.wares_id in ( 'king11' , 'king09' ) ORDER BY a.`create_time` DESC ;
-- SELECT a.id, a.master_id AS masterId, a.wares_id AS waresId, a.receiver_id AS receiverId, a.name, a.spce, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.wares_type AS waresType, a.supplier_id AS supplierId, a.supplier_code AS supplierCode, a.supplier_name AS supplierName, a.quantity, a.production_date AS productionDate, a.production_name AS productionName, a.batch_no AS batchNo, a.trace_code AS traceCode, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, b.action_date AS actionDate, b.start_address AS startAddress FROM t_pro_ledger a RIGHT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 and b.stat = 1 AND b.action_date = 2016-08-19 00:00:00.0 AND a.receiver_id = '5475f36a-317c-4f50-a2e6-f06568da7188' AND a.name in ? ORDER BY a.`create_time` DESC
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '0fddcfb2-df17-4fdf-9c28-9309699ab569' and supplier_type = 2 and stat = 1 ) order by create_time desc ;
-- select id, lic_name, written_name, lic_no, lic_type, lic_start_date, lic_end_date, lic_pic, creator, create_time, updater, last_update_time, stat, relation_id, cer_source from t_pro_license WHERE ( relation_id = '728759ec-2b8d-48e3-8560-f822eb759fa7' and lic_type = 1 and cer_source = 0 and stat = 1 );
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a RIGHT JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id = 'd5c7822b-3b0b-4ec4-b304-e9ef702a30be' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
ProductClass 原料枚举类
.nav > ul > li.bar3 > .wrap > ul{padding-left:220px;width:780px}
.nav > ul > li.bar4 > .wrap > ul{padding-left:410px;width:590px}
.nav > ul > li.bar5 > .wrap > ul{padding-left:730px;width:590px}
SELECT a.id, a.lic_name AS licName, a.lic_no AS licNo, a.lic_type AS
licType, a.lic_end_date AS licEndDate, a.lic_pic AS licPic, a.creator,
a.create_time AS createTime, a.updater, a.last_update_time AS
lastUpdateTime, a.stat, a.relation_id AS relationId, a.`cer_source` AS
cerSource,
b.supplier_name AS supplierName
FROM t_pro_license a
LEFT JOIN t_pro_supplier b
ON a.`relation_id` = b.id
WHERE a.`cer_source`
IN(0,1)
AND b.supplier_type = 1
AND b.`reviewed` = 1
AND a.`stat` = 1
AND b.`stat` = 1
insert into t_pro_warning ( id, title, warn_time, lose_time, remain_time, license_id, lic_no, license, lic_type, lic_pic, supplier_id, supplier_name, read_stat, create_admin_name, create_time, last_update_time, stat ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
^^^^^^^^^^^^^^^^^^^^^^^^^^ProWarningDto(id=6fb3ee1c-7f9e-49f3-bf66-8a961bd77d5a, title=null, warnTime=null, loseTime=null, remainTime=13, licenseId=null, license=null, supplierId=null, supplierName=null, sourceId=null, readStat=null, startTime=null, endTime=null, supplierIdList=null, proLicense=null, createAdminId=null, createAdminName=null, createTime=null, lastUpdateTime=Thu Aug 25 13:43:10 CST 2016, stat=null, licPic=null, licType=null, writtenName=null, licNo=null)
LicEndDate=Thu Sep 08 00:00:00 CST 2016;today=Thu Aug 25 13:53:10 CST 2016
/trace/traceCompany.htm?id=6e07cec0-f314-4b11-9f64-4cef6a13b73d&schoolNameMenu=蔷薇小学&supplyDateMenu=2016-08-19&supplierNameMenu=上海多味宝食品有限公司
http://pro.sunshinelunch.com/login.jsp
http://edu.sunshinelunch.com/login.jsp
http://edu.sunshinelunch.com/index.htm
<p><span> 餐饮服务证号:</span> ${(proSupplierDto.foodServiceCode)!}
<#if proSupplierDto.foodServiceCodePic??>
<a class="img_nn" data-value="${(wwwdomain)!}${(proSupplierDto.foodServiceCodePic)!}" href="###" style="color: #fd9f3e;">查看图片>></a>
</#if>
</p>
http://127.0.0.1:8092/user/contactSupplier.htm
http://127.0.0.1:8094/login.jsp
select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '9c2ea73b-bf3b-4224-a039-ffd5ad15e171' and supplier_type = 1 and stat = 1 ) order by create_time desc ;
ALTER TABLE `t_pro_license` ADD `supplier_id` VARCHAR(36) DEFAULT NULL COMMENT '关联的供应商Id';
SELECT DISTINCT(supplier_name) FROM t_pro_warning
SELECT a.supplier_id, a.`supplier_name`,MIN(warn_time) FROM t_pro_warning a GROUP BY a.`supplier_name`;
SELECT COUNT(*) FROM (SELECT a.`supplier_name`,MIN(warn_time) FROM t_pro_warning a GROUP BY a.`supplier_name`) a;
SELECT a.`supplier_id` AS supplierId, a.`supplier_name` AS supplierName, MIN(warn_time) AS warnTime FROM t_pro_warning a WHERE a.stat = 1 GROUP BY a.`supplier_name` LIMIT 0, 10;
学校和团餐公司为一一对应,若没有关联团餐公司,则不显示预警
com.ssic.education.handle.mapper.ProWarningExMapper
com.ssic.education.handle.mapper.ProLicenseExMapper
ProWarningServiceImpl
spring-quartz.xml
LoginFilter
/**
* @Title: index
* @Description: 营养百科首页
* @author Ken Yin
* @date 2016年9月5日 上午11:25:08
* @return ModelAndView 返回类型
*/
@RequestMapping("/nutritionBaike/index")
public ModelAndView index() {
ModelAndView modelAndView = getModelAndView();
OdrCategoryDto categoryDto = new OdrCategoryDto();
categoryDto.setParentId(DataStatus.STRING_ONE); //父类别ID
categoryDto.setStat(DataStatus.ENABLED);
categoryDto.setStyleType(DataStatus.ENABLED); //样式类别: 1表示营养百科;2表示全球校餐;3表示机构观点;4表示社会来稿;5表示带banner列表;6表示不带banner列表
List<OdrCategoryDto> categoryList = iOdrCategoryService.findCategory(categoryDto);
modelAndView.addObject("categoryList", categoryList);
modelAndView.setViewName("/article/nutritionBaike/index");
return modelAndView;
return MessageResp.getMessage(true,stat);
// if(stat>0){
// return MessageResp.getMessage(true,"保存成功");
// }
// return MessageResp.getMessage(false,"保存失败");
}
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '9c2ea73b-bf3b-4224-a039-ffd5ad15e171' and supplier_type = 1 and stat = 1 ) order by create_time desc ;
SELECT a.id, a.order_no AS orderNo, a.order_name AS orderName, a.user_id AS userId, a.student_id AS studentId, a.school_id AS greadId, a.gread_id AS greadId, a.class_type_id AS classTypeId, a.class_id AS classId, a.student_name AS studentName, a.school_name AS schoolName, a.gread_name AS greadName, a.class_type AS classType, a.class_name AS className, a.student_no AS studentNo, a.parents_mobile AS parentsMobile, a.payment_info_id AS paymentInfoId, a.payment_mode AS paymentMode, a.order_time AS orderTime, a.price, a.days, a.payment_status AS paymentStatus, a.payment_time AS paymentTime, a.payment_type AS paymentType, a.payment_account AS paymentAccount, a.payment_no AS paymentNo, a.amount, a.coupon_id AS couponId, a.coupon_name AS couponName, a.coupon_amount AS couponAmount, a.payable_amount AS payableAmount, a.create_time AS createTime, a.create_user AS createUser, a.last_update_time AS lastUpdateTime, a.last_update_user AS lastUpdateUser, a.stat, c.secret FROM t_odr_payment_record a LEFT JOIN t_odr_student b ON (a.student_id = b.id ) LEFT JOIN t_odr_user c ON (b.parents_id = c.id )
WHERE a.payment_status = -1 AND a.stat = 1 ORDER BY a.create_time DESC
SELECT a.id, a.order_no AS orderNo, a.order_name AS orderName, a.user_id AS userId, a.student_id AS studentId, a.school_id AS greadId, a.gread_id AS greadId, a.class_type_id AS classTypeId, a.class_id AS classId, a.student_name AS studentName, a.school_name AS schoolName, a.gread_name AS greadName, a.class_type AS classType, a.class_name AS className, a.student_no AS studentNo, a.parents_mobile AS parentsMobile, a.payment_info_id AS paymentInfoId, a.payment_mode AS paymentMode, a.order_time AS orderTime, a.price, a.days, a.payment_status AS paymentStatus, a.payment_time AS paymentTime, a.payment_type AS paymentType, a.payment_account AS paymentAccount, a.payment_no AS paymentNo, a.amount, a.coupon_id AS couponId, a.coupon_name AS couponName, a.coupon_amount AS couponAmount, a.payable_amount AS payableAmount, a.create_time AS createTime, a.create_user AS createUser, a.last_update_time AS lastUpdateTime, a.last_update_user AS lastUpdateUser, a.stat, c.secret FROM t_odr_payment_record a INNER JOIN t_odr_student b ON (a.student_id = b.id ) INNER JOIN t_odr_user c ON (b.parents_id = c.id )
WHERE a.payment_status = ? AND a.payment_time >= ? AND a.payment_time >= ? AND a.payment_time <= ? AND a.stat = 1 ORDER BY a.create_time DESC LIMIT ?, ?
http://127.0.0.1:8096/article/nutritionBaike/index.htm
-- select id, title, parent_id, navi, icon, sort_num, style_type, create_time, create_user, last_update_time, last_update_user, stat from t_odr_category WHERE ( stat = 1 and parent_id = '1' ) order by sort_num desc ;
-- select a.id, a.title, a.category_id as categoryId, b.title as categoryTitle, a.picture, a.icon, a.summary, a.content, a.keywords, a.like_num as likeNum, a.is_publish as isPublish, a.create_time as createTime, a.create_user as createUser, a.last_update_time as lastUpdateTime, a.last_update_user as lastUpdateUser, a.stat, a.read_num readNum, a.sort_num sortNum from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '4' and a.is_publish = 1 and a.stat = 1 order by a.sort_num desc, a.create_time asc limit 0, 10;
-- select id, title, parent_id, navi, icon, sort_num, style_type, create_time, create_user, last_update_time, last_update_user, stat from t_odr_category WHERE ( stat = 1 and parent_id = '3' ) order by sort_num ASC ;
-- select id, category_id, picture, link, is_publish, sort_num, create_time, create_user, last_update_time, last_update_user, stat from t_odr_ad WHERE ( stat = 1 );
-- select a.id, a.title, a.category_id as categoryId, b.title as categoryTitle, a.picture, a.icon, a.summary, a.content, a.keywords, a.like_num as likeNum, a.is_publish as isPublish, a.create_time as createTime, a.create_user as createUser, a.last_update_time as lastUpdateTime, a.last_update_user as lastUpdateUser, a.stat, a.read_num readNum, a.sort_num sortNum from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '17de660d-15b9-4e79-9058-e5ac0902319e' and a.is_publish = 1 and a.stat = 1 order by a.sort_num desc, a.create_time asc limit 10, 20;
-- select count(*) from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '17de660d-15b9-4e79-9058-e5ac0902319e' and a.is_publish = 1 and a.stat = 1 ;
SELECT id, category_id, picture, link, is_publish, sort_num, create_time, create_user, last_update_time, last_update_user, stat FROM t_odr_ad WHERE ( stat = 1 AND category_id = '1' ) ;
<b style='width:100%;text-align:center;display:block;padding-top:2px;font-weight:normal'>没有更多数据</b>
http://127.0.0.1:8092/userV2/register.htm
127.0.0.1:8092/user/register.htm
layer.open({
title:'修改年龄',
type: 2,
area: ['600px', '500px'],
fix: true, //不固定
maxmin: false,
content: '${base}/age/edit.do?id='+id
});
SELECT id, NAME, area_code, TYPE, creator, create_time, updater, last_update_time, stat FROM t_edu_committee WHERE ( TYPE = 2 AND stat = 1 AND area_code IS NOT NULL ) ORDER BY NAME ASC ;
http://127.0.0.1:8092/blackList/findByPage.htm
<div style="display:block" class="pop_wrap fbmg_edit">
$('#wrapper > #scroller > ul').append("<li><img src="+result[i].picture+" border=\"0\"><span class=\"title\">"+result[i].title+"</span><span class=\"text\">"+result[i].summary+"</span><a class=\"href_link\" href=\"/article/show.htm?id="+ result[i].id +"></a></li>");
<a href="#" class="local_edu">
<img src="/static/v2/imgs/local_edu.png" />
<span>${(eduUsersDto.userAccount?substring(0,5))!}</span>
<i><img src="/static/v2/imgs/dropdown_icon.png" /></i>
</a>
<input class="bt next" id="next" type="button">下一步</button>
SELECT MAX(pj_no) FROM t_edu_users;
t_edu_school online_payment 默认为NULL去掉
http://127.0.0.1:8092/info/index/3.htm
http://127.0.0.1:8092/motive/noticeCenter.htm
http://127.0.0.1:8092/info/release.htm
file:///D:/git/education2.0/dist/fbmanage.html#
file:///D:/git/education2.0/src/fbmanage.html#
http://127.0.0.1:8092/blackList/findByPage.htm#
原来表中的wares_id 的含义为原料Id
目前原料Id修改成 t_base_material 的 Id
t_pro_wares 这张表为 原料和供应商的关系表
FileManageController:
//start 上传图片至qiniu 服务器
//byte[] inBytes = FileUtils.input2byte(in);
//UploadPicture.upload(inBytes, fileStaticPath);
//end
upload.url=D:/share/upload
upload.look.url= http://ocsys6mwy.bkt.clouddn.com/
http://127.0.0.1:8092/motive/release.htm
http://127.0.0.1:8092/motive/release.htm
common.css: .color_checkbox input[type="checkbox"]
SELECT * FROM t_edu_school_supplier a LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE a.school_id IN AND b.supplier_type = 2 AND a.stat = 1 AND b.stat=1;
http://127.0.0.1:8092/userV2/register_d.htm
http://127.0.0.1:8092/trace/index.htm
contentHeight: 492,
// weekMode: 'liquid',
defaultDate: '2016-09-27',
firstDay: 0,
editable: true,
events: [{
title: 'ee',
start: '2016-09-30'
}]
alert($(this).children('option:selected').val());
http://127.0.0.1:8092/indexV2.htm
http://127.0.0.1:8092/blackList/findByPage.htm
http://127.0.0.1:8092/check/index.htm?source=0
check_arrayfood_detail.html 批次详情页 -->distribution_detail.htm
check_calendar_normal.html 排查首页
check_company.html 2-团餐公司
check_entrust_comp_detail.html 委托经营单位详情
check_material_detail.html 原料详情
check_school.html 3-学校
check_supplier.html 1-供货者
check_supplier_detail.html 供货者详情
dish_detail √ 菜详情页(后台还没有)
supplier_detail √ 原料供应商详情页
entrust_company √ 委托经营单位详情(即团餐公司))
materia_detail √ 原料详情页
distribution_detail 批次信息(带地图)
t_base_material主表 t_pro_wares子表
layer.alert(data.message, {icon: 2}); //2秒后自动关闭
layer.msg(data.message);
<#if companyList??>
<#list companyList as company>
<td><a href="#">${company.supplierName!}</a></td>
<td><a href="#">${company.waresSupplier!}</a></td>
<td><a href="#">${company.waresName!}</a></td>
<td>${company.contactWay!}</td>
<td>${company.contacts!}</td>
<td><a class="btn text-left" href="#"><i class="btn-icon icon-read"></i>排查</a></td>
</#list>
</#if>
//$(".fc-sat").css('backgroundColor','#c4e1ff');//这个是周六的TD
//$(".fc-sun").css('backgroundColor','#c4e1ff');//这个是周日的TD#b2b2b2
$(".fc-sat").css('backgroundColor','#b2b2b2');//这个是周六的TD
$(".fc-sun").css('backgroundColor','#b2b2b2');
http://127.0.0.1:8092/schoolterm/findSchoolterm.htm
UPDATE t_edu_holiday SET create_id = 'ken', create_name = '浅浅',create_time='2016-10-10 17:27:59',stat=1 ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( stat = 1 ) order by create_time DESC ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' and stat = 1 ) order by create_time DESC ;
-- select a.id,a.action_date,a.ware_batch_no,a.haul_status,a.start_time,a.end_time,b.name,b.supplier_id,b.supplier_name from t_pro_ledger_master a left join t_pro_ledger b on a.id=b.master_id WHERE action_date IN() and a.stat =1 AND b.stat =1;
SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 `t_pro_wares``t_pro_wares``t_pro_wares` AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' ORDER BY a.create_time DESC ;
SELECT a.id,a.ware_name AS wareName,a.`supplier_id` AS supplierId,a.`wares_supplier_id` AS waresSupplierId,a.`wares_supplier` AS waresSupplier,b.contacts,b.`contact_way` AS contactWay,b.supplier_name AS supplierName FROM t_pro_wares a LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE b.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND a.`wares_supplier_id`=?;
-- select date_format(now(),'%Y-%m-%d') as ‘日期’ from dual
SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' AND b.id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-09'
ORDER BY a.create_time DESC
/check/waresDetails.htm?waresIdMenu=${checkMenuDto.waresIdMenu!}&supplierNameMenu=${supplierDto.supplierName!}&waresNameMenu=${checkMenuDto.waresNameMenu!}&supplyDateMenu=${(checkMenuDto.supplyDateMenu)!}
http://127.0.0.1:8092/check/waresDetails.htm?waresIdMenu=&supplierNameMenu=&waresNameMenu=%E5%9F%BA%E5%9B%B4%E8%99%BE&supplyDateMenu=2016-10-09
委托经营单位 即是团餐公司
<#include "/v2/common/nav.htm" />
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( stat = 1 ) order by create_time DESC ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' and stat = 1 ) order by create_time DESC ;
-- select a.id,a.action_date,a.ware_batch_no,a.haul_status,a.start_time,a.end_time,b.name,b.supplier_id,b.supplier_name from t_pro_ledger_master a left join t_pro_ledger b on a.id=b.master_id WHERE action_date IN() and a.stat =1 AND b.stat =1;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 `t_pro_wares``t_pro_wares``t_pro_wares` AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' ORDER BY a.create_time DESC ;
-- select a.id,a.ware_name as wareName,a.`supplier_id` as supplierId,a.`wares_supplier_id` as waresSupplierId,a.`wares_supplier` as waresSupplier,b.contacts,b.`contact_way` as contactWay,b.supplier_name as supplierName from t_pro_wares a left join t_pro_supplier b on a.supplier_id = b.id where b.`supplier_type`= 1 and a.`stat` =1 and b.`stat` =1 and a.`wares_supplier_id`=?;
SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date BETWEEN '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND b.supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' ORDER BY a.create_time DESC ;
SELECT a.id,a.wares_name AS waresName,a.`supplier_id` AS supplierId,a.`wares_supplier_id` AS waresSupplierId,a.`wares_supplier` AS waresSupplier,b.contacts,b.`contact_way` AS contactWay,b.supplier_name AS supplierName
FROM t_pro_wares a
LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE b.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1
SELECT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND d.action_date='2016-10-09'
-- select date_format(now(),'%Y-%m-%d') as ‘日期’ from dual
SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' AND b.id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-09'
ORDER BY a.create_time DESC
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = AND c.`wares_id`= AND b.action_date='';
$("div[myattr='test']")
$("td[data-date='2016-11-03']").css('background-color', '#f5f5f5');
<td class="fc-day-top fc-sun fc-other-month fc-past" data-date="2016-07-31"><span class="fc-day-number">31</span></td>
<td class="fc-day-top fc-fri fc-past" data-date="2016-08-26"><span class="fc-day-number">26</span></td>
<#if ${eduSchoolDto.levelStr!}?index_of("幼儿园") ! -1> freemarker判断是否包含某个字段
<#if eduSchoolDto.levels?index_of("幼儿园") != -1 >checked="checked"</#if>
首页追溯的权限问题(通过后台用户sourceType判断) 前提:用户要登录才能看到首页
Basecontroller wwwdomain
$("#dis_edu_food_chosen >a >span").text(data.data.materialName);
用户名里不允许有符号 最少6位 最多16位 用户名允许有字母、中文、数字: ^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$
var testUserName = /^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$/;
alert(testUserName.test("asd_许有字母中文数字0001"));
注册校验:
var testUserName = /^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$/;
if(!testUserName.test(username)){
layer.msg('用户名应为6-16位的字符,数字或汉字的组合!');
return false;
}
var testPassWord = /^[5a-zA-Z0-9]{6,12}$/;
//var testPassWord = /^[a-zA-Z0-9!"\#$%&'()*+,-./:;<=>?@\[\\\]^_`\{\|\}\~]{6,12}$/;
if(!testPassWord.test(passWord)){
layer.msg('密码应为6-12位,英文、数字或常用符号!');
return false;
}
var testPassWord = /^[a-zA-Z0-9!"\#$%&'()*+,-./:;<=>?@\[\\\]^_`\{\|\}\~]{6,12}$/;
if(!testPassWord.test('211>11')){
alert('密码应为6-12位,英文、数字或常用符号!');
}else{
alert('验证通过!');
}
/motive/sended.htm
setLevel:set方法覆盖后 要重新赋值
private String levels;
private String level;
public void setLevel(String level) {
if (StringUtils.isNotBlank(level)) {
String[] stringArr= level.split(",");
String str="";
if (stringArr.length > 0 && stringArr[0] != null && !stringArr[0].equals("")) {
for (int i=0; i<stringArr.length; i++) {
String levelStrs = SchoollevelEnum.getValueByIndex(Integer.valueOf(stringArr[i]));
if (StringUtils.isNotBlank(levelStrs)) {
str += levelStrs+" ";
this.levelList.add(Integer.valueOf(stringArr[i]));
}
}
this.levelStr = str;
this.levels = level;
}
}
}
$(".fc-day-top:not(.fc-other-month)").css({'background-color': 'pink'});
var theDate = "";
if(${theMon!} ??){
theDate = new Date();
}else{
theDate = "${theMon!}" + "01";
}
//var theMon = "${theMon!}";
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = AND c.`wares_id`= AND b.action_date='';
-- select id, school_id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, supplier_id, reviewed, online_payment, pj_no, create_time, updater, last_update_time, stat from t_edu_school where id = '69edb64c-56d5-4518-83dd-63c03b5b6b3c' ;
UPDATE t_pro_black_list SET stat=0 WHERE supplier_id = "b84a453a-d084-4c29-9ccb-26203ef835ae" ;
if (($("body").height() - $(window).height()) < 0) {
$(".footer").css({
"position":"fixed",
"bottom":"0",
"z-index": "99"
})
}
<a class="img_nn" data-value="http://octlpgiv5.bkt.clouddn.com//upload/20160829/23a90458839d4ff28684e42f66ca3ed5.png" href="###" style="color: #fd9f3e;">查看图片>></a>
<a class="img_nn" data-value="http://ocsys6mwy.bkt.clouddn.com//upload/20161022/13234edd45094e0f91f71320a4ffca6f.jpg" href="###">查看图片>></a>
好时光金拇指幼儿园 123456 唐镇中学 上海新世纪小学
徐汇区教育局 ${readList!}@@${sendList!}@@${notReadList!} 3 7 11
委托经营单位 即团餐公司
schoolName orderDateStr supplierName
http://127.0.0.1:8092/indexV2.htm
修改BUG:
1.排查批次详情 √
2.市教委 添加违禁品,选择原料,下拉框应该限制高度 (郭青修改样式) select 的size 属性 决定了它显示几个选项, 如果多出来的 就会自动变成滚动条了 ?? √
3.所有页面加面包导航栏 (目前追溯和排查)
4.修改违禁品
5.通知 已发,已读,未读 √
6.学期安排之今天
7.通知(已读,已发,未读增加分页)
http://127.0.0.1:8092/check/selectLedger.htm
-- SELECT a.id, a.master_id AS masterId, a.wares_id AS waresId, a.receiver_id AS receiverId, a.name, a.spce, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.wares_type AS waresType, a.supplier_id AS supplierId, a.supplier_code AS supplierCode, a.supplier_name AS supplierName, a.quantity, a.production_date AS productionDate, a.production_name AS productionName, a.batch_no AS batchNo, a.trace_code AS traceCode, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, b.action_date AS actionDate, b.start_address AS startAddress, b.ware_batch_no AS wareBatchNo FROM t_pro_ledger a RIGHT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 AND b.action_date = '2016-10-25 00:00:00.0' AND b.receiver_id = '2ca581ef-cd3f-4421-b32f-e78dc6800b66' AND a.name IN ( '鸡蛋' , '番茄' ) ORDER BY a.`create_time` DESC ;
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' and supplier_type = 2 and stat = 1 ) order by create_time desc ;
-- select id, lic_name, cer_source, written_name, lic_no, lic_type, lic_start_date, lic_end_date, lic_pic, creator, create_time, updater, last_update_time, stat, relation_id, supplier_id from t_pro_license WHERE ( relation_id = 'e23339dd-54bb-4066-9965-792c72befed5' and stat = 1 ) ;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date between '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = 'a644fcc3-f98f-4b84-9dcc-0085e539b62a' AND b.supplier_id = 'a6a0d61d-c255-46e1-b9f1-792c8618b5fe' ORDER BY a.create_time DESC ;
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' and supplier_type = 2 and stat = 1 ) order by create_time desc
-- SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate FROM t_pro_supplier a LEFT JOIN t_pro_wares b ON b.supplier_id = a.id LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supply_id LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = 'a6a0d61d-c255-46e1-b9f1-792c8618b5fe' AND b.id = '11224b49-9671-4e7c-8254-8628a4cecfc2' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-24' ORDER BY a.create_time DESC ;
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.id AS ledgerId,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' AND c.wares_id = '11224b49-9671-4e7c-8254-8628a4cecfc2' AND DATE_FORMAT(b.action_date, '%Y-%m-%d') = '2016-10-24' ORDER BY a.create_time DESC ;
-- select id, action_date, receiver_id, receiver_name, driver_name, user_id, source_id, ware_batch_no, image, haul_status, car_id, car_code, start_address, destination_id, destination_name, start_time, end_time, creator, create_time, updater, last_update_time, stat from t_pro_ledger_master WHERE ( id = 'eb3d82d0-5475-42bf-808a-ef9a90b684c0' and ware_batch_no = '000220161025001' and stat = 1 ) ;
SELECT id, material_id, wares_name, spec_id, spec, amount, amount_unit_id, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat FROM t_pro_wares WHERE ( stat = 1 ) ORDER BY create_time DESC ;
SELECT * FROM t_pro_supplier_receiver
LEFT JOIN t_pro_supplier e ON a.supplier_id = e.id
LEFT JOIN t_pro_wares b ON e.id = b.wares_supplier_id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supply_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE e.`supplier_type`= 2 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1
一副生无可恋的样子
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( reviewed = 1 and stat = 1 AND supplier_type=1 ) order by create_time desc ;
-- select * from t_pro_wares where stat =1 && supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7';
SELECT * FROM t_pro_wares WHERE supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT MAX(id) FROM t_pro_wares GROUP BY material_id;
SELECT id, material_id, wares_name,supplier_id,stat FROM t_pro_wares WHERE id IN(SELECT MAX(id) FROM t_pro_wares a GROUP BY material_id) AND supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1 ;
SELECT DISTINCT(material_id) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
SELECT DISTINCT(wares_name) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
http://127.0.0.1:8092/check/selectLedger.htm
selectLedger
阿里 陈飞 13738686215
-- SELECT * FROM t_pro_wares WHERE supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT MAX(id) FROM t_pro_wares GROUP BY material_id;
-- SELECT id, material_id, wares_name,supplier_id,stat FROM t_pro_wares WHERE id IN(SELECT MAX(id) FROM t_pro_wares a GROUP BY material_id) AND supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1 ORDER BY create_time DESC;
-- SELECT DISTINCT(material_id) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT DISTINCT(wares_name) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId,b.supply_id AS supplyId,b.supply_name AS supply_name FROM t_pro_ledger_master a
-- LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date between '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = '44173249-bcb2-453a-83e0-5d5c20ecf4fb' AND b.supply_id = 'a46c420e-b485-4a7a-a75d-088d61dbfe73' ORDER BY a.create_time DESC ;
SELECT b.action_date,a.`name`,a.supplier_id,a.`supply_id`,a.wares_id, b.receiver_name,b.ware_batch_no,c.material_id FROM t_pro_ledger AS a
LEFT JOIN t_pro_ledger_master AS b ON a.master_id = b.id
LEFT JOIN t_pro_wares AS c ON c.id = a.wares_id
WHERE a.supply_id='a46c420e-b485-4a7a-a75d-088d61dbfe73' AND a.stat=1 AND b.stat=1 AND c.stat=1 AND c.material_id= 8 AND b.action_date BETWEEN '2016-10-01' AND '2016-10-31' GROUP BY b.action_date;
/check/checkCompany.htm?waresSupplierMenu=美事食品有限公司&waresNameMenu=青菜&supplyDateMenu=2016-10-28&waresSupplierIdMenu=a46c420e-b485-4a7a-a75d-088d61dbfe73&waresId=8775717a-0a5d-4d82-8bad-54f89f70c374
CompanyDto(waresId=8775717a-0a5d-4d82-8bad-54f89f70c374, supplierId=null, waresName=null, waresSupplierId=a46c420e-b485-4a7a-a75d-088d61dbfe73, waresSupplier=null, contacts=null, contactWay=null, supplierName=null, actionDate=2016-10-28)
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\upload
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\upload\b3119313b07eca801cd2e090932397dda04483f6.jpg
http://localhost/app/js/module/jquery-1.11.1.min.js
height: auto;
width: auto\9;
width: 100%;
id=401d6feb-5d21-42db-84bf-170b316e4298;userAccountId=401d6feb-5d21-42db-84bf-170b316e4298;realName=A;job=1;provinceid=110000;cityid=110100;countryid=1;address=AA;email=AA;mobileNo=111;age=18;nickName=KAKA;venueType=1,2,3;userLevel=8;userScore=123;stat=0;
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageMapper' defined in file [D:\LearningWorkSpace\juju_sport\juju-base\target\classes\com\juju\sport\base\mapper\MessageMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected 'com.juju.sport.base.mapper.MessageMapper' but found 'com.juju.sport.user.mapper.UsersInfoMapper'.
cwftalus
""{\"id\":\"ab8c850d-86d4-4555-853d-96d586ef4e38\",\"userAccountId\":\"d88e3a0e-0996-4916-907f-4f58264bbcde\",\"provinceid\":110000,\"cityid\":110100,\"countryid\":110102,\"address\":\"瑞京二路\",\"contacts\":\"习近平\",\"mobileNo\":\"155666\",\"descs\":\"瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路\",\"chargeType\":1,\"venueType\":\"1,2,3,4,5,6,7,8\",\"otherServices\":\"2,3\",\"nickName\":\"瑞京\",\"createTime\":\"Apr 10, 2015 9:26:02 AM\",\"lastUpdateTime\":\"Apr 10, 2015 9:26:02 AM\",\"stat\":1}""
"{"id":"923c6b0d-7f76-4110-8484-193d4fb18a44","userAccountId":"e371414c-e327-47dd-97b4-73916af8ab6a","provinceid":120000,"cityid":120100,"countryid":120102,"address":"瑞京二路","contacts":"习近平","mobileNo":"155666","descs":"瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路瑞京二路","chargeType":1,"venueType":"1,2,3,4,5,6,7,8","otherServices":"2,3,2,4,5","nickName":"瑞","createTime":"Apr 10, 2015 4:06:49 PM","lastUpdateTime":"Apr 10, 2015 4:06:49 PM","stat":1,"venueImg":"/upload/pic/1.jpg"}"
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 10, 10
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 20, 10
select id, order_id, order_no, date, order_time, end_time, space_id, space_name, user_account_id, owner_account_id, telephone, order_total, create_time, last_update_time, week, stat, user_account_name, order_status from juju_orders_items WHERE ( user_account_id = ? and stat = ? ) order by date desc limit 30, 10
select count(*) from juju_orders_items WHERE ( user_account_id = ? and stat = ? )
select * from juju_messages where msg_type = 1 order by msg_time desc limit ?,?
select count(*) from juju_messages WHERE ( msg_type = ? )
PageQuery(total=0, pageSize=10, currPage=3)
<input type="text" value="300" name="maxitems" id="maxitems" class="numeric"/>
<input type="text" value="10" name="items_per_page" id="items_per_page" class="numeric"/>
<input type="text" value="0" name="num_display_entries" id="num_display_entries" class="numeric"/>
<input type="text" value="0" name="num_edge_entries" id="num_edge_entries" class="numeric"/>
/app/site/siteinfo.html
"{\"id\":\"4c3d6d20-1d98-43f6-95a9-ad6573c28fa6\",\"userAccountId\":\"1945b6e9-4e31-4f42-8da1-9b9050b54d98
\",\"provinceid\":120000,\"cityid\":120100,\"countryid\":120102,\"address\":\"88\",\"contacts\":\"88
\",\"mobileNo\":\"888\",\"descs\":\"8888\",\"chargeType\":1,\"venueType\":\"1,10,11,12,13,14,15,16,2
,3,4,5,6,7,8,9\",\"otherServices\":\"1,2,3\",\"nickName\":\"888\",\"createTime\":\"Apr 14, 2015 7:51
:52 PM\",\"lastUpdateTime\":\"Apr 14, 2015 7:51:52 PM\",\"stat\":1,\"sportTypeList\":[{\"id\":\"1\",
\"sportName\":\"足球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12
:00:00 AM\",\"stat\":1},{\"id\":\"10\",\"sportName\":\"滑雪\",\"createTime\":\"Apr 11, 2015 1:23:32 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:23:35 PM\",\"stat\":1},{\"id\":\"11\",\"sportName\":\"卡丁车\",\"createTime
\":\"Apr 11, 2015 1:23:51 PM\",\"lastUpdateTime\":\"Apr 11, 2015 1:23:53 PM\",\"stat\":1},{\"id\":\"12
\",\"sportName\":\"乒乓球\",\"createTime\":\"Apr 11, 2015 1:24:20 PM\",\"lastUpdateTime\":\"Apr 11, 2015
1:24:23 PM\",\"stat\":1},{\"id\":\"13\",\"sportName\":\"攀岩\",\"createTime\":\"Apr 11, 2015 1:25:34 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:25:36 PM\",\"stat\":1},{\"id\":\"14\",\"sportName\":\"桌球\",\"createTime
\":\"Apr 11, 2015 1:26:00 PM\",\"lastUpdateTime\":\"Apr 11, 2015 1:26:02 PM\",\"stat\":1},{\"id\":\"15
\",\"sportName\":\"自行车\",\"createTime\":\"Apr 11, 2015 1:26:18 PM\",\"lastUpdateTime\":\"Apr 11, 2015
1:26:20 PM\",\"stat\":1},{\"id\":\"16\",\"sportName\":\"其他\",\"createTime\":\"Apr 11, 2015 1:35:28 PM
\",\"lastUpdateTime\":\"Apr 11, 2015 1:35:31 PM\",\"stat\":1},{\"id\":\"2\",\"sportName\":\"篮球\",\"createTime
\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":
\"3\",\"sportName\":\"羽毛球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24,
2015 12:00:00 AM\",\"stat\":1},{\"id\":\"4\",\"sportName\":\"网球\",\"createTime\":\"Mar 24, 2015 12:00
:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"5\",\"sportName\":\"游
泳\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat
\":1},{\"id\":\"6\",\"sportName\":\"排球\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime
\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"7\",\"sportName\":\"溜冰\",\"createTime\":\"Mar 24
, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\",\"stat\":1},{\"id\":\"8\",\"sportName
\":\"跑步\",\"createTime\":\"Mar 24, 2015 12:00:00 AM\",\"lastUpdateTime\":\"Mar 24, 2015 12:00:00 AM\"
,\"stat\":1},{\"id\":\"9\",\"sportName\":\"棒球\",\"createTime\":\"Apr 11, 2015 1:23:07 PM\",\"lastUpdateTime
\":\"Apr 11, 2015 1:23:11 PM\",\"stat\":1}],\"serviceTypeList\":[{\"id\":\"1\",\"serviceName\":\"车位\"
,\"stat\":1},{\"id\":\"2\",\"serviceName\":\"自带淋浴\",\"stat\":1},{\"id\":\"3\",\"serviceName\":\"器具出租
\",\"stat\":1}]}"
IPv4 地址 . . . . . . . . . . . . : 192.168.1.66
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.99
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.134
子网掩码 . . . . . . . . . . . . : 255.255.255.0
IPv4 地址 . . . . . . . . . . . . : 192.168.1.200
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : 192.168.1.1
VenuesInfo(id=null, userAccountId=null, provinceid=140000, cityid=140100, countryid=140105, address=111, contacts=111, mobileNo=111, descs=111, chargeType=1, venueType=1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9, otherServices=1,2,3, email=null, nickName=测试专用, userLevel=null, userScore=null, createTime=null, lastUpdateTime=null, stat=null, venueImg=null, serviceTypeList=null, sportTypeList=null)
venueType=1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9, otherServices=1,2,3,
id=null, userAccountId=null,
createTime=null, lastUpdateTime=null, stat=null,
venueImg=null, serviceTypeList=null, sportTypeList=null
<div style=" float:left; font-size:12px; width:68px;">
<input id="ck2" type="checkbox" name="ck2" value="">
<label style="color:rgb(255, 255, 255);" for="ck2"> 篮球 </label>
</div>
<div style="color:#fff; width:85px; height:25px; background-color:rgb(207,0,57); line-height:25px; text-align:center; margin:0 auto;">保存</div>
{"status":200,"message":null,"data":{"total":27,"pageSize":10,"currPage":1,"results":[{"id":"045bf148-2f1b-4c98-969a-5c2e602a5da5"
{"status":200,"message":"200","data":{"total":18,"pageSize":0,"currPage":1,"results":[{"id":"0d79fc48-2bcb-4534-98e9-dce54d0ec2c8"
{"status":200,"message":"200","data":{"total":18,"pageSize":10,"currPage":1,"results":[{"id":"bb5cf7c3-2117-4c3e-add7-0e55ffa0d1d7"
src="z:///upload/e94edab1-6380-4021-ba43-89f0730bed85.jpg"
src="/upload/54fbb2fb43166d2205a0cce3442309f79152d2f6.jpg"
window.parent.addCorps();
传入一个userAccountId vid
4ad08bfd-709b-4c23-993e-66bdcfce98b6
var email_reg =/^[a-zA-Z0-9_\-]{1,}@[a-zA-Z0-9_\-]{1,}\.[a-zA-Z0-9_\-.]{1,}$/;
//var phone_reg = /^((13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$/;
//var phone_reg = /^(13[0-9]|147|15[0-3]|15[5-9]|18[0])\d{8}$/;
//var phone_reg = /^(((13[0-9]{1})|147|(15[0-3]{1})|(15[5-9]{1})|(18[0-3]{1})|(18[5-9]{1}))+\d{8})$/;
//var phone_reg =/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
//var phone_reg =/^((145|147)|(15[^4])|(17[6-8])|((13|18)[0-9]))\d{8}$/;
//var phone_reg =/^1[3|4|5|8][0-9]\d{4,8}$/;
//var phone_reg =/^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|189[0-9]{8}$/;
//var phone_reg =/^13[0-9]{1}[0-9]{8}$|15[0189]{1}[0-9]{8}$|189[0-9]{8}$/;
//var phone_reg =/^[1]([3][0-9]{1}|59|58|88|89)[0-9]{8}$/;
//var phone_reg =/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
//var phone_reg =/^(13[0-9]{9}|15[012356789][0-9]{8}|18[02356789][0-9]{8}|147[0-9]{8}$/;
//var phone_reg = /^(13[\d]{9}|15[\d]{9}|18[\d]{9})$/;
//var phone_reg=/^(^0\d{2}-?\d{8}$)|(^0\d{3}-?\d{7}$)|(^\(0\d{2}\)-?\d{8}$)|(^\(0\d{3}\)-?\d{7}$)$/;
//var phone_reg=/^1([3]\d|4[57]|5[^3]|8\d)\d{8}$/;
//var phone_reg= /^(13[0-9]|15[0|3|6|7|8|9]|18[8|9])\d{8}$/;
//var phone_reg= /^[1][358]\d{9}$/;
//var phone_reg= /^(13[0-9]|15[0-9]|18[8|9])\d{8}$/;
//var phone_reg = /^(1[3|5|8])[\d]{9}$/;
//var phone_reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
var phone_reg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
<div id="03c7aa64-4ee2-4b0b-9f84-af764f0570df" class="block" name="03c7aa64-4ee2-4b0b-9f84-af764f0570df" style="cursor:pointer;" onclick="findTeam('03c7aa64-4ee2-4b0b-9f84-af764f0570df')">
<div id="03c7aa64-4ee2-4b0b-9f84-af764f0570df" class="block" name="03c7aa64-4ee2-4b0b-9f84-af764f0570df" style="cursor:pointer;" onclick="findTeam('03c7aa64-4ee2-4b0b-9f84-af764f0570df')">
@RequestMapping(value = "/joinlist.do")
@ResponseBody
public Response<List<TeamDto>> joinlist(HttpSession session, TeamListDto teamListDto,
PageQuery page) {
Response<ArrayList<TeamDto>> result = new Response<ArrayList<TeamDto>>();
//获取当前登录用户Id
LoginUserDto loginUserDto = SessionUtil.getLoginSession(session);
// 只允许登录用户进行操作
if (loginUserDto != null) {
List<TeamListDto> teamlist = new ArrayList<TeamListDto>();
teamListDto.setUserAccountId(loginUserDto.getId());
teamlist = iUserTeamListService.findBy(teamListDto);
if(!teamlist.isEmpty()){
List<String> teamIds = new ArrayList<String>();
for(int i=0;i<teamlist.size();i++){
TeamListDto teamObj = teamlist.get(i);
teamIds.add(teamObj.getTeamId());
}
TeamDto teamDto = new TeamDto();
teamDto.setTeamIds(teamIds);
List<TeamDto> list = iUserTeamService.findBy(teamDto);
for(TeamDto tDto : list){
tDto.setSportName(iSportTypeCache.findNameByID(tDto.getSportId()));
}
result.setStatus(DataStatus.HTTP_SUCCESS);
result.setData(list);
//return result;
}
}
return result;//JsonUtil.getJsonStr(new RequestResult(true, JsonUtil.getJsonStr(result)));
}
{"status":200,"message":null,"data":{"total":11,"pageSize":5,"currPage":1,"results":[{"id":"333211ef-bbde-431d-991f-ece356944e0c"
,"teamId":"87a211ef-bbde-431d-991f-ece356944e0c","userAccountId":"10194c3c-d663-4c04-9362-5cc0042cdcfe"
,"telephone":null,"status":0,"createTime":1427968719000,"lastUpdateTime":null,"stat":1,"teamName":"DNF"
,"warType":null,"joinNum":1,"thumbnail":"/upload/34.jpg","maxNum":500},{"id":"3e32253e-5ed1-4fe3-b16d-5a4f81b067de"
,"teamId":"03c7aa64-4ee2-4b0b-9f84-af764f0570df","userAccountId":"10194c3c-d663-4c04-9362-5cc0042cdcfe"
,"telephone":null,"status":0,"createTime":1427968647000,"lastUpdateTime":null,"stat":1,"teamName":"飞
虎队","warType":1,"joinNum":1,"thumbnail":"upload/20150507/a6064a102ede4e26aa39efe63aa715a7.","maxNum"
:499},{"id":"5c5cbf9e-04b7-490d-93a4-b04ef9adf281","teamId":"56d4d20d-07aa-49c0-9dcf-423d8bc0043d","userAccountId"
:"ea40e83e-15f1-46d3-9439-3299eea90d5f","telephone":null,"status":0,"createTime":1428542272000,"lastUpdateTime"
:null,"stat":1,"teamName":"nefix足球王子","warType":1,"joinNum":1,"thumbnail":"upload/f73ca98a6452444caf7c9657f3d3e1a2
.gif","maxNum":123},{"id":"7795ec61-ca46-4c9e-91b3-2f1e0b2ae474","teamId":"56d4d20d-07aa-49c0-9dcf-423d8bc0043d"
,"userAccountId":"ea40e83e-15f1-46d3-9439-3299eea90d5f","telephone":null,"status":0,"createTime":1428542352000
,"lastUpdateTime":null,"stat":1,"teamName":"nefix足球王子","warType":1,"joinNum":1,"thumbnail":"upload/f73ca98a6452444caf7c9657f3d3e1a2
.gif","maxNum":123},{"id":"96fbd118-5f10-4ee1-8fd1-df474ff40d20","teamId":"bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7"
,"userAccountId":"3ea4b42d-37db-47f2-be4a-c1fab5383dd4","telephone":null,"status":0,"createTime":1427968376000
,"lastUpdateTime":null,"stat":1,"teamName":"天下篮球队22222","warType":2,"joinNum":1,"thumbnail":"upload/bff2eec7c4b74d68848c53c0a9429f27
.gif","maxNum":10}],"startNum":0}}
SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe'
private List<ServiceType> serviceTypeList;
private List<SportType> sportTypeList;
public List<ServiceType> getServiceTypeList() {
return serviceTypeList;
}
public void setServiceTypeList(List<ServiceType> serviceTypeList) {
this.serviceTypeList = serviceTypeList;
}
public List<SportType> getSportTypeList() {
return sportTypeList;
}
public void setSportTypeList(List<SportType> sportTypeList) {
this.sportTypeList = sportTypeList;
}
<collection select="selectVenuesServiceTypeMapping" property="serviceTypeList" javaType="ArrayList"
column="id" ofType="com.juju.sport.base.pojo.ServiceType" />
<collection select="selectVenuesSportTypeMapping" property="sportTypeList" javaType="ArrayList"
column="id" ofType="com.juju.sport.base.pojo.SportType" />
<select id="selectVenuesServiceTypeMapping" parameterType="java.lang.String" resultType="com.juju.sport.base.pojo.ServiceType" >
<![CDATA[
select id, service_name serviceName, create_time createTime, last_update_time lastUpdateTime, stat
from juju_service_type where stat=1 and id in (
select service_type_id from juju_venues_service_type_mapping
where stat=1 and venues_info_id=#{id}
)
]]>
</select>
<select id="selectVenuesSportTypeMapping" parameterType="java.lang.String" resultType="com.juju.sport.base.pojo.SportType" >
<![CDATA[
select id, sport_name sportName, create_time createTime, last_update_time lastUpdateTime, stat
from juju_sport_type type where stat =1 and type.id in (
select sport_type_id from juju_venues_sport_type_mapping
where stat=1 and venues_info_id=#{id}
)
]]>
</select>
window.parent.iFrameHeight();//window.opener.location.reload(); location.reload(); window.location.reload();
-- SELECT * FROM juju_team WHERE user_account_id='10194c3c-d663-4c04-9362-5cc0042cdcfe'
-- select member.id id, member.pic pic, member.team_id teamId, member.member_num memberNum, users.real_name chineseName,
-- users.english_name, users.english_name englishName, users.nick_name nickName, users.brithday dateOfBorn, users.gender gender, users.eihnic eihnic,
-- users.native_place nativePlace, users.company company, users.provinceId, users.cityId, users.countryId,
-- users.height, users.weight, users.telephone, users.mobile_no mobile, users.email, users.document_no, member.position,
-- users.stat, users.create_time, users.last_update_time, member.team_position teamPosition, account.user_account userAccount
-- from (
-- select * from juju_team_member where stat=1 and team_id='03c7aa64-4ee2-4b0b-9f84-af764f0570df'
-- ) member
-- left join juju_users users on member.user_id = users.id and users.stat=1
-- left join juju_user_account account on users.user_account_id = account.id and account.stat=1
-- select * from juju_messages where msg_type= 2
-- SELECT * FROM juju_team
-- SELECT * FROM juju_team_list
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE a.user_account_id <> '10194c3c-d663-4c04-9362-5cc0042cdcfe' ORDER BY create_time DESC
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id limit 0,4
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id and b.stat=1 and b.stat = 1 where 1=1
-- SELECT count(*) FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id AND b.stat=1 AND a.stat=1 WHERE 1=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT * FROM juju_team
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe'
-- select id, sport_name sportName, create_time createTime, last_update_time lastUpdateTime, stat from juju_sport_type type where stat =1 and type.id in ( select sport_type_id from juju_venues_sport_type_mapping where stat=1 and venues_info_id='4c3d6d20-1d98-43f6-95a9-ad6573c28fa6' )
-- select * from juju_venues_info where user_account_id ='1b444c45-3af5-4f9e-92af-d84cb233d84f'
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail ,b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail, b.sport_id FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 LIMIT 0, 11
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d'
-- SELECT * FROM juju_team WHERE user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d'
-- SELECT * FROM juju_team WHERE user_account_id != '56d4d20d-07aa-49c0-9dcf-423d8bc0043d' ORDER BY create_time DESC LIMIT 0,4
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON a.team_id = b.id WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != 'bfe24cdf-33a7-4c5b-8463-49398341227c' LIMIT 0, 5
-- SELECT a.*,b.team_name,b.war_type,b.join_num,b.max_num,b.thumbnail FROM juju_team_list a INNER JOIN juju_team b ON WHERE 1=1 AND b.stat=1 AND a.stat=1 and a.user_account_id != 'bfe24cdf-33a7-4c5b-8463-49398341227c' LIMIT 0, 5
-- SELECT * FROM juju_team a WHERE a.stat=1 and a.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe' ORDER BY create_time DESC LIMIT 0, 5
SELECT DISTINCT a.*,b.user_account_id AS bb FROM juju_team a LEFT JOIN juju_team_list b on a.id = b.team_id AND b.user_account_id != '10194c3c-d663-4c04-9362-5cc0042cdcfe' WHERE a.stat=1 ORDER BY create_time DESC
Wed Apr 29 19:28:52 CST 2015
] - 文件长度: 13109
[INFO ][2015-05-13 11:43:43,751] - 文件类型: image/jpeg
[INFO ][2015-05-13 11:43:43,751] - 文件名称: file
[INFO ][2015-05-13 11:43:43,751] - 文件原名: 7e927661-88c8-4734-82ef-46eebd7c97fb.jpg
[INFO ][2015-05-13 11:43:43,751] - ========================================
[INFO ][2015-05-13 11:43:43,751] - filePaht :Z:\upload\/20150513a14ce0dcaf664adb90418606e194c84e.jpg
JQ全选/全不选
$("#checkall").click(function(){
if(this.checked){
$("input[name='venueType']").each(function(){this.checked=true;});
}else{
$("input[name='venueType']").each(function(){this.checked=false;});
}
});
/* $("#checkall").click(function() {
alert('yin');
$("input[name='venueType']").prop("checked", this.checked);
});
$("input[name='venueType']").click(function() {
alert('jam');
var $subs = $("input[name='venueType']");
$("#checkall").prop("checked" , $subs.length == $subs.filter(":checked").length ? true :false);
}); */
http://192.168.1.89/api/m/preOrder/spaceLists/22c7baf9-5ec7-403e-a95b-28de28b5af1d.do?orderTime=2015-05-12&sjTime=18:00-19:00&ownerAccountId=22c7baf9-5ec7-403e-a95b-28de28b5af1d
$("#team_member").html("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].thumbnail + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">"+jsonData[i].nickName + "</span>\
</p>");
$("#team_member").html("<p style=\" font-size:10px; line-height:22px;\">\
职称:");
if(jsonData[i].teamPosition == 1){
$("#team_member").html("<span style=\" font-size:10px;\">队长</span>");
}else if(jsonData[i].teamPosition == 2){
$("#team_member").html("<span style=\" font-size:10px;\">副队长</span>");
}else{
$("#team_member").html("<span style=\" font-size:10px;\">普通队员</span>");
}
$("#team_member").html("</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>");
if(jsonData[i].nickName==1){
队长
}else if(jsonData[i].nickName==2){
副队长
}else{
普通队员
}
acdd8c7d-6c99-429c-987e-f412ac8a2beb
bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7
dbf98f84-7b83-497d-968b-bb8e7f12a24a
e93eb8ce-52ad-427b-abdf-340fa31b54b0
for(var i = 0;i <jsonData.length;i++){
var objHtml = "";
objHtml += "<div style='height:100px; width:100%; height:100%; overflow:hidden;'>";
objHtml +="<div style='float:left; margin-right:4px;margin-top:5px;'><img src='"+jsonData[i].thumbnail + "' width='60' height='60'></div>";
objHtml +="<div style='float:left; '>";
objHtml +="<p style='width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;'>";
objHtml +="昵称:<span style='font-size:10px;'>"+jsonData[i].nickName + "</span>";
objHtml +="</p>";
objHtml +="<p style=' font-size:10px; line-height:22px;'>";
objHtml +="职称:";
objHtml +="<span style=' font-size:10px;'>";
if(jsonData[i].teamPosition == 1){
objHtml +="队长";
}else if(jsonData[i].teamPosition == 2){
objHtml +="副队长";
}else{
objHtml +="普通队员";
}
objHtml +="</span>";
objHtml +="</p>";
objHtml +="</div>";
objHtml +="<div style='clear:both;'></div>";
objHtml +="</div>";
$("#team_member").html(objHtml);
}
'"+jsonData[i].nickName + "'
for(var i = 0;i <jsonData.length;i++){
$("#team_member").append("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].thumbnail + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">'"+jsonData[i].nickName + "'</span>\
</p>\
<p style=\" font-size:10px; line-height:22px;\">\
职称:\
if(jsonData[i].teamPosition==1){\
<span style=\" font-size:10px;\">'队长'</span>\
}else if(jsonData[i].teamPosition==2)){\
<span style=\" font-size:10px;\">'副队长'</span>\
}else{\
<span style=\" font-size:10px;\">'普通队员'</span>\
}\
</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>");
}
for(var i = 0;i <jsonData.length;i++){
$("#team_member").append("<div style=\"height:100px; width:100%; height:100%; overflow:hidden; \">\
<div style=\"float:left; margin-right:4px;margin-top:5px;\">\
<img src='"+jsonData[i].pic + "' width=\"60\" height=\"60\" />\
</div>\
<div style=\"float:left; \">\
<p style=\"width:126px; white-space: nowrap;overflow:hidden;text-overflow:ellipsis; font-size:12px;line-height:22px;\">\
昵称:<span style=\" font-size:10px;\">'"+jsonData[i].nickName + "'</span>\
</p>\
<p style=\" font-size:10px; line-height:22px;\">\
职称:\
<span style=\" font-size:10px;\">'"+jsonData[i].teamPosition + "'</span>\
</p>\
<p style=\" font-size:10px;line-height:22px;\">\
特长:<span style=\" font-size:10px;\">\
'"+jsonData[i].teamPosition + "'\
</span>\
</p>\
</div>\
<div style=\"clear:both;\"></div>\
</div>"
);
}
cwftalus
http://192.168.1.89/user/team/showMembersInfo.do?id=%27bedd31e9-d4b9-4ab5-a23a-aaae61ed61d7%27
SELECT a.*,c.nick_name,b.thumbnail FROM juju_team_list a left JOIN juju_users c on a.user_account_id = c.user_account_id left JOIN juju_team b ON a.team_id = b.id WHERE a.team_id =
if(jsonData == '验证码输入错误!'){
layer.tips(jsonData, '#change');
}else{
layer.tips(jsonData, '#user_sub');}
{"status":200,"message":null,"data":{"total":20,"pageSize":5,"currPage":1,"results":[{"id":"5cc365a2-2132-4406-87ff-f61d0614f5f3"
,"teamId":null,"userAccountId":"31a7df12-7bd1-4dac-902f-16011bedd156","telephone":null,"status":0,"createTime"
:1432025180000,"lastUpdateTime":null,"stat":1,"teamName":"a","warType":null,"joinNum":1,"thumbnail":""
,"sportId":"1","sportName":"足球","warDesc":"a","nickName":null,"teamPosition":null,"maxNum":1},{"id":"37391a25-220d-4a64-94b7-ee308de65984"
,"teamId":null,"userAccountId":"ccfcde40-3844-4309-b211-4f92dd6ec985","telephone":null,"status":0,"createTime"
:1432024666000,"lastUpdateTime":null,"stat":1,"teamName":"QQQQQQQQ","warType":null,"joinNum":1,"thumbnail"
:"/upload/20150519/8292be0daa2a4030923875c32a8e4f47.png","sportId":"8","sportName":"跑步","warDesc":"DDDDDDDDDDDDDD"
,"nickName":null,"teamPosition":null,"maxNum":67676767},{"id":"0a7be71f-4a41-4457-afef-2fa92b68fad7"
,"teamId":null,"userAccountId":"31a7df12-7bd1-4dac-902f-16011bedd156","telephone":null,"status":0,"createTime"
:1432024440000,"lastUpdateTime":null,"stat":1,"teamName":"A","warType":null,"joinNum":1,"thumbnail":""
,"sportId":"1","sportName":"足球","warDesc":"A","nickName":null,"teamPosition":null,"maxNum":1},{"id":"50ac30dd-81b7-44c0-94fe-5d678c920a86"
,"teamId":null,"userAccountId":"bfe24cdf-33a7-4c5b-8463-49398341227c","telephone":null,"status":0,"createTime"
:1431315566000,"lastUpdateTime":null,"stat":1,"teamName":"QQA","warType":null,"joinNum":1,"thumbnail"
:"/upload/20150511/1431315550396.jpg","sportId":"11","sportName":"卡丁车","warDesc":"小兔子战队","nickName":null
,"teamPosition":null,"maxNum":11},{"id":"21084107-5e35-4865-bdbb-48d76a27255f","teamId":null,"userAccountId"
:"75cee0c2-ab6d-4ff4-bf6f-0716afef8ead","telephone":null,"status":0,"createTime":1431313901000,"lastUpdateTime"
:null,"stat":1,"teamName":"PS","warType":null,"joinNum":1,"thumbnail":"/upload/20150511/1431313889862
.jpg","sportId":"11","sportName":"卡丁车","warDesc":"按时","nickName":null,"teamPosition":null,"maxNum":133
}],"startNum":0}}
SELECT * FROM juju_messages WHERE msg_to_id = '';
SELECT DATE(create_time),DATE(SYSDATE()),HOUR(SYSDATE()),HOUR(create_time),HOUR(SYSDATE())-HOUR(create_time) FROM juju_orders_items LIMIT 10;
SELECT * FROM juju_orders WHERE DATE(create_time) = DATE(SYSDATE())
UPDATE juju_orders SET order_status = -4 WHERE order_status <> 2 AND DATE(create_time) = DATE(SYSDATE()) AND (HOUR(SYSDATE())-HOUR(create_time)) >= 1;
UPDATE juju_orders_items SET order_status = -4 WHERE order_status <> 2 AND DATE(create_time) = DATE(SYSDATE()) AND (HOUR(SYSDATE())-HOUR(create_time)) >= 1;
SELECT NAME,COUNT(*) FROM `yd_venues_info` GROUP BY NAME;
SELECT DISTINCT FROM `yd_venues_info` GROUP BY NAME;
SELECT * FROM `yd_venues_info` WHERE NAME ='121弄健身点'
SELECT * FROM `yd_venues_info` WHERE category NOT LIKE '%社区%' AND category NOT LIKE '%农民体%' AND category NOT LIKE '%百姓%';
<div class="btn_bg" id="cz" check="0" onclick="_click('cz',0);" style="cursor:pointer; background-image:url('images/xz.png')">
<img src="images/czz.png" style="padding-top:2%; " />
</div>
<div class="btn_bg" id="gz" check="1" onclick="_click('gz',1);" style="cursor:pointer;">
<img src="images/gzz.png" style="padding-top:2%; " />
</div>
{"status":200,"message":null,"data":[{"id":310101,"parentId":"310100","name":"黄浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310104,"parentId":"310100","name":"徐汇区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310105,"parentId":"310100","name":"长宁区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310106,"parentId":"310100","name":"静安区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310107,"parentId":"310100","name":"普陀区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310108,"parentId":"310100","name":"闸北区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310109,"parentId":"310100","name":"虹口区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310110,"parentId":"310100","name":"杨浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310112,"parentId":"310100","name":"闵行区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310113,"parentId":"310100","name":"宝山区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310114,"parentId":"310100","name":"嘉定区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310115,"parentId":"310100","name":"浦东新区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310116,"parentId":"310100","name":"金山区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310117,"parentId":"310100","name":"松江区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310118,"parentId":"310100","name":"青浦区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310120,"parentId":"310100","name":"奉贤区","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1},{"id":310230,"parentId":"310100","name":"崇明县","level":3,"createTime"
:null,"lastUpdateTime":null,"stat":1}]}
http://localhost:8080/upload/20150525/ba1d4ab7596b4f83a8ea6d91b409b554.jpg
{"status":200,"message":null,"data":[{"id":"7e7f58e0-5008-48e6-91ff-d2fe3bdb26bb","teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e"
,"userAccountId":"f550d777-f12a-4580-8cfb-531ff6aca4be","telephone":null,"status":1,"createTime":1432714541000
,"lastUpdateTime":null,"stat":1,"teamName":null,"warType":null,"joinNum":null,"thumbnail":"","sportId"
:null,"sportName":null,"warDesc":null,"nickName":"juju_s3978","teamPosition":"0","maxNum":null},{"id"
:"881f9998-7c8b-4fa5-9874-c61531a39d15","teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e","userAccountId"
:"1385f4c9-4e39-48d9-a503-2a9054df7fd0","telephone":null,"status":1,"createTime":1432774434000,"lastUpdateTime"
:null,"stat":1,"teamName":null,"warType":null,"joinNum":null,"thumbnail":"","sportId":null,"sportName"
:null,"warDesc":null,"nickName":"juju_s3978","teamPosition":"0","maxNum":null},{"id":"9143340e-d141-44ef-bc3e-887dcbe26960"
,"teamId":"5300ef28-dce4-4007-8087-d51ac3fa614e","userAccountId":"83faf6f8-05ad-45da-b21c-a6f6d20f87a5"
,"telephone":null,"status":1,"createTime":1432708007000,"lastUpdateTime":null,"stat":1,"teamName":null
,"warType":null,"joinNum":null,"thumbnail":"","sportId":null,"sportName":null,"warDesc":null,"nickName"
:"juju_s3978","teamPosition":"1","maxNum":null}]}
f550d777-f12a-4580-8cfb-531ff6aca4be 1385f4c9-4e39-48d9-a503-2a9054df7fd0 83faf6f8-05ad-45da-b21c-a6f6d20f87a5
文件上传:/upload/20150529/77a106c7cf8b40859e0fde16c5dac571.jpg
http://192.168.1.169/upload/20150529/5cc3c93122c24e359325d971f01649ee.jpg"
APP接口:
http://192.168.1.87/api/m/umanages/login.do?randomPic=000000&accountName=%E6%B5%8B%E8%AF%9501&pwd=a11111 字符窜不加引号的噢
http://192.168.1.87/stadium/findChooseByAdd.do?pageSize=4&currPage=1
userAccountId 00000206-d691-11e4-a9ec-005056c00008
<a href="/app/index.html"><img src="/images/logo.png"></a>
http://192.168.1.103/api/rest/venues/updateInfoByTdc.do?orderno=1432174123209&documentNo=841973440198909033412&cardImage=102.jpg&
sid=97f75f60c1da6256c74d61bbe5ea7db8
seq=1234567891234567891234567891&sidPwd=3bc81b682e949840a8470acfdcc7c71f
12345678912345678912345678913bc81b682e949840a8470acfdcc7c71f
//layer.tips(data.message, '#confirm');
if(data.status == 200){
//console.log(data.status);
window.close();
window.parent.close();
//window.parent.parent.close();
//parent.layer.close(index);
layer.close(index);
layer.close();
}
//身份证正则表达式(15位)
isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/;
//身份证正则表达式(18位)
isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{4}$/;
//15位和18位身份证号码的正则表达式
var regIdCard=/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/;
$("#venueTypes").append("<div style=' float:left; font-size:12px; width:68px;'><input type='checkbox' name='venueType' onclick=\"setSelectAll();\" id='venueType"+ i +"' value=\'"+jsonData[i].id+"\'><label style='color:rgb(255, 255, 255);' for='venueType"+ i +"'>"+jsonData[i].sportName+"</label></option>");
<div style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;" id="showName">vivian-1111111121111</div>
<div class="cls_hand" style="height:40px;padding-top:10px;margin-right:10px;vertical-align:middle;float:left;" onclick="userManage();">
<img style="vertical-align:middle;" src="/images/sign_in.png">
您好,
<span id="showName">vivian-1111111121111</span>
</div>
<div class="cls_hand" style="height: 40px; padding-top: 10px; margin-right: 10px; vertical-align: middle; float: left;" onclick="userManage();">
<div style="float: left;">
<img style="vertical-align: middle;" src="/images/sign_in.png">
您好,
</div>
<div id="showName" style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;">vivian-1111111121111</div>
</div>
<div style='float: left;'>
<img src="/images/sign_in.png" style="vertical-align: middle;" />您好,
</div>
<div id="showName" style="float: left; max-width: 80px; white-space: nowrap; word-break: keep-all; /* 不换行 */ overflow: hidden; text-overflow: ellipsis;"></div>
http://192.168.1.103/venues/4c3d6d20-1d98-43f6-95a9-ad6573c28fa6.do
192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do user_account_id
192.168.1.70/preOrder/dateList/48311661-41fe-4383-b593-e077dabe8f05.do
192.168.1.70/preOrder/hourList/48311661-41fe-4383-b593-e077dabe8f05.do
192.168.1.70/preOrder/spaceLists/48311661-41fe-4383-b593-e077dabe8f05.do
预定信息:
<!--
<#list spaceOpenTimelist as y>
${y.openWeek} ${y.price} ${y.startTime} ${y.endTime}
</#list>
-->
http://192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do
http://192.168.1.103/space/48311661-41fe-4383-b593-e077dabe8f05.do
<!--
<#if sportTypeDtoList ??>
<#list sportTypeDtoList as x>
<a id="${x.sportType}" class="cur" href="###">${x.sportName}</a>
</#list>
</#if>
-->
<a id="basketball" class="cur" href="###">篮球</a>
<a id="football" href="###">足球</a>
http://192.168.1.103/venues/48311661-41fe-4383-b593-e077dabe8f05.do###
http://192.168.1.103/venues/1b444c45-3af5-4f9e-92af-d84cb233d84f.do###
http://192.168.1.103/venue_detail.html
<script>
$(function(){
//paybox标题显示
$('.pay_box h2').html($('.sbutton_box').find('a').eq(0).text()).attr('id',$('.sbutton_box').find('a').eq(0).attr('id'))
//体育馆种类切换
$('.sbutton_box a').on('click',function(){
$(this).addClass('cur').siblings('a').removeClass('cur')
$('.pay_box h2').html($(this).text()).attr('id',$(this).attr('id'))
})
//时间切换
$('.week_box ul li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur')
})
//选择场地和时间
$('.choose_box ul li.res').on('click',function(){
alert("abc");
$(this).toggleClass('cur');
})
//评论打分
var g_score = 0;
$('.grade_box ul li').on('click',function(){
$('.grade_box ul li').removeClass('cur')
$(this).prevAll('li').andSelf().addClass('cur')
g_score = $(this).index() +1
})
//切换场馆
$('.next_arr').on('click',function(){
$('.container ul').css('left', '-896px')
})
$('.prev_arr').on('click',function(){
$('.container ul').css('left', 0)
})
})
</script>
style="display:none;"
${(venusInfoDto.nickName)!} 加!做非空判断
13012817028
[INFO ][2015-07-14 17:39:50,735] - {"accessTime":"2015-07-14 17:39:50","host":"127.0.0.1:8080","requestURL":"http://127.0.0.1:8080/api/upload.do","requestURI":"/api/upload.do","contextPath":"","contentType":"multipart/form-data; boundary\u003d----WebKitFormBoundary2MM3gEAXc5Wr71V4","contextLength":35670,"method":"POST","parameterMap":{"id":["0125"]}}
[INFO ][2015-07-14 17:39:50,745] - 文件长度: 35398
[INFO ][2015-07-14 17:39:50,746] - 文件类型: image/jpeg
[INFO ][2015-07-14 17:39:50,746] - 文件名称: file
[INFO ][2015-07-14 17:39:50,746] - 文件原名: 1.jpg
[INFO ][2015-07-14 17:39:50,746] - ========================================
[INFO ][2015-07-14 17:39:50,761] - filePaht :F:\yin\/20150714/98c28b85df044d499fecaf667720e778.jpg
"<form action="/api/uploadEx.do" method="post" enctype="multipart/form-data" style="display: none;"></form>"
var _pageTag = getQueryStringByName('_pageTag');
function getQueryStringByName(name){
var result = location.search.match(new RegExp("[\?\&]" + name+ "=([^\&]+)","i"));
if(result == null || result.length < 1){
return "";
}
return result[1];
}
<a href="login.html?_pageTag=login">登录</a> | <a href="login.html?_pageTag=reg">注册</a>
http://192.168.1.70/api/message/findMessByOwner.do
{"status":200,"message":null,"data":{"total":17,"pageSize":3,"currPage":1,"results":[{"id":"80d3b5c1-01c6-4fa2-a0ca-d395ecd3ca48"
,"msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57","msgToId":"48311661-41fe-4383-b593-e077dabe8f05"
,"msgTime":1436976000000,"attachment":"","msgStatus":0,"createTime":1437026929000,"lastUpdateTime":1437026929000
,"stat":1,"userAccount":"哈瓦一","msgContent":"撒地方阿道夫撒旦","msgScore":5,"userImg":"","showMsgTime":"2015-07-16"
,"msgResource":1},{"id":"7851a155-938f-46fd-86d0-8ef3a3bd262a","msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57"
,"msgToId":"48311661-41fe-4383-b593-e077dabe8f05","msgTime":1436976000000,"attachment":"","msgStatus"
:0,"createTime":1437025770000,"lastUpdateTime":1437025770000,"stat":1,"userAccount":"哈瓦一","msgContent"
:"哈哈哈奤","msgScore":5,"userImg":"","showMsgTime":"2015-07-16","msgResource":1},{"id":"52276cb5-2ba0-466e-8236-016f7fb01bc7"
,"msgType":5,"msgFromId":"48191c60-1f06-47f4-908f-d810b6420d57","msgToId":"48311661-41fe-4383-b593-e077dabe8f05"
,"msgTime":1436976000000,"attachment":"","msgStatus":0,"createTime":1437025461000,"lastUpdateTime":1437025461000
,"stat":1,"userAccount":"哈瓦一","msgContent":"uuuuu","msgScore":3,"userImg":"","showMsgTime":"2015-07-16"
,"msgResource":1}],"startNum":0}}
Freemarker:
<input type="text" id="xLocation" name="xLocation" value="${(xLocation)!}"/>
<input type="text" id="yLocation" name="yLocation" value="${(yLocation)!}"/>
<input type="text" id="xLocation1" name="xLocation1" value="${(xLocation1?double)!}"/>
<input type="text" id="yLocation1" name="yLocation1" value="${(yLocation1?double)!}"/>
{"status":200,"message":null,"data":[{"id":"fdef643e-2bb5-4f1e-8b64-5f90d29f218d","userAccountId":"74c5f7d3-d8ee-4d2e-ae46-7d9a59e5394c"
,"userAccount":null,"provinceid":null,"provinceName":null,"cityid":null,"cityName":null,"countryid":null
,"countryName":null,"address":"dd","contacts":"dd","mobileNo":"13077777777","descs":null,"chargeType"
:null,"chargeTypeName":null,"venueType":null,"venueTypeNames":null,"otherServices":null,"email":null
,"nickName":"13077777777","userLevel":null,"userScore":null,"createTime":null,"lastUpdateTime":null,"stat"
:null,"status":null,"venueImg":null,"maxNum":null,"sportTypeList":null,"serviceTypeList":null,"teamType"
:null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard":null,"venueOperateLicense"
:null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id":"fcd404b8-9116-44aa-9088-659f48f6c346"
,"userAccountId":"fb727557-f295-471b-b5fd-e58df0089e2c","userAccount":null,"provinceid":-1,"provinceName"
:null,"cityid":-1,"cityName":null,"countryid":-1,"countryName":null,"address":"","contacts":null,"mobileNo"
:"15563636363","descs":null,"chargeType":null,"chargeTypeName":null,"venueType":null,"venueTypeNames"
:null,"otherServices":null,"email":null,"nickName":"15563636363","userLevel":null,"userScore":null,"createTime"
:null,"lastUpdateTime":null,"stat":null,"status":null,"venueImg":null,"maxNum":null,"sportTypeList":null
,"serviceTypeList":null,"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName"
:null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":1.0,"ylocation"
:2.0}]}
<li>
<img class="portrait_s" src="border='0'">
<div class="cout">
<h2>
哈瓦一
<img border="0" src="/img/dis_star_4.png">
<span class="time">2015-07-17来自web客户端</span>
</h2>
<p>sad as as as</p>
</div>
</li>
$(function(){
loadCheckSport();
loadCheckService();
loadDateList();//加载日期
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadVenuesClick();;
loadWeekClick();
loadclickFunction();//加载点击事件
loadMessagesBy();//异步加载评论信息
loadfabuinfo();
loadtijiaoOrder();
venuesBySeat(); //加载附近场馆信息
checkTextAeaLen(); //场馆评价字数
});
var index="";
function ajax_open() {
index = $.layer({
type: 2,
title: false, //不显示默认标题栏
shade: [0.5, '#000'], //不显示遮罩
shift: 'top', //从头动画弹出
area: ['800px', '520px'],
iframe: { src: '/ajax_login.html' }
});
}
function close(u){
layer.close(index);
$.post("/umanages/showUserAccount.do",{},function (data){
var userAccount=data.data;
if(userAccount.type==1){
$(".login").html("<a href='/personal_center.html'>"+u.data+"</a>");
}else{
$(".login").html("<a href='/app/site/siteIndex.html'>"+u.data+"</a>");
}
});
//alert(data.data);
}
function validatemobile() {
var mobile = $("#cellphone").val();
if (mobile.length == 0) {
layer.msg("请输入您的电话号码!", 1, 1);//alert("系统错误!");
return false;
}
if (mobile.length != 11) {
layer.msg("请输入有效的手机号码!", 1, 1);//alert("系统错误!");
return false;
}
var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/;
if (!myreg.test(mobile)) {
layer.msg("请输入有效的手机号码!", 1, 1);//alert("系统错误!");
return false;
}
return true;
};
function loadtijiaoOrder(){
$("#orderSave").click(function(){
var trLength = $("#choosed_item_box").find("span").length;
if(trLength==0){
layer.msg("请先选择场地!", 1, 1);//alert("系统错误!");
return false;
}
if(!validatemobile()){
return false;
}
var orderItems = "";
var itemPrices = "";
var itemSpaceName = "";
$(".choosed_item_box span").each(function(index,domEle){
orderItems+=domEle.id+",";
itemPrices+=$(domEle).attr("data-price")+",";
itemSpaceName+=$(domEle).attr("data-spacename")+",";
});
var ownerAccountId = $("#ownerAccountId").val();
var telephone = $("#cellphone").val();
var orderDate = $("#orderTime").val();
var orderTotal = $(".price").attr("data-price");//.val();
var sportType = $("#sportTypeId").val();
var validCode = $("#identifycode").val();
var jsonData = {validCode:validCode,sportType:sportType,orderTotal:orderTotal,ownerAccountId:ownerAccountId,telephone:telephone,orderTime:orderDate,orderItems:orderItems,itemPrices:itemPrices,itemSpaceName:itemSpaceName};
$.ajax({
url: "/api/orderBuy/buy.do",
data: jsonData,
async:false,
type: 'POST',
dataType: 'json',
success: function (data) {
//console.log(data);
if(data.status == '500'){
if(data.data.enable==0){//为登录处理
ajax_open();
return false;
}
layer.msg(data.message, 1, 1);//alert("系统错误!");
return false;
}else{
layer.msg(data.message, 1, 1);//alert("系统错误!");
if(data.data.gotoPay==1){//需要支付
check(data.data.orderId);
}else{//无须支付
freeCheck(data.data.orderId);
}
}
}
});
});
};
function freeCheck(orderIdNo){
$("#orderId").val(orderIdNo);
$("#freePayForm").submit();
}
function check(orderIdNo){
$("#orderId").val(orderIdNo);
$("#payForm").submit();
}
function loadCheckSport(){
$(".sbutton_box a").each(function(index,domEle){
if($(domEle).attr("class")=="cur"){
$("#sportTypeId").val($(domEle).attr("data-v"));
}
if($(domEle).attr("data-v")==1){
$(domEle).attr("id","football");
}else if($(domEle).attr("data-v")==2){
$(domEle).attr("id","basketball");
}else if($(domEle).attr("data-v")==3){
$(domEle).attr("id","badminton");
}else if($(domEle).attr("data-v")==8){
$(domEle).attr("id","running");
}
});
}
function loadCheckService(){
$(".device ul li").each(function(index,domEle){
if($(domEle).text()=="停车位"){
$(domEle).attr("id","park");
}else if($(domEle).text()=="WIFI"){
$(domEle).attr("id","wifi");
}else if($(domEle).text()=="商品有售"){
$(domEle).attr("id","shop");
}
});
}
//获取所有右侧栏订单,并实现订单删除功能
function orderDel(orderId,start){
id=orderId+"_"+start
$("#choosed_item_box span").each(function(){
if($(this).attr("id")==id){
$(this).remove();
return ;
}
});
}
function loadLastClick(){
//选择场地和时间
$("#choosed_item_box").html("");
$('.choose_box ul li.res').on('click',function(){
orderDel($(this).attr('data-space')+"",$(this).attr('data-start'));
var data_tag=$(this).attr('data-tag');
var data_price=$(this).attr('data-price');
if(data_price=="null"){
data_price=0;
}
var data_spaceId=$(this).attr('data-space');
var data_spacename=$(this).attr('data-spacename');
var data_start=$(this).attr('data-start');
var data_end=$(this).attr('data-end');
if(data_tag == 0){
var len= $('#choosed_item_box').children('span').length;
if(len >= 4){
layer.msg("一个用户一次最多预订4块场地!", 1, 1);
return false;
}
//id='"+$("#" + cid).attr('data-space-id')+"_"+$("#sjTime").val()+"'
$("#choosed_item_box").append("<span id='"+data_spaceId+"_"+data_start+"' data-spacename='"+data_spacename+"' data-price ='" + data_price +"' data_tag =" + data_tag +">"+ data_start + ":00-" + data_end + ":00 " + data_spacename + " " + data_price + "元</span>");
$(this).attr("data-tag",1);
//将原来的data-flag赋值为1
}else{
$("#"+data_spaceId+data_start).remove();
$(this).attr("data-tag",0);
}
$(this).toggleClass('cur');
var itemPrices=0;
$(".choosed_item_box span").each(function(index,domEle){
itemPrices+= parseInt($(domEle).attr("data-price"));
});
$(".price").html("¥" + itemPrices + "元");
$(".price").attr("data-price",itemPrices);
});
};
function loadWeekClick(){
//week切换内容
$('.week_box li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur');
$("#orderTime").val($(this).attr("data-tag"));
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadLastClick();//加载点击事件
$(".price").html("¥ 0 元");
$(".price").attr("data-price",0);
//$('#page_' + $(this).attr('tag')).addClass('show').siblings('div').removeClass('show')
});
};
//场馆类型切换内容
function loadVenuesClick(){
//体育馆种类切换
$('.sbutton_box a').on('click',function(){
$(this).addClass('cur').siblings('a').removeClass('cur');
$('.pay_box h2').html($(this).text()).attr('id',$(this).attr('id'));
if($(this).attr("class")=="cur"){
$("#sportTypeId").val($(this).attr("data-v"));
};
loadDateList();//加载日期
loadHourList();//加载场地开放时间
loadSpaceList();//加载场地信息
loadLastClick();//加载点击事件
$(".price").html("¥ 0 元");
$(".price").attr("data-price",0);
});
}
function loadclickFunction(){
//显示场馆评分
var m_count = Math.floor($('.score').find('span').text())
for(i=0;i<m_count;i++){
$('.score ul').find('li').eq(i).addClass('org')
}
//paybox标题显示
$('.pay_box h2').html($('.sbutton_box').find('a').eq(0).text()).attr('id',$('.sbutton_box').find('a').eq(0).attr('id'))
//时间切换
$('.week_box ul li').on('click',function(){
$(this).addClass('cur').siblings('li').removeClass('cur');
})
//评论打分
var g_score = 0;
$('.grade_box ul li').on('click',function(){
$('.grade_box ul li').removeClass('cur')
$(this).prevAll('li').andSelf().addClass('cur')
g_score = $(this).index() +1
});
//切换场馆
$('.next_arr').on('click',function(){
$('.container ul').css('left', '-896px')
})
$('.prev_arr').on('click',function(){
$('.container ul').css('left', 0)
});
loadLastClick();
};
function loadDateList(){
// var userAccountId = '1b444c45-3af5-4f9e-92af-d84cb233d84f';
var ownerAccountId = $("#ownerAccountId").val();
var postUrl = "/venues/dateList/"+ownerAccountId+".do";
jQuery.ajax({
url: postUrl,
type: 'POST',
async:false,
dataType: 'json',
error: erryFunction, //错误执行方法
success: succFunction //成功执行方法
});
function succFunction(data){
// console.log(data);
var weekListObj = $("#week_list");
weekListObj.empty();
$.each(data, function(index, item) {
var dateobj = item['date'].split("-");
var month= dateobj[1];
var day= dateobj[2];
var date = month + "/" + day;
var objHtml = "";
if(index==0){
objHtml += " <li class=\"cur\" data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">今天</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}
else if(index==1){
objHtml += " <li data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">明天</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}else{
objHtml += " <li data-tag="+item['date']+"><span class=\"date\">周"+item['week']+"</span><span class=\"date_t\">"+date+"</span><span class=\"remainder\"><span id="+item['date']+">剩余18场</span></li>";
}
weekListObj.append(objHtml);
});
loadWeekClick();
}
function erryFunction(){
//alert('系统错误!');
layer.msg("系统错误!", 1, 1);
};
}
function loadHourList(){
var ownerAccountId = $("#ownerAccountId").val();
var orderTime = $("#orderTime").val();
var postUrl = "/venues/hourList/"+ownerAccountId+".do";
var jsonData = {ownerAccountId:ownerAccountId,orderTime:orderTime}
$.ajax({
url: postUrl,
data: jsonData,
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var hourListObj = $("#timelist");
hourListObj.empty();
$.each(data, function(index, item) {
var objHtml = "";
//console.log("data"+data);
objHtml += "<li>" + item + ":00" +"</li>";
hourListObj.append(objHtml);
});
}
});
}
function loadSpaceList(){
var ownerAccountId = $("#ownerAccountId").val();
var orderTime = $("#orderTime").val();
var postUrl = "/venues/spaceList/"+ownerAccountId+".do";
var sportTypeId =$("#sportTypeId").val();
var jsonData = {ownerAccountId:ownerAccountId,orderTime:orderTime,sportId:sportTypeId}
$.ajax({
url: postUrl,
data: jsonData,
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var spaceListObj = $("#spaceList");
spaceListObj.empty();
$.each(data, function(key, value) {
var objHtml = "";
objHtml += " <div id='page_day'><ul><p>" + key + "</p>";
$.each(value, function(index, item) {
var isnull=item['price'];
if(!isnull){
isnull=0;
}
//var data_tag = 'tag' + index;
if(item['isUser']==2){//已经被选择 不能点击
objHtml += "<li></li>";
}else{
objHtml += "<li class=\"res\" data-price="+item['price']+" data-space="+item['spaceId']+" data-spacename="+key+" data-config="+item['isUser']+" data-space="+key+" data-start="+item['startHour']+" data-end="+item['endHour']+" data-tag = 0>"+ isnull+"元"+"</li>";
}
//console.log(key+"--"+item);
});
objHtml += "</ul></div>";
spaceListObj.append(objHtml);
});
if($("#spaceList div").length < 1){
var hourListObj = $("#timelist");
hourListObj.empty();
spaceListObj.addClass('redalert');
spaceListObj.append("抱歉,当前没有场地可预定!");
}else{
spaceListObj.removeClass('redalert');
}
//完成之后获取剩余场数量
loadSpaceNum();
}
});
};
function loadSpaceNum(){
var resLength = $("#page_day ul li.res").length;
var $Id = $("#orderTime").val();
var resObj = $("#"+$Id);
resObj.html("剩余"+resLength+"场");
// console.log("resLength"+resLength);
};
function loadMessagesBy(){
var ownerAccountId = $("#ownerAccountId").val();
var pageSize =$("#pageSize").val();
var currPage = $("#currPage").val();
$("#pfAll").html('');
jQuery.ajax({
url: '/api/message/findMessByOwner.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,pageSize:pageSize,currPage:currPage},
success: function(data){
$(".message_box ul").html('');
if(data==''){
$(".message_box").html("<h2 align=center>暂无评论!</h2>")
}else{
var myObject = data.data;
if(myObject!=null){
var Obj = myObject.results;
var objHtml='';
for(var i =0;i<Obj.length;i++){
objHtml+="<li>";
if(Obj[i].userImg == null || Obj[i].userImg == "" ){
objHtml+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
objHtml+="<img class='portrait_s' src='"+Obj[i].userImg+"' border='0'>";
}
objHtml+="<div class='cout'>";
objHtml+="<h2>";
var b = '';
if(Obj[i].msgResource==1){b="来自web客户端";} else if(Obj[i].msgResource==2){b="来自手机客户端";}
if(Obj[i].msgScore!=null){
objHtml+="<span class='userAccountName'>"+Obj[i].userAccount+"</span> <img src='/img/dis_star_"+Obj[i].msgScore+".png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}else{
objHtml+="<span class='userAccountName'>"+Obj[i].userAccount+"</span> img src='/img/dis_star_3.png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}
objHtml+="</h2>";
objHtml+="<p>"+Obj[i].msgContent+"</p>";
objHtml+="</div>";
objHtml+="</li>";
}
$(".message_box ul").append(objHtml);
var totals = myObject.total;
var currPages = myObject.currPage;
$("#pfsize").html("("+totals+"条评论)");
var tempCurr =0;
if(totals%10==0){
tempCurr = parseInt(totals/3);
}else{
tempCurr = parseInt(totals/3+1);
}
$("#currPage").val(myObject.currPage);
$(".load_mes").click(function(event){
findMore();
});
}
}
}
});
};
function loadfabuinfo(){
$("#fabu").click(function(){
var ownerAccountId = $("#ownerAccountId").val();
var pf = $(".grade_box ul li.cur").length;
if(pf==0){
pf = 5;
}
var pfText= $("#pfText").val();
if(pfText.length>140){
layer.msg("评论字数不能超过140字", 1, 1);
return false;
}else if($.trim(pfText)==''){
layer.msg("评论不能为空",1,1);
return false;
}else{
jQuery.ajax({
url: '/api/message/insert.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,msgContent:pfText,msgScore:pf,msgResource:1},
success: function(data){
if(data.status==500){
layer.msg(data.message, 1, 1);
}else{
var dataObj = data.data;
var pfAllObj = $(".message_box ul");
var pfList = "";
pfList+="<li>";
if(dataObj['userImg'] == "" || dataObj['userImg'] == null){
pfList+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
pfList+="<img class='portrait_s' src="+dataObj['userImg']+" border='0'>";
}
pfList+="<div class='cout'>";
pfList+="<h2>";
var b = '';
if(dataObj['msgResource']==1){b="来自web客户端";} else if(dataObj['msgResource']==2){b="来自手机客户端";}
if(dataObj['msgScore']!=null){
pfList+="<span class='userAccountName'>"+dataObj['userAccount']+"</span> <img src='/img/dis_star_"+dataObj['msgScore']+".png' border='0'><span class='time'>"+dataObj['showMsgTime']+b+"</span>";
}else{
pfList+="<span class='userAccountName'>"+dataObj['userAccount']+"</span> img src='/img/dis_star_3.png' border='0'><span class='time'>"+dataObj['showMsgTime']+b+"</span>";
}
pfList+="</h2>";
pfList+="<p>"+dataObj['msgContent']+"</p>";
pfList+="</div>";
pfList+="</li>";
pfAllObj.prepend(pfList);
$("#pfText").val('');
//$("#pfsize").html(parseInt($("#totalLists").html())+1);
layer.msg("评论发布成功", 1, 1);
}
}
});
}
});
};
function findMore(){
var currPage =parseInt($("#currPage").val())+1;
var pageSize = parseInt($("#pageSize").val());
var ownerAccountId = $("#ownerAccountId").val();
jQuery.ajax({
url: '/api/message/findMessByOwner.do',
type: 'POST',
dataType: 'json',
async:false,
data:{msgToId:ownerAccountId,pageSize:pageSize,currPage:currPage},
success: function(data){
var myObject = data.data;
if(myObject==null){
$(".load_mes").html("没有更多评论了。");
}else{
var Obj = myObject.results;
var objHtml='';
for(var i =0;i<Obj.length;i++){
objHtml+="<li>";
if(Obj[i].userImg == "" ||Obj[i].userImg == null ){
objHtml+="<img class='portrait_s' src='/images/king.jpg' border='0'>";
}else{
objHtml+="<img class='portrait_s' src="+Obj[i].userImg+" border='0'>";
}
objHtml+="<div class='cout'>";
objHtml+="<h2>";
var b = '';
if(Obj[i].msgResource==1){b="来自web客户端";} else if(Obj[i].msgResource==2){b="来自手机客户端";}
if(Obj[i].msgScore!=null){
objHtml+="<img src='/img/dis_star_"+Obj[i].msgScore+".png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
}else{
objHtml+="<img src='/img/dis_star_3.png' border='0'><span class='time'>"+Obj[i].showMsgTime+b+"</span>";
};
objHtml+="</h2>";
objHtml+="<p>"+Obj[i].msgContent+"</p>";
objHtml+="</div>";
objHtml+="</li>";
}
$(".message_box ul").append(objHtml);
var totals = myObject.total;
var currPages = myObject.currPage;
$("#pfsize").html("("+totals+"条评论)");
// var tempCurr =0;
// if(totals%10==0){
// tempCurr = parseInt(totals/3);
// }else{
// tempCurr = parseInt(totals/3+1);
// }
$("#currPage").val(myObject.currPage);
// $(".load_mes").click(function(event){
// findMore();
// });
}
}
});
};
function refreshImage(_this){
var imageUrl = '/draw/drawRandom.do'; //你的生成图片的页面
_this.src = imageUrl + '?' + Math.random();
};
//获取附近场馆信息
function venuesBySeat(){
var xLocation = $("#xLocation").val() * 1;
var yLocation = $("#yLocation").val() * 1;
var postUrl = "/api/m/venue/queryBySeat.do";
$.ajax({
url: postUrl,
data: {longitude:xLocation,latitude:yLocation},
type: 'POST',
async:false,
dataType: 'json',
success: function (data) {
var str = data.data;
var strText = "";
strText += "<ul>";
for (var i = 0; i <str.length; i++) {
var address =str[i].address;
if(address.length>9){
address=address.substring(0,9)+"...";
}
if(str[i].spaceNum==0){
str[i].spaceNum=5;
}
if(str[i].venueImg=="" | str[i].venueImg == null){
strText += "<li style=\"cursor:pointer;\" onclick='toven(\""+str[i].id+"\");'><img src=\"/img/venue_t.jpg\" width=\"200\" height=\"200\" alt=\"\"/><p><span class=\"name\">"+address+"</span><span class=\"score\">"+str[i].spaceNum+".0</span></p></li>";
}else{
strText += "<li style=\"cursor:pointer;\" onclick='toven(\""+str[i].id+"\");'><img src=\""+str[i].venueImg+"\" width=\"200\" height=\"200\" alt=\"\"/><p><span class=\"name\">"+address+"</span><span class=\"score\">"+str[i].spaceNum+".0</span></p></li>";
}
}
strText += "</ul>";
$("#venuesBySeat").html("");
$("#venuesBySeat").html(strText);
}
})
}
function checkTextAeaLen(){
var limitNum = 140; //数据库为varchar(255)
//var pattern = '还可以输入' + limitNum + '字符';
$('#num').html(limitNum);
var teamDescLen = $("#pfText").val().length;
if(teamDescLen>255){
$('.num').html("字数超过限制!");
}else{
var result = limitNum - teamDescLen;
pattern = '还可输入' + result + '字';
$('.num').html(pattern);
}
/* $('#teamDesc').keyup(function(){
var remain = $(this).val().length;
if(remain > 255){
pattern = "字数超过限制!";
}else{
var result = limitNum - remain;
pattern = '还可以输入' + result + '字符';
}
$('#contentwordage').html(pattern);
}); */
$('#pfText').on('propertychange input keyup', function() {
var remain = $(this).val().length;
var result = limitNum - remain;
if(remain > 140){
pattern = "字数超过限制!";
}else{
pattern = '还可输入' + result + '字';
$('.num').html(pattern);
}
});
}
//跳转
function toven(id){
location.href="/venues/"+id+".do";
}
●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●
{"status":200,"message":null,"data":{"total":24,"pageSize":16,"currPage":1,"results":[{"id":"4c3d6d20-1d98-43f6-95a9-ad6573c28fa6"
,"userAccountId":"48311661-41fe-4383-b593-e077dabe8f05","userAccount":null,"provinceid":310000,"provinceName"
:null,"cityid":310100,"cityName":null,"countryid":310101,"countryName":null,"address":"宝山区一二八纪念路401号
一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号一二八纪念路401号","contacts":"哈达威","mobileNo":"13012817022"
,"descs":"运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项运动城交通便利
,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球
,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及
外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间
,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运
动项目。运动城交通便利,地铁一号线与三号线之间,南运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达
商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球
,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万
达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中
环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动鸿飞运动城为综合性体育运动场所,有羽毛球,足球,乒乓球,桌球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻
宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便
利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动与三号线之间,南北高架,中环线及外环线
包围,紧邻宝山万达商业广场,四周居民区高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环
绕。羽毛高架,中环线及外环线包围,紧邻宝山万达商业广球等运动项目。运动城交通便利,地铁一号线与三号线之间,南北高架,中环线及外环线包围,紧邻宝山万达商业广场,四周居民区环绕。羽毛环绕。WWWWWWWWWWWWW
羽毛球WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW"
,"chargeType":1,"chargeTypeName":null,"venueType":"1,2,3,8","venueTypeNames":null,"otherServices":"1
,2,3","email":"","nickName":"卢湾体育馆","userLevel":null,"userScore":3,"createTime":1429012312000,"lastUpdateTime"
:1436525818000,"stat":1,"status":null,"venueImg":"/upload/20150612/00daedba7d8f4e78b181eecbb1860d63.jpg"
,"maxNum":333,"sportTypeList":[{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}]
,"serviceTypeList":[{"id":"2","serviceName":"商品有售","createTime":null,"lastUpdateTime":null,"stat":1}
,{"id":"3","serviceName":"停车位","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"1","serviceName"
:"WIFI","createTime":null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum"
:0,"pageSize":0,"spaceNum":4,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense"
:null,"xlocation":null,"ylocation":null},{"id":"9402fead-04a5-432c-9ba1-87c181ce9096","userAccountId"
:"b50cd8d0-46b4-4c9f-9e2a-0e4aa2b40671","userAccount":null,"provinceid":310000,"provinceName":null,"cityid"
:310100,"cityName":null,"countryid":310101,"countryName":null,"address":"dddd","contacts":null,"mobileNo"
:"13800138000","descs":null,"chargeType":0,"chargeTypeName":null,"venueType":"1,10,11,12,13,14,15,2,3
,4,5,6,7,8,9","venueTypeNames":null,"otherServices":null,"email":null,"nickName":"[email protected]","userLevel"
:null,"userScore":null,"createTime":1434019893000,"lastUpdateTime":1434019893000,"stat":1,"status":null
,"venueImg":"/upload/20150612/00daedba7d8f4e78b181eecbb1860d63.jpg","maxNum":null,"sportTypeList":[{"id"
:"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"3","sportName"
:"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"1","sportName":"足球"
,"createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime"
:1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList":[],"teamType":null,"isFalse"
:null,"startNum":0,"pageSize":0,"spaceNum":1,"adminName":null,"adminIdCard":null,"venueOperateLicense"
:null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id":"1903515d-82d7-4057-bf3b-586bcbb33a3b"
,"userAccountId":"2fd91780-d0ff-4fe2-a146-7ceaca5edb03","userAccount":null,"provinceid":310000,"provinceName"
:null,"cityid":310100,"cityName":null,"countryid":310101,"countryName":null,"address":"闵行区莲花南路1500号,
麦多生活广场","contacts":"","mobileNo":"15618785577","descs":"室外篮球馆,临近商圈,交通方便,附近生活设施丰富。","chargeType":1,"chargeTypeName"
:null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices":"1,2,3"
,"email":"[email protected]","nickName":"园园园园园园园园园园dXX","userLevel":null,"userScore":5,"createTime":1431751687000
,"lastUpdateTime":1432537589000,"stat":1,"status":null,"venueImg":"/upload/20150516/a81ac16e458c411d8e809572889d75c9
.jpg","maxNum":800,"sportTypeList":[{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[{"id":"3","serviceName":"停车位","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"2","serviceName"
:"商品有售","createTime":null,"lastUpdateTime":null,"stat":1},{"id":"1","serviceName":"WIFI","createTime"
:null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum"
:1,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation"
:null,"ylocation":null},{"id":"298b823f-42a2-49a8-907a-bd49c6c324d1","userAccountId":"3dae99e7-d5eb-4aa1-a8b7-204af5fe3723"
,"userAccount":null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid"
:310101,"countryName":null,"address":"黄浦区新天地","contacts":null,"mobileNo":"13812345678","descs":null,"chargeType"
:0,"chargeTypeName":null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices"
:null,"email":null,"nickName":"13912345678","userLevel":null,"userScore":null,"createTime":1432876979000
,"lastUpdateTime":1432876979000,"stat":1,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb
.jpg","maxNum":null,"sportTypeList":[{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard"
:null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id"
:"db743eed-2d84-4e6a-b557-3e01a080b884","userAccountId":"ee1632cb-0154-410b-9581-43d278261769","userAccount"
:null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid":310101,"countryName"
:null,"address":"新天地","contacts":null,"mobileNo":"15912345679","descs":null,"chargeType":0,"chargeTypeName"
:null,"venueType":"1,10,11,12,13,14,15,2,3,4,5,6,7,8,9","venueTypeNames":null,"otherServices":null,"email"
:null,"nickName":"15912345678","userLevel":null,"userScore":null,"createTime":1432534774000,"lastUpdateTime"
:1432534774000,"stat":1,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg"
,"maxNum":null,"sportTypeList":[{"id":"3","sportName":"羽毛球","createTime":1427126400000,"lastUpdateTime"
:1427126400000,"stat":1},{"id":"8","sportName":"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000
,"stat":1},{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat"
:1},{"id":"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList"
:[],"teamType":null,"isFalse":null,"startNum":0,"pageSize":0,"spaceNum":0,"adminName":null,"adminIdCard"
:null,"venueOperateLicense":null,"venueBusinessLicense":null,"xlocation":null,"ylocation":null},{"id"
:"0d04c48d-2c87-4967-96bd-3529ec240a8d","userAccountId":"1b444c45-3af5-4f9e-92af-d84cb233d84f","userAccount"
:null,"provinceid":310000,"provinceName":null,"cityid":310100,"cityName":null,"countryid":310101,"countryName"
:null,"address":"","contacts":"","mobileNo":"13415251253","descs":"","chargeType":1,"chargeTypeName"
:null,"venueType":"1,2,3,8","venueTypeNames":null,"otherServices":"1","email":"","nickName":"13852514245"
,"userLevel":null,"userScore":null,"createTime":1433905836000,"lastUpdateTime":1437113601000,"stat":1
,"status":null,"venueImg":"/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg","maxNum":100,"sportTypeList"
:[{"id":"1","sportName":"足球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id"
:"2","sportName":"篮球","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"8","sportName"
:"跑步","createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1},{"id":"3","sportName":"羽毛球"
,"createTime":1427126400000,"lastUpdateTime":1427126400000,"stat":1}],"serviceTypeList":[{"id":"1","serviceName"
:"WIFI","createTime":null,"lastUpdateTime":null,"stat":1}],"teamType":null,"isFalse":null,"startNum"
:0,"pageSize":0,"spaceNum":null,"adminName":null,"adminIdCard":null,"venueOperateLicense":null,"venueBusinessLicense"
:null,"xlocation":null,"ylocation":null}],"startNum":0}}
"NetworkError: 404 Not Found - http://192.168.1.70/upload/20150615/0ff4255b0772eead9f99fab5842ebedb.jpg"
0ff4255...edb.jpg
3d1e0cf0-96be-482a-af2c-04adde6c0870
http://192.168.1.103/app/news/index.html?index=lxwm
http://192.168.1.103/app/news/index.html?index=lxwm%20target=
[INFO ][2015-07-21 09:02:49,437] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/loginV2.do","requestURI":"/umanages/loginV2.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":46,"method":"POST","parameterMap":{"accountName":["13012817028"],"pwd":["a11111"],"repwdflag":["1"]}}
[DEBUG][2015-07-21 09:02:49,438] - user login accountName=13012817028 pwd=a11111randomPic=null
[DEBUG][2015-07-21 09:02:49,439] - user login accountName=13012817028 pwd=a11111
[INFO ][2015-07-21 09:02:49,439] - slave
[DEBUG][2015-07-21 09:02:49,442] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,442] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account WHERE ( password = ? and user_account = ? and stat = ? )
[DEBUG][2015-07-21 09:02:49,442] - ==> Parameters: 71b596cb42ee254f7416043d184fc970(String), 13012817028(String), 1(Integer)
[DEBUG][2015-07-21 09:02:49,445] - <== Total: 1
[INFO ][2015-07-21 09:02:49,474] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/umanagesV2.do","requestURI":"/umanages/umanagesV2.do","contextPath":"","contextLength":-1,"method":"GET","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,834] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/showUserInfo.do","requestURI":"/umanages/showUserInfo.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,835] - {"accessTime":"2015-07-21 09:02:49","remoteIp":"192.168.1.103","host":"192.168.1.70","requestURL":"http://192.168.1.70/umanages/showlogin.do","requestURI":"/umanages/showlogin.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:49,836] - slave
[INFO ][2015-07-21 09:02:49,837] - slave
[DEBUG][2015-07-21 09:02:49,839] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,840] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account where id = ?
[DEBUG][2015-07-21 09:02:49,840] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,840] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,840] - ==> Preparing: select users.gender as gender,users.id,users.real_name as realName,users.job as job,users.provinceId as provinceId,users.cityId as cityId,users.countryId as countryId,users.address as address,users.email as email,users.mobile_no as mobileNo,users.age as age,users.user_image as userImage,acc.user_account as userAccount, users.brithday as brithday,users.nick_name as nickName,users.charge_type as chargeType,users.venue_type as venueType,users.user_level as userLevel,users.user_score as userScore,users.create_time as createTime,users.last_update_time as lastUpdateTime,users.height as height,users.weight as weight from juju_users users inner join juju_user_account acc on users.user_account_id = acc.id where users.user_account_id = ?
[DEBUG][2015-07-21 09:02:49,841] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,842] - <== Total: 1
[DEBUG][2015-07-21 09:02:49,845] - <== Total: 1
[INFO ][2015-07-21 09:02:49,848] - slave
[INFO ][2015-07-21 09:02:49,850] - slave
[DEBUG][2015-07-21 09:02:49,851] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,851] - ==> Preparing: select users.gender as gender,users.id,users.real_name as realName,users.job as job,users.provinceId as provinceId,users.cityId as cityId,users.countryId as countryId,users.address as address,users.email as email,users.mobile_no as mobileNo,users.age as age,users.user_image as userImage,acc.user_account as userAccount, users.brithday as brithday,users.nick_name as nickName,users.charge_type as chargeType,users.venue_type as venueType,users.user_level as userLevel,users.user_score as userScore,users.create_time as createTime,users.last_update_time as lastUpdateTime,users.height as height,users.weight as weight from juju_users users inner join juju_user_account acc on users.user_account_id = acc.id where users.user_account_id = ?
[DEBUG][2015-07-21 09:02:49,852] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,854] - <== Total: 1
[DEBUG][2015-07-21 09:02:49,854] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:49,855] - ==> Preparing: select id, user_account, card_no, password, type, third_login, third_type, create_time, last_update_time, stat, qq, weixin, sina, status from juju_user_account where id = ?
[DEBUG][2015-07-21 09:02:49,855] - ==> Parameters: 25032c14-b39a-4377-b092-d395cb8df8da(String)
[DEBUG][2015-07-21 09:02:49,858] - <== Total: 1
[INFO ][2015-07-21 09:02:50,031] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/address/list.do","requestURI":"/address/list.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":23,"method":"POST","parameterMap":{"level":["3"],"parentId":["310100"]}}
[INFO ][2015-07-21 09:02:50,057] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/sportType/findAll.do","requestURI":"/sportType/findAll.do","contextPath":"","contextLength":0,"method":"POST","parameterMap":{}}
[INFO ][2015-07-21 09:02:50,067] - {"accessTime":"2015-07-21 09:02:50","remoteIp":"192.168.1.193","host":"192.168.1.70","requestURL":"http://192.168.1.70/stadium/findChooseByAdd.do","requestURI":"/stadium/findChooseByAdd.do","contextPath":"","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":80,"method":"POST","parameterMap":{"venueType":["1"],"countryid":[""],"cityid":["310100"],"pageSize":["4"],"currPage":["1"],"nickName":[""],"userScore":["0"]}}
[INFO ][2015-07-21 09:02:50,069] - slave
[DEBUG][2015-07-21 09:02:50,072] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2015-07-21 09:02:50,072] - ==> Preparing: select DISTINCT info.space_num as spaceNum,info.id,info.user_account_id as userAccountId,info.provinceId,info.cityId,info.countryId,info.address,info.contacts,info.mobile_no as mobileNo,info.descs,info.charge_type as chargeType,info.venue_type as venueType, info.other_services as otherServices,info.email,info.nick_name as nickName,info.user_level as userLevel,info.user_score as userScore,info.create_time as createTime,info.last_update_time as lastUpdateTime,info.stat,info.venue_img as venueImg,info.max_num as maxNum from juju_venues_info info inner join juju_venues_sport_type_mapping mapp on info.id = mapp.venues_info_id where mapp.stat=1 and provinceId=? and mapp.sport_type_id =? and info.cityId=? order by info.space_num desc,info.create_time desc limit ?,?
[DEBUG][2015-07-21 09:02:50,073] - ==> Parameters: 310000(Integer), 1(String), 310100(Integer), 0(Long), 4(Integer)
[DEBUG][2015-07-21 09:02:50,081] - <== Total: 4
18639149842 15618785577 15921107607 xh520518
alert("denglu"+$(this).closeset);
alert("zhece"+$(this).closeset);
Cookie cookie = new Cookie("userInfo", sb.toString());
cookie.setMaxAge(maxAge);
cookie.setPath("/");
cookie.setDomain(request.getContextPath());
<a target="_" href="/app/news/index.html?index=lxwm">关于我们</a>
<a target="_" href="/app/news/index.html?index=lxwm">加入我们</a>
<a target="_" href="/app/news/index.html?index=cjwt">常见问题</a>
<a target="_" href="/app/news/index.html?index=wzdt">网站地图</a>
$("#login_cont").keydown(function (event) {
var event = event || window.event; //兼容火狐
if (event.keyCode == "13") {//keyCode=13是回车键
$('.login_btn').click();
}
});
Mon Jun 15 17:13:24 CST 2015 Wed Jul 22 09:57:32 CST 2015 -18000
Wed Jul 22 10:30:39 CST 2015 Wed Jul 22 10:33:20 CST 2015
Mon Jun 15 17:13:24 CST 2015 Wed Jul 22 10:34:19 CST 2015(now)
Wed Jul 22 11:14:23 CST 2015 Tue Jun 16 17:13:24 CST 2015
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\WEB-INF\view\front\venue_detail.ftl
D:\LearningWorkSpace\juju_sport\juju-home\src\main\webapp\WEB-INF\view\front\venue_detail.ftl
{"status":200,"message":null,"data":{"total":14,"pageSize":3,"currPage":2,"results":[{"id":"265f9abe-0621-4c8b-b197-12648be991a9"
,"msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa","msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb"
,"msgTime":1437667200000,"attachment":"","msgStatus":0,"createTime":1437723745000,"lastUpdateTime":1437723745000
,"stat":1,"userAccount":"juju_p0442","msgContent":"aaa","msgScore":1,"userImg":null,"showMsgTime":"2015-07-24"
,"msgResource":1},{"id":"f0c045bb-7636-4cba-9dee-ddaf6a7b37ee","msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa"
,"msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb","msgTime":1437667200000,"attachment":"","msgStatus"
:0,"createTime":1437723731000,"lastUpdateTime":1437723731000,"stat":1,"userAccount":"juju_p0442","msgContent"
:"999","msgScore":4,"userImg":null,"showMsgTime":"2015-07-24","msgResource":1},{"id":"2ef3a7c8-8d88-4fb0-ad2d-08ad54d5c597"
,"msgType":5,"msgFromId":"aaf600d4-d8ab-4d39-af4c-665218814eaa","msgToId":"2332ad20-138b-11e5-82e9-000c29d6facb"
,"msgTime":1437667200000,"attachment":"","msgStatus":0,"createTime":1437723716000,"lastUpdateTime":1437723716000
,"stat":1,"userAccount":"juju_p0442","msgContent":"888","msgScore":5,"userImg":null,"showMsgTime":"2015-07-24"
,"msgResource":1}],"startNum":3}}
注:opt格式如下{
"userid": "1212121212",
"venueid": "12121212",
"orderDate": "2015-05-12",
"orderTel": "13040691917",
"valiCode": "304033",
"orders": [
{
"sessionid": "1",
"orderTime": "17:00-18:00",
"sessionName": "2号球场"
},
{
"sessionid": "2",
"orderTime": "18:00-19:00",
"sessionName": "3号球场"
}
]
}
注:opt格式如下{
"userid": "1212121212",
"venueid": "12121212",
"orderDate": "2015-05-12",
"orderTel": "13040691917",
"orders": [
{
"sessionid": "1",
"orderTime": "17:00-18:00",
"sessionName": "2号球场"
},
{
"sessionid": "2",
"orderTime": "18:00-19:00",
"sessionName": "3号球场"
}
]
}
id varchar
team_name varchar
create_time datetime
last_update_time datetime
stat int
group int
father varchar
mother varchar
contact varchar
address varchar
child_name varchar
child_sex varchar
child_birthday date
child_school varchar
child_student_card varchar
child_id_card varchar
against_order int
space varchar
against_camp int
against_round int
package com.juju.sport.family.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.juju.sport.common.util.BeanUtils;
import com.juju.sport.family.dto.CarnivalTeamDto;
import com.juju.sport.family.pojo.CarnivalTeam;
import com.juju.sport.family.service.ICarnivalService;
@Service
public class ICarnivalServiceImpl implements ICarnivalService{
@Autowired
public CarnivalDao carnivalDao;
public List<CarnivalTeamDto> findAgainstTeamList(){
List<CarnivalTeam> list = carnivalDao.findAgainstTeamList();
List<CarnivalTeamDto> carnivalTeamDto = BeanUtils.createBeanListByTarget(list, CarnivalTeamDto.class);
return carnivalTeamDto;
}
}
http://192.168.1.152/test/carnival_admin.html
http://192.168.1.152:8080/admin/game/train/create.do
192.168.1.152:8080/admin/game/train/create.do
http://192.168.1.152:8080/admin/game/train/create.do?trainTheme='111'&trainAuthor='222'&trainPic='1'&trainThumbnail='a'
{"success":false,"message":"The current request is not a multipart request"}
http://192.168.1.152:8080/admin/game/train/create.do?trainTheme=aa&trainAuthor=bbb&trainPic=ccc&trainThumbnail=ddd
[INFO ][2015-08-13 15:29:20,339] - {"accessTime":"2015-08-13 15:29:20","remoteIp":"192.168.1.152","host":"192.168.1.227:8080","requestURL":"http://192.168.1.227:8080/admin/login/login.do","requestURI":"/admin/login/login.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":35,"method":"POST","parameterMap":{"userCode":["superadmin"],"password":["111111"]}}
[INFO ][2015-08-13 15:29:20,363] - {"accessTime":"2015-08-13 15:29:20","remoteIp":"192.168.1.152","host":"192.168.1.227:8080","requestURL":"http://192.168.1.227:8080/admin/login/getUser.do","requestURI":"/admin/login/getUser.do","contextPath":"/admin","contextLength":0,"method":"POST","parameterMap":{}}
http://192.168.1.107:8080/admin/login/index.do
/admin/WEB-INF/page/user-manage.jsp
/admin/WEB-INF/page/user/user-manage.jsp
http://192.168.1.107:8080/admin/login/index.do
AdminUserLoginInfoDto(success=false, realName=jam, groupName=管理员, accountCode=jam, passwd=71b596cb42ee254f7416043d184fc970, role=RoleDto(id=b317cb71-5ddd-4c79-a5f6-5ed8f107ce5c, roleName=管理员, roleDescription=内部后台管理员), groups=[AdminMenuGroupDto(id=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=用户管理, menuGroupOrder=0, functions=[AdminMenuFunctionDto(id=02d437fb-36bc-418a-9cd3-24b4d89c9ffe, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=会员管理, menuFunctionAction=user/manager/index.do, openType=null, menuFunctionDescript=会员管理,修改和查询), AdminMenuFunctionDto(id=5888e3cd-8514-4795-bb1d-94a1a12ad519, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=场馆管理, menuFunctionAction=user/venues/index.do, openType=null, menuFunctionDescript=场馆管理), AdminMenuFunctionDto(id=8a5ecc8a-c4e1-4792-99bc-34b4921626c9, menuGroupId=fb19fb10-f72c-4f43-928f-6ebc99bdd660, menuGroupName=null, menuFunctionName=球队管理, menuFunctionAction=user/team/index.do, openType=null, menuFunctionDescript=球队管理)]), AdminMenuGroupDto(id=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=赛事管理, menuGroupOrder=1, functions=[AdminMenuFunctionDto(id=55b7086f-896f-4ae9-a0ce-39bd45ac1f3a, menuGroupId=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=null, menuFunctionName=赛事管理, menuFunctionAction=game/race/index.do, openType=null, menuFunctionDescript=赛事信息管理), AdminMenuFunctionDto(id=92d8fb05-7a8e-4849-9624-c0bf2a55ad16, menuGroupId=ee8f9462-4df6-412b-bc0b-8d2ad0c74ea9, menuGroupName=null, menuFunctionName=首页管理, menuFunctionAction=/user/homepage/index.do, openType=null, menuFunctionDescript=)]), AdminMenuGroupDto(id=664c26a0-c1b4-4bab-bb08-0148243a4ea3, menuGroupName=订单管理, menuGroupOrder=2, functions=[AdminMenuFunctionDto(id=0cd4dab1-04d2-426a-869d-e287fa4155dc, menuGroupId=664c26a0-c1b4-4bab-bb08-0148243a4ea3, menuGroupName=null, menuFunctionName=订单管理, menuFunctionAction=order/index.do, openType=null, menuFunctionDescript=线上定单查询)]), AdminMenuGroupDto(id=73935c1b-040a-4b84-976b-5001a4e5e228, menuGroupName=积分管理, menuGroupOrder=3, functions=[AdminMenuFunctionDto(id=8e845b07-c80e-40fa-8d64-1384861bbd47, menuGroupId=73935c1b-040a-4b84-976b-5001a4e5e228, menuGroupName=null, menuFunctionName=勋章管理, menuFunctionAction=user/medal/index.do, openType=null, menuFunctionDescript=测试功能)]), AdminMenuGroupDto(id=18ded062-4071-11e5-82e9-000c29d6facb, menuGroupName=培训管理, menuGroupOrder=4, functions=[AdminMenuFunctionDto(id=45c28101-a05a-47ba-aa2a-f0c1523b7476, menuGroupId=18ded062-4071-11e5-82e9-000c29d6facb, menuGroupName=null, menuFunctionName=培训管理, menuFunctionAction=game/train/index.do, openType=null, menuFunctionDescript=培训信息管理)]), AdminMenuGroupDto(id=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=功能管理, menuGroupOrder=5, functions=[AdminMenuFunctionDto(id=6060becb-175a-4777-b330-805aaee314f1, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=菜单管理, menuFunctionAction=menu/index.do, openType=null, menuFunctionDescript=左侧菜单栏管理), AdminMenuFunctionDto(id=329cf740-0f86-4882-8dd0-056534640ebc, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=功能管理, menuFunctionAction=action/index.do, openType=null, menuFunctionDescript=具体到action的配置), AdminMenuFunctionDto(id=4e7cc78b-572b-4940-995b-348b5b90245c, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=角色管理, menuFunctionAction=role/index.do, openType=null, menuFunctionDescript=角色权限管理), AdminMenuFunctionDto(id=903e38df-f82d-47e4-bb6e-ef10e5d639a0, menuGroupId=6faee6bf-720a-4ebf-905a-51eac08b5156, menuGroupName=null, menuFunctionName=账号管理, menuFunctionAction=manager/account/index.do, openType=null, menuFunctionDescript=新建帐号,分配角色)])])
D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld --defaults-file=D:\tools\work\64\mysql-5.6.23-winx64\my.ini MySQL
%MYSQL_HOME%\bin;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\windows\system32\;D:\Program Files\TortoiseSVN\bin;C:\Program Files\nodejs\;%SystemRoot%;%SystemRoot%\system32\wbem;D:\Program Files\Python27
3006: "C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 5.6\my.ini" MySQL3306
3008: "D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld.exe" --defaults-file="D:\tools\work\64\mysql-5.6.23-winx64\my.ini" MySQL3308
3009: "D:\tools\work\64\mysql-5.6.25-winx64\bin\mysqld.exe" --defaults-file="D:\tools\work\64\mysql-5.6.25-winx64\my.ini" MySQL3309
C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld MySQL3306
D:\tools\work\64\mysql-5.6.23-winx64\bin\mysqld MySQL3308
D:\tools\work\64\mysql-5.6.25-winx64\bin\mysqld MySQL3309
http://192.168.1.75/race/ajaxJumpInfos.do
name:'contactType',
Integer type = Integer.valueOf(contactDto.getTypeName());
contactDto.setContactType(type);
(默认)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
(新)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
http://localhost:8080/admin/index.html
(梁佳)
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603-1326
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms256m
-Xmx1024m
-javaagent:lombok.jar
-Xbootclasspath/a:lombok.jar
[INFO ][2015-09-05 16:07:09,604] - {"accessTime":"2015-09-05 16:07:09","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/create.do","requestURI":"/admin/apply/create.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":572,"method":"POST","parameterMap":{"startTime_add":["2015-09-05"],"pname_add":["11"],"isPayed_add":["0"],"applyTime":["2015-09-05T00:00:00"],"courseName_add":["亲子足球小班"],"endTime_add":["2015-09-05"],"depositIspayed":["1"],"endTime":["2015-09-05T00:00:00"],"startTime":["2015-09-05T00:00:00"],"mobile_add":["11"],"spaceName":["盛大花园小学"],"cname_add":["11"],"isPayed":["0"],"pname":["11"],"spaceName_add":["盛大花园小学"],"depositIspayed_add":["1"],"cname":["11"],"applyTime_add":["2015-09-05"],"courseName":["亲子足球小班"],"mobile":["11"]}}
[INFO ][2015-09-05 16:15:21,026] - {"accessTime":"2015-09-05 16:15:21","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/create.do","requestURI":"/admin/apply/create.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":303,"method":"POST","parameterMap":{"startTime":["2015-09-05T00:00:00"],"spaceName":["上海七宝明强小学"],"pname":["11"],"isPayed":["0"],"applyTime":["2015-09-05T00:00:00"],"depositIspayed":["1"],"endTime":["2015-09-05T00:00:00"],"cname":["11"],"mobile":["11"],"courseName":["亲子足球小班"]}}
SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.creat_time as creatTime,c.update_time as updateTime,c.status,c.free_times as freeTimes
FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id
WHERE a.id = #{courseId,jdbcType=INTEGER} and a.status = 1 and b.status = 1 and c.status = 1
applyManage_add
http://localhost:8080/admin/course/findSpaceByCourseId.do?_dc=1441594810577&courseId=%E4%BA%B2%E5%AD%90%E8%B6%B3%E7%90%83%E5%B0%8F%E7%8F%AD&page=1&start=0&limit=30"
localhost:8080/admin/index.html
EXPLAIN SELECT * FROM training_time_district a WHERE a.`id` IN (
SELECT b.district_time_id FROM training_address_district_time b WHERE b.`address_id` = 2
) AND a.`status`= 0
http://localhost:8080/admin/course/findSpaceByCourseId.do?courseId=1
http://localhost:8080/admin/spaceInfo/findTimeDistrictBySpaceId.do?spaceId=1
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time from training_user_course WHERE ( status = ? and pname like ? and mobile like ? and course_name like ? and cname like ? and space_name like ? and apply_time between ? and ? ) order by create_time desc limit 0,30
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time from training_user_course WHERE ( status = 1 and apply_time between 1440864000000 and 1441382400000 ) order by create_time desc limit 0,30 ;
-- SELECT c.name, c.course_time as courseTime, c.address, c.description, c.start_time as startTime, c.end_time as endTime, c.max_student as maxStudent, t.tag_name as tagName FROM training_course c INNER JOIN training_course_tag t ON c.tag_id = t.id where 1=1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id=3 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.* FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id where a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 2 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT b.* FROM training_address a LEFT JOIN training_time_district b on b.id = a.district_id WHERE a.id = 1 and a.status = 1 and b.status = 1;
-- training_address training_address_district_time training_time_district
-- SELECT c.* FROM training_address a LEFT JOIN training_address_district_time b on a.id = b.address_id LEFT JOIN training_time_district c on b.district_time_id = c.id where a.id=2 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT * FROM training_address a LEFT JOIN training_address_district_time b on a.id = b.address_id ;
-- SELECT a.* FROM training_time_district a WHERE a.id IN (
-- SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1
-- ) AND a.status = 1
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- SELECT a.id,a.day_of_week as dayOfWeek,a.start_time as startTime,a.end_time as endTime ,a.create_time as createTime,a.update_time as updateTime,a.status FROM training_time_district a WHERE a.id IN ( SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1) AND a.status = 1 ;
-- SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 2 AND b.status = 1;
-- SELECT c.id,c.district_id as districtId,c.place,c.longtitude,c.latitude,c.address,c.create_time as createTime,c.update_time as updateTime,c.status,c.free_times as freeTimes FROM training_course a LEFT JOIN training_course_class b on a.id = b.course_id RIGHT JOIN training_address c on b.address_id = c.id WHERE a.id = 1 and a.status = 1 and b.status = 1 and c.status = 1 ;
-- select * FROM training_course;
-- select * FROM training_course_class;
-- select * FROM training_address;
SELECT a.id,a.day_of_week as dayOfWeek,a.start_time as startTime,a.end_time as endTime ,a.create_time as createTime,a.update_time as updateTime,a.status FROM training_time_district a WHERE a.id IN ( SELECT b.district_time_id FROM training_address_district_time b WHERE b.address_id = 1 AND b.status = 1) AND a.status = 1 ;
/**
* 生成订单后五位
* @return
*/
private String CreateNo(){
int n=0;
n=(int)(Math.random()*100000);
while(n<10000 || !handle(n)){
n=(int)(Math.random()*100000);
}
return n+"";
}
private boolean handle(int n){
int[] list=new int[5];
for(int i=0;i<5;i++){
list[i]=n%10;
n=n/10;
}
for(int i=0;i<5;i++){
for(int j=i+1;j<5;j++){
if(list[i]==list[j]) return false;
}
}
return true;
}
/**
* 生成订单号
* @return
*/
private String CreateOrderNo(){
return CreateDate()+CreateNo();
}
SELECT b.`name`,c.place,a.* FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id LEFT JOIN training_address c on a.space_id = c.id WHERE a.`status`=1 ORDER BY a.id;
SELECT b.`name`,a.* FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id WHERE a.`status`=1 and b.`status`=1 ORDER BY a.id;
SELECT * from training_user_course a where a.`status`=1 ORDER BY a.id;
-- SELECT * FROM training_course;
-- select id, open_id, user_id, course_id, class_id, used_time, left_time, apply_time, discription, toto_fee, is_payed, create_time, update_time, deposit_ispayed, mobile, course_name, pname, utype, cname, birthday, origin_school, space_name, order_no, trade_no, status, start_time, end_time, day_of_week, space_id from training_user_course WHERE ( status = 1) order by create_time desc limit 0,30 ;
SELECT a.id,a.open_id as openId,a.user_id as userId,a.course_id as courseId,a.class_id as classId,a.used_time as usedTime,a.left_time as leftTime,a.apply_time as applyTime,a.discription,a.toto_fee as totoFee,a.is_payed as isPayed,a.create_time as createTime,a.update_time as updateTime,a.deposit_ispayed as depositIspayed,a.mobile,a.course_name as courseName,a.pname,a.utype,a.cname,a.birthday,a.origin_school as originSchool,a.space_name as spaceName,a.order_no as orderNo,a.trade_no as tradeNo,a.status,a.day_of_week as dayOfWeek,a.space_id as spaceId, b.name,c.place
FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id AND a.status =1 LEFT JOIN training_address c on a.space_id = c.id AND b.status=1 and c.status=1 ;
SELECT count(*) FROM training_user_course a LEFT JOIN training_course b ON a.course_id = b.id AND a.status =1 LEFT JOIN training_address c on a.space_id = c.id AND b.status=1 and c.status=1 ORDER BY a.create_time desc ;
http://localhost:8080/admin/course/findAllCourse.do
JsonUtil.java
{"total":85,"pageSize":30,"currPage":3,"results":[{"id":94,"pname":"1322","cname":"125","courseId":2
,"courseName":"少年足球增强班","mobile":"13036955525","spaceId":null,"spaceName":null,"startTime":"1441036800"
,"endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441708186,"applyTimeAdd":null
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":95
,"pname":"1111","cname":"1111","courseId":2,"courseName":"少年足球增强班","mobile":"13255555555","spaceId":null
,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441708285,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null
:1441036800-1441036800"},{"id":96,"pname":"123","cname":"123","courseId":2,"courseName":"少年足球增强班","mobile"
:"13222222222","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong"
:0,"endTimeLong":0,"applyTime":1441713861,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek"
:null,"districtTime":"null:1441036800-1441036800"},{"id":97,"pname":"阿萨德","cname":"阿萨德","courseId":1
,"courseName":"亲子足球小班","mobile":"13696969696","spaceId":null,"spaceName":null,"startTime":"15:33","endTime"
:"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000,"applyTimeAdd":null,"isPayed":0
,"depositIspayed":0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":98,"pname":"请问","cname":"
请问","courseId":2,"courseName":"少年足球增强班","mobile":"18911111111","spaceId":null,"spaceName":null,"startTime"
:"15:20","endTime":"19:00","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":0,"dayOfWeek":"周二","districtTime":"周二:15:20-19:00"},{"id":99,"pname"
:"是","cname":"撒旦","courseId":1,"courseName":"亲子足球小班","mobile":"13695958585","spaceId":null,"spaceName"
:null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441641600000
,"applyTimeAdd":null,"isPayed":1,"depositIspayed":0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"
},{"id":100,"pname":"bbb","cname":"bbb","courseId":2,"courseName":"少年足球增强班","mobile":"13433333222","spaceId"
:null,"spaceName":null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441641600000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime":"周
一:15:33-16:33"},{"id":102,"pname":"bbb1","cname":"bbb","courseId":2,"courseName":"少年足球增强班","mobile":"13433333222"
,"spaceId":null,"spaceName":null,"startTime":"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441641600000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime"
:"周一:15:33-16:33"},{"id":109,"pname":"mmmm","cname":"mmmn","courseId":1,"courseName":"亲子足球小班","mobile"
:"13623231414","spaceId":1,"spaceName":"盛大花园小学","startTime":"15:33","endTime":"16:33","startTimeLong"
:0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek"
:"周一","districtTime":"周一:15:33-16:33"},{"id":110,"pname":"mmmma","cname":"mmmn","courseId":1,"courseName"
:"亲子足球小班","mobile":"13623231414","spaceId":1,"spaceName":"盛大花园小学","startTime":"15:33","endTime":"16:33"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:0,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":112,"pname":"氢气球","cname":"饿饿饿","courseId"
:2,"courseName":"少年足球增强班","mobile":"13222222233","spaceId":null,"spaceName":null,"startTime":"1441036800"
,"endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441763105,"applyTimeAdd":null
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":113
,"pname":"leave","cname":"yezi","courseId":2,"courseName":"少年足球增强班","mobile":"13626262323","spaceId"
:2,"spaceName":"上海七宝明强小学","startTime":"15:20","endTime":"19:00","startTimeLong":0,"endTimeLong":0,"applyTime"
:1441728000000,"applyTimeAdd":null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周二","districtTime":"周
二:15:20-19:00"},{"id":114,"pname":"勿忘我","cname":"氢气球","courseId":2,"courseName":"少年足球增强班","mobile":"13322323333"
,"spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441763338,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":115,"pname":"111","cname":"氢气球","courseId":2,"courseName":"少年足球
增强班","mobile":"13222222222","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441763653,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":116,"pname":"1122","cname":"氢
气球","courseId":2,"courseName":"少年足球增强班","mobile":"13333333333","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441763730,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id"
:117,"pname":"1111","cname":"起氢气球","courseId":2,"courseName":"少年足球增强班","mobile":"13223333333","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441764074,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":118,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球
增强班","mobile":"13222223333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441765082,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":119,"pname":"阳光","cname":"小太阳"
,"courseId":1,"courseName":"亲子足球小班","mobile":"13856569696","spaceId":14,"spaceName":"普陀123","startTime"
:"15:33","endTime":"16:33","startTimeLong":0,"endTimeLong":0,"applyTime":1441728000000,"applyTimeAdd"
:null,"isPayed":1,"depositIspayed":1,"dayOfWeek":"周一","districtTime":"周一:15:33-16:33"},{"id":120,"pname"
:"1-1","cname":"111","courseId":2,"courseName":"少年足球增强班","mobile":"13222223333","spaceId":null,"spaceName"
:null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441765394
,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"
},{"id":121,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球增强班","mobile":"13222223333","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441766133,"applyTimeAdd":null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":122,"pname":"1-1","cname":"111","courseId":2,"courseName":"少年足球
增强班","mobile":"13222223333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441766170,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":123,"pname":"111","cname":"氢气
球","courseId":2,"courseName":"少年足球增强班","mobile":"13221122211","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441766262,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id"
:124,"pname":"请问我","cname":"勿忘我","courseId":2,"courseName":"少年足球增强班","mobile":"13222233323","spaceId"
:null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong"
:0,"applyTime":1441766501,"applyTimeAdd":null,"isPayed":0,"depositIspayed":0,"dayOfWeek":null,"districtTime"
:"null:1441036800-1441036800"},{"id":127,"pname":"让人r","cname":"让人r","courseId":2,"courseName":"少年足球
增强班","mobile":"13222233333","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1441036800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441768432,"applyTimeAdd":null,"isPayed":0,"depositIspayed"
:0,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"},{"id":128,"pname":"1112","cname":"1112"
,"courseId":2,"courseName":"少年足球增强班","mobile":"13222222222","spaceId":null,"spaceName":null,"startTime"
:"1441036800","endTime":"1441036800","startTimeLong":0,"endTimeLong":0,"applyTime":1441769459,"applyTimeAdd"
:null,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1441036800"}],"startNum"
:60}
[INFO ][2015-09-09 13:06:22,724] - {"accessTime":"2015-09-09 13:06:22","host":"localhost:8080","requestURL":"http://localhost:8080/admin/apply/update.do","requestURI":"/admin/apply/update.do","contextPath":"/admin","contentType":"application/x-www-form-urlencoded; charset\u003dUTF-8","contextLength":162,"method":"POST","parameterMap":{"startTime":["15:30"],"spaceName":["22"],"pname":["leave"],"isPayed":["1"],"applyTime":["2015-09-09T00:00:00"],"depositIspayed":["1"],"endTime":["17:30"],"cname":["yezi"],"mobile":["13626262323"],"courseName":["2"]}}
{"total":2,"pageSize":30,"currPage":1,"results":
[{"id":1,"pname":"叮当","cname":"小叮当","courseId":29,"courseName":"足球基础课","mobile":"13616265353","spaceId":40,"spaceName":"花木中心小学","startTime":"15:00","endTime":"16:01"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441814400,"applyTimeAdd":"2015-09-10","isPayed":0,"depositIspayed"
:0,"dayOfWeek":"周一","districtTime":"周一:15:00-16:01"},
{"id":3,"pname":"关羽","cname":"关银屏","courseId":29,"courseName":"足球基础课","mobile":"13312345678","spaceId":null,"spaceName":null,"startTime":"1441036800","endTime":"1443628800"
,"startTimeLong":0,"endTimeLong":0,"applyTime":1441864053,"applyTimeAdd":"2015-09-10"
,"isPayed":0,"depositIspayed":1,"dayOfWeek":null,"districtTime":"null:1441036800-1443628800"}],"startNum"
:0}
http://localhost/train/wap/login.html
'JUJU.store.system.SpaceInfoManage.AddressAllInfoStore',
'JUJU.store.system.CourseInfoManage.CourseSpaceStore' url: JUJU.global.path + 'course/findSpaceByCourseId.do',
http://localhost:8080/admin/course/findSpaceByCourseId.do?_dc=1442027260837&courseId=30
昨天我发现楼下小摊有5块钱一个的高仿iPhone6s模型,于是买了一个然后在一个人多的广场河边假装打电话,
说:"给劳资滚,我永远不会原谅你的,分手吧!”
然后我潇洒的把手机模型扔到了河里,拿出一根烟,
故作忧郁的在那里摆了个销魂的姿势站着,
旁边好多美女用那花痴的表情看着我。
当我正装备得瑟一下时!一个小盆友上来拍了拍我的肩膀,
大声的对我说:"大哥,你的手机浮上来了…”
"[{\"id\":\"1cf6f298-9029-4574-946f-14db1b17b913\",\"name\":\"幼儿班\",\"courseTime\":10,\"tagName\":\"
热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana, sans-serif
\\\"\\u003e幼儿班\\u003c/font\\u003e\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime
\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":12,\"actualStudent\":0,\"isneedCname\":0,
\"avgPrice\":1.2},{\"id\":\"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d\",\"name\":\"启蒙班\",\"courseTime\":10
,\"tagName\":\"热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana
, sans-serif\\\"\\u003e启蒙班\\u003c/font\\u003e\",\"startTime\":1438358400,\"startTimeFmt\":\"2015-08-01
\",\"endTime\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":10,\"actualStudent\":0,\"isneedCname
\":0,\"avgPrice\":1.1},{\"id\":\"75\",\"name\":\"足球兴趣班培训\",\"courseTime\":10,\"tagName\":\"热门\",\"tagId
\":\"36\",\"description\":\"1\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime\"
:1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":21,\"actualStudent\":19,\"isneedCname\":1,\"avgPrice
\":1.0}]"
{"status":200,"message":"查询成功","data":[{"id":"d3d80cc1-02ae-4a81-98e5-7896d1ac85c9","title":"q123","subtract"
:"qweerqwrrwe","content":"rwerwerewrwr","microPic":"upload/20150929/d6f412ee30924ba090034d6bf70824f7
.","marked":1,"createTime":1443142652917,"lastUpdateTime":1443490948057,"stat":1,"markedStr":null,"createTimeStr"
:null,"startTimeStr":null,"endTimeStr":null},{"id":"1f989e99-1855-40ff-981d-cb451699007c","title":"人
头","subtract":"qweerqwrrwe","content":"rwerwerewrwr","microPic":"upload/20150929/de1fbdb22a744ae39e9d516e6797a47b
.jpg","marked":1,"createTime":1443142638050,"lastUpdateTime":1443490917054,"stat":1,"markedStr":null
,"createTimeStr":null,"startTimeStr":null,"endTimeStr":null},{"id":"17fa89ff-546e-4d16-868f-917d3cf9b433"
,"title":"123123","subtract":"23132323","content":"423423432424","microPic":"upload/20150923/6229b14cc6aa44508de306ed9df02abf
.jpg","marked":1,"createTime":1442976996819,"lastUpdateTime":null,"stat":1,"markedStr":null,"createTimeStr"
:null,"startTimeStr":null,"endTimeStr":null}]}
http://localhost/upload/d6f412ee30924ba090034d6bf70824f7.jpg
http://localhost/upload/20150929/de1fbdb22a744ae39e9d516e6797a47b.jpg
http://localhost/upload/6229b14cc6aa44508de306ed9df02abf.jpg
[{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":12,"actualStudent":0,"isneedCname":0,"avgPrice":1.2},
{"id":"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d","name":"启蒙班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e启蒙班\u003c/font\u003e","startTime":1438358400,"startTimeFmt":"2015-08-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":10,"actualStudent":0,"isneedCname":0,"avgPrice":1.1},
{"id":"75","name":"足球兴趣班培训","courseTime":10,"tagName":"热门","tagId":"36","description":"1","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":21,"actualStudent":20,"isneedCname":1,"avgPrice":1.0}]
[{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":12,"actualStudent":0,"isneedCname":0,"avgPrice":1.2},
{"id":"4a7d0136-a3b3-4e04-94a3-7250bc2bd44d","name":"启蒙班","courseTime":10,"tagName":"热门","tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e启蒙班\u003c/font\u003e","startTime":1438358400,"startTimeFmt":"2015-08-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":10,"actualStudent":0,"isneedCname":0,"avgPrice":1.1},
{"id":"75","name":"足球兴趣班培训","courseTime":10,"tagName":"热门","tagId":"36","description":"1","startTime":1441036800,"startTimeFmt":"2015-09-01","endTime":1443628800,"endTimeFmt":"2015-10-01","maxStudent":21,"actualStudent":20,"isneedCname":1,"avgPrice":1.0}]
{"id":"1cf6f298-9029-4574-946f-14db1b17b913","name":"幼儿班","courseTime":10,"tagId":"36","description":"\u003cfont face\u003d\"tahoma, arial, verdana, sans-serif\"\u003e幼儿班\u003c/font\u003e","startTime":1441036800,"endTime":1443628800,"maxStudent":12,"actualStudent":0,"isneedCname":0,"createTime":1443592041,"status":1,"tagName":"热门","price":0.0}
[{"id":"68","city":"上海","name":"徐汇","status":1},{"id":"69","city":"上海","name":"闵行","status":1},{"id":"70","city":"上海","name":"杨浦","status":1}]
http://localhost/v2.0/index.html
http://localhost/v2.0/myaccount_college.html
"[{\"id\":\"1cf6f298-9029-4574-946f-14db1b17b913\",\"name\":\"幼儿班\",\"courseTime\":10,\"tagName\":\"
热门\",\"tagId\":\"36\",\"description\":\"\\u003cfont face\\u003d\\\"tahoma, arial, verdana, sans-serif
\\\"\\u003e幼儿班\\u003c/font\\u003e\",\"startTime\":1441036800,\"startTimeFmt\":\"2015-09-01\",\"endTime
\":1443628800,\"endTimeFmt\":\"2015-10-01\",\"maxStudent\":12,\"actualStudent\":0,\"isneedCname\":0,
\"avgPrice\":1.2}]"
http://localhost:8080/training/mineCollege.do?openId=oSpKwv8Rvr4yIvO-P23xcgNxq3MU
http://localhost:8080/training/getUserInfo.do?openID=oSpKwv8Rvr4yIvO-P23xcgNxq3MU
{"status":"200","message":"查找成功!","data":"{"id":"b32d8555-d5b1-4015-a67f-2a9102de8408","openId":"","pname":"麻麻","utype":"0","cname":"尧尧","birthday":"1441036800","fmbirthday":"2015-09-01","birthdays":"","birthdayStr":"","originSchool":"","mobile":"18956565656","status":"1","createTime":"","fmCreateTime":"","updateTime":"","name":"","address":"","spaceTime":"","dayOfWeek":"","startTime":"","endTime":"","courseId":"","addressId":"","spaceTimeId":"","courseAbove":"","notCourse":"","leaveCourse":"","absenteeismCourse":"","classId":"","location":"南京","position":"","pic":"","microPic":"","description":"","lastLoginTime":"","fmLastLoginTime":""}"}
{"status":200,"message":"查询成功","data":{"total":6,"pageSize":2,"currPage":1,"results":[{"id":"cdd30697-50ea-465c-aa19-d9dc4c4647db"
,"title":"452452","subtract":"452452452452","content":"<h1>聚运动闵行区见面会,“送教入校”即将全面启动</h1>\r\n\t\t\t\t<p
>上周五,聚运动“送教入校”项目团队一行拜访了闵行区5所对接中小学,与各位对接学校领导和老师见面的同时也对场地进行实地考察。由于行程原因,和闵行区对接的执行教练没能赶上见面会,因此整个参观团队由小可可
维奇带领。在今后一年里,聚运动团队将和闵行区学校进行紧密的合作,推动校园足球深入课堂。</p>\r\n\t\t\t\t<h2>吴泾三小</h2>\r\n\t\t\t\t<img class=\"full
\" src=\"img/counseling-2.png\"/> \r\n\t\t\t\t<p>吴泾第三小学是整个行程的第一站,提早到达的小编先进入球场一睹为快。尽管并不大,但球场草坪的质量很高,而
且整个场地与远处宏伟的氯碱化工的巨大烟囱以及闵浦大桥引桥相映衬,工业文明的壮景和人类原生的对竞技的追求形成强烈对比,能让人感到一股非凡的气势。</p>\r\n\t\t\t\t<img class=\"full
\" src=\"img/counseling-2.png\"/> \r\n\t\t\t\t<p>闵行区教育局领导王琼老师和吴泾三小的顾校长也早早来到学校,等待聚运动团队的到来。在亲密的合影后,顾校长
带着聚运动团队参观了操场和其他室内设施。</p>\r\n\t\t\t\t<p class=\"bottum\">顾校长亲切地介绍了吴泾三小的女足特色,目前学校拥有三个女子梯队。在市级比赛中吴泾三小的表
现一直可圈可点,但对现状并不满足的的顾校长希望外教团队能帮助吴泾三小的校队更上一个台阶。小可可维奇表示将会安排优秀的教练进驻闵行,争取带领吴泾三小的各年龄段校队在区级和市级比赛中取得更出色的成绩。</p
>","microPic":null,"pic":"/upload/51de9ee9160a4dae81fdf951f6767d89.jpg","marked":0,"createTime":1444372047290
,"lastUpdateTime":1444372580545,"stat":1,"markedStr":null,"createTimeStr":"2015-10-09","startTimeStr"
:null,"endTimeStr":null},{"id":"0d140bcf-0ae6-4b8c-87fc-ee523c7861fd","title":"中国好声音","subtract":"你是
天使","content":"你是恶魔","microPic":"upload/20151009/1f4a3052bb8f460ca219657f4e3420e5.jpg","pic":"/upload
/d6f412ee30924ba090034d6bf70824f7.jpg","marked":1,"createTime":1444369701804,"lastUpdateTime":1444372426543
,"stat":1,"markedStr":null,"createTimeStr":"2015-10-09","startTimeStr":null,"endTimeStr":null}],"startNum"
:0}}
http://127.0.0.1:8080/training/getAvaCourses.do?ava=1&&marked=1
http://localhost:8080/training/msgPage.do?page=2
http://www.jujusports.cn/login.html?_pageTag=login
{"status":200,"message":"查询成功","data":[{"id":"39f331ae-f35f-455c-8c26-51326a53f94a","title":"标题标题22"
,"subtract":"摘要23432","content":"内容324234","microPic":null,"pic":null,"marked":1,"createTime":1442907441046
,"lastUpdateTime":1444445543961,"stat":1,"markedStr":null,"createTimeStr":null,"startTimeStr":null,"endTimeStr"
:null,"newVideo":null},{"id":"71031d76-1af6-4641-848a-1eba65f32434","title":"标题2","subtract":"摘要112"
,"content":"内容******","microPic":"/image/xx.jsp","pic":null,"marked":1,"createTime":1442906668073,"lastUpdateTime"
:null,"stat":1,"markedStr":null,"createTimeStr":null,"startTimeStr":null,"endTimeStr":null,"newVideo"
:null}]}
后台:http://10.10.11.86:8080/admin/index.html 123 123456
{"status":200,"message":"查询成功","data":{"total":3,"pageSize":0,"currPage":1,"results":[{"courseId":"1cf6f298-9029-4574-946f-14db1b17b913"
,"addressId":"aff35ff9-2e35-4e87-ad8f-3bcf92f51887","classId":"44bc0830-f7cf-4b31-be39-8780f5eb6198"
,"name":"幼儿班","course_time":10,"tag_id":"36","equip":"啊啊啊、11","micro_pic":"img/simple3.jpg,img/simple3
.jpg,img/simple3.jpg","price":10,"startdate":null,"place":"上海法官学院","address":"光华路2888","tag_name":"热
门","marked":1,"startTime":"1441036800","endTime":"1443628800"},{"courseId":"1cf6f298-9029-4574-946f-14db1b17b913"
,"addressId":"aff35ff9-2e35-4e87-ad8f-3bcf92f51887","classId":"a06f928d-61e2-4420-a444-b2f3aad34ecd"
,"name":"幼儿班","course_time":10,"tag_id":"36","equip":"啊啊啊、11","micro_pic":"img/simple3.jpg,img/simple3
.jpg,img/simple3.jpg","price":12,"startdate":null,"place":"上海法官学院","address":"光华路2888","tag_name":"热
门","marked":1,"startTime":"1441036800","endTime":"1443628800"}],"startNum":0}}
聚运动后台改版待解决问题:
①日期查询 有点误差
②添加各种校验
③添加和编辑场地级联 编辑有点问题 场地下拉列表框初始值的问题
④添加功能有缺陷 √
⑤编辑回显 √
⑥批量删除 √
缺陷:取消按钮不起作用; 日期控件没关闭按钮
http://127.0.0.1:8080/admin/apply/findApplyByPage.do
http://103.36.132.3:8081/admin/index.html
[email protected]
IM测试环境:192.168.1.245
http://www.cnblogs.com/chuncn/archive/2010/10/17/1853915.html
http://pr.chinaz.com/
http://www.bnedq.com/宝尼尔电器 每日瑜伽
http://10.10.11.139:8080/admin/main.do 123:123456 admin:000000
http://10.10.11.139:8080/upload.jsp
http://127.0.0.1/userMan/index.htm
f:\yin\1447149471353\20151110 (系统找不到指定的路径。)
所有功能这周完成,包括注册和登录!
图片上传和批量上传的问题
图片列表最好设一个按钮,”设为封面“
[{"id":"1","gameId":"","name":"飞虎队","logo":"","contact":null,"distruct":"","members":null,"creater":""
,"homeCourt":"","setUpTime":null,"setUpTimeStr":null,"grade":null,"win":null,"drew":null,"lost":null
,"lastUpdateTime":null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr":null,"stat":1},{"id"
:"2","gameId":"","name":"小虎队","logo":"","contact":null,"distruct":"","members":null,"creater":"","homeCourt"
:"","setUpTime":null,"setUpTimeStr":null,"grade":null,"win":null,"drew":null,"lost":null,"lastUpdateTime"
:null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr":null,"stat":1}]
\upload\20151118\4dc88675451249968700edec1e553b2f.jpg,\upload\20151118\5398dc469b734db1ab66394fa78ba02f.jpg,
\upload\20151118\50a49bf908dd423a8bc78861fcc29f79.jpg,\upload\20151118\4f8c601577824e2b8ea0569d260f3e72.jpg,\upload\20151118\9cc36ebd4d8342bab7f2ae21538ae3c0.jpg,
相册表单校验和按时间查询还没做,逻辑是否有问题?
<bean id="freeMarker" class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer">
<!--<property name="templateLoaderPath" value="classpath:mailTemplate"/>-->
<property name="templateLoaderPath" value="/WEB-INF/view"/>
<!--指定模板文件目录-->
<property name="freemarkerSettings">
<!-- 设置FreeMarker环境属性-->
<props>
<prop key="template_update_delay">1800</prop>
<!--刷新模板的周期,单位为秒-->
<prop key="default_encoding">UTF-8</prop>
<!--模板的编码格式 -->
<prop key="locale">zh_CN</prop>
<!-- 本地化设置-->
</props>
</property>
</bean>
utype=&password=&randomPic=111111&mail_user_type=1&email=jamhihi%40120.com&mail_picCaptcha=aaaa&mobile=
utype=1&password=a11111&randomPic=111111&mail_user_type=1&email=jamhihi%40120.com&mail_picCaptcha=aaaa&phone_user_type=2&mobile=13012817028
utype=2&password=b11111&randomPic=111111&mail_user_type=1&email=jamhihi%40121.com&mail_picCaptcha=cccc&phone_user_type=2&mobile=13012817028
后期优化:后台删除之前弹出个确定要删除。
<script src="static/js/jquery-2.1.3.min.js"></script>
<a href="reg.html">注册</a>
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style">
<span class="jiathis_txt">分享到:</span>
<a class="jiathis_button_tools_1"></a>
<a class="jiathis_button_tools_2"></a>
<a class="jiathis_button_tools_3"></a>
<a class="jiathis_button_tools_4"></a>
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript" >
var jiathis_config={
url:"www.jam.com",
summary:"",
shortUrl:false,
hideMore:true
}
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js" charset="utf-8"></script>
<!-- JiaThis Button END -->
.reg_box .forms ul li.certificate .preview > label.browse {
background: #f1f1f1 none repeat scroll 0 0;
border-top: 1px solid #ccc;
color: #666;
cursor: pointer;
display: block;
height: 29px;
line-height: 30px;
text-align: center;
width: 100%;
}
.reg_box .forms ul li.certificate .preview > label.browse {
background: #f1f1f1 none repeat scroll 0 0;
border-top: 1px solid #ccc;
color: #666;
cursor: pointer;
display: block;
height: 29px;
line-height: 30px;
text-align: center;
width: 100%;
}
http://127.0.0.1/userMan/mp23680469_1437469645407_11.gif
/upload/20151125/e246695f361f4ad2acb197f14f9977a7.gif
{"status":200,"message":null,"data":{"total":7,"totalPage":1,"pageSize":10,"currPage":1,"results":[{"id"
:"95ae79b9-88e7-496b-a58a-08f8ab590ee1","video":"\\upload\\20151125\\d81346a950c5402380c75e905107089a
.flv","publishPeople":"测试员4","pageRanking":null,"videoStatus":0,"marked":1,"lastUpdateTime":1448416308000
,"createTime":1448415717000,"lastUpdateTimeStr":"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName"
:"测试4","teamId":"214sadagy4hyadsg","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload
\\20151125\\dbd473f97e7c4521a9dd0208abceaed8.jpg"},{"id":"ee9bea69-37d0-4f0c-a9bd-17b645c1766c","video"
:"\\upload\\20151125\\8d45dc5a73354c36a541336a391ff71a.flv","publishPeople":"测试员3","pageRanking":null
,"videoStatus":0,"marked":1,"lastUpdateTime":1448416448000,"createTime":1448415589000,"lastUpdateTimeStr"
:"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName":"测试视频3","teamId":"214332zdsgzxgvdsagtadsgdsa"
,"gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload\\20151125\\1cd13ff24f214e7dbf3dfa569bcc74a2
.jpg"},{"id":"4f7a4d26-1be6-43a1-8e0b-1814ac0fcaa8","video":"\\upload\\20151125\\8fcc3c844df24b2690b2eeed797f753e
.flv","publishPeople":"测试员2","pageRanking":null,"videoStatus":0,"marked":1,"lastUpdateTime":1448416468000
,"createTime":1448415485000,"lastUpdateTimeStr":"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName"
:"测试视频2","teamId":"214332zdsgzxgvdsagtadsgdsa","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb"
:"\\upload\\20151125\\778e5a1057a741f09e37b1b35657d974.jpg"},{"id":"1d09f114-f086-45fa-9758-46bfea16c3fe"
,"video":"\\upload\\20151125\\7af12ed09ee448dcb96ce688a2684930.flv","publishPeople":"测试员","pageRanking"
:null,"videoStatus":0,"marked":1,"lastUpdateTime":1448415426000,"createTime":1448415426000,"lastUpdateTimeStr"
:"2015-11-25","createTimeStr":"2015-11-25","stat":1,"videoName":"测试视频","teamId":"214332zdsgzxgvdsagtadsgdsa"
,"gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":""},{"id":"ff3bf5e1-6f4b-449f-81ae-5b2518f118ac"
,"video":"\\upload\\20151124\\d11d3d0aa51b4544bf17b9a04c2540b3.flv","publishPeople":"刀妹","pageRanking"
:null,"videoStatus":0,"marked":1,"lastUpdateTime":1448336321000,"createTime":1448336321000,"lastUpdateTimeStr"
:"2015-11-24","createTimeStr":"2015-11-24","stat":1,"videoName":"艾欧尼亚","teamId":"214sadagy4hyadsg","gameId"
:"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload\\20151123\\2ca1dbce46134bf7be36d5eaca479aad
.jpg"},{"id":"8dbb8cf5-3b65-47a9-8341-a867d922eefd","video":"\\upload\\20151124\\2375a2f58f96491c8d62a5142f9bc83d
.flv","publishPeople":"盖伦","pageRanking":null,"videoStatus":1,"marked":1,"lastUpdateTime":1448336842000
,"createTime":1448336270000,"lastUpdateTimeStr":"2015-11-24","createTimeStr":"2015-11-24","stat":1,"videoName"
:"德玛西亚","teamId":"23432qasdggggg","gameId":"f682db9e-4ea6-471b-aef5-ecd5fe2fe90d","videoThumb":"\\upload
\\20151123\\2ca1dbce46134bf7be36d5eaca479aad.jpg"},{"id":"","video":"","publishPeople":"asasas","pageRanking"
:null,"videoStatus":1,"marked":1,"lastUpdateTime":null,"createTime":null,"lastUpdateTimeStr":null,"createTimeStr"
:null,"stat":1,"videoName":"asdasas","teamId":"95ae79b9-88e7-496b-a58a-08f8ab590ee1","gameId":"95ae79b9-88e7-496b-a58a-08f8ab590ee1"
,"videoThumb":"\\upload\\20151116\\c6a0617fe3323a4305c8581fbd00cede.jpeg"}],"startNum":0}}
http://localhost/video/youth_video.htm# 要设计没有视屏时的空白页.
http://localhost/album/list.htm
http://127.0.0.1/tc/video/.htm
response=={"status":200,"message":"图片上传成功","data":{"url":"/upload/20151127/54a4c25faae249189e37767bb78b95e8.jpg"}}
statusText==success
xhr==[object Object]
把teamId和登录的id进行比较.对应的权限
127.0.0.1/pic/myPicList.htm
http://127.0.0.1/video/myVidList.htm###
<img title="" style="width:50px;height:50px" src="http://127.0.0.1/\upload\20151202\635d6652474f4f87b120d881a8f10de8.jpg">
http://127.0.0.1/pic/%5Cupload%5C20151130%5C141ffacdc1994230927367869a730331.png
http://127.0.0.1/upload/20151130/141ffacdc1994230927367869a730331.png
<img class="banner" src="\upload\20151130\141ffacdc1994230927367869a730331.png" border="0">
http://127.0.0.1/tc/team/mg/b2116559-dff2-4190-a817-fd5737a50d0a.htm
Question:
①图片上传IE8 点击浏览没反应 ②相册视屏为空时页面什么也没有. ③上传照片时替换的问题(没有上传时不能将原来照片替换掉,要保留原来图片--图片修改的时候)
http://192.168.1.70/index.htm###
http://127.0.0.1/pic/myPicList.htm###
http://127.0.0.1/tc/team/mg/b2116559-dff2-4190-a817-fd5737a50d0a.htm##
http://www.jujusports.cn/third/weixinLogin.htm?code=031abfa5ea113d43c6e152470317ed3z&state=undefined
http://www.jujusports.cn/userMan/userInfo.htm
http://www.jujusports.cn/third/userMan/userInfo.htm
o_t-9w1QIxRHSGnzv6aSeM-wZeVw
select id, email, mobile, password, nick_name, cname, ename, gender, utype, trainer_level, papers_pic, province, location, position, pic, micro_pic, description, visible_stat, last_login_time, last_update_time, create_time, audit, stat, qq, weixin, sina, telephone, postcode, detailed_address from sport_user WHERE ( weixin = 'o_t-9w1QIxRHSGnzv6aSeM-wZeVw' and stat = 1 );
<img id="logo_img_general" alt="" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg">
<img alt="" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg" id="logo_img_general">
<img border="0" alt="" id="team_logo_img" src="/upload/20151210/c6de1a0d24764b4c8ea3d71e0778d1bc.jpg">
127.0.0.1:8081/admin/main.do
http://192.168.1.70:8080/admin/login_toLogin.do
http://127.0.0.1:8081/admin/login_toLogin.do
预生产环境: 86 和227
<img style="width:50px;height:50px" title="" src="http://127.0.0.1/\upload\20151216\2b8e487e381b4394997a0c3e2e29b170.jpg">
http://127.0.0.1/tc/index/b2116559-dff2-4190-a817-fd5737a50d0a.htm
ALTER TABLE sport_album_picture ADD `pic_status` int(4) DEFAULT '0' COMMENT '照片状态(0.待审核 1.审核通过 2.审核不通过)';
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus,b.title ,c.name as teamName FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc ;
SELECT * from sport_album_picture where stat = 1;
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus, b.title,b.stat,c.name as teamName, c.stat FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc;
SELECT a.id,a.album_id as albumId,a.pic,a.last_update_time as lastUpdateTime,a.create_time as createTime,a.stat,a.team_id as teamId,a.pic_status as picStatus, b.title,b.stat as albumStat,c.name as teamName,c.stat as teamStat FROM sport_album_picture a LEFT JOIN sport_album b on a.album_id = b.id LEFT JOIN sport_team c on a.team_id = c.id WHERE a.stat =1 ORDER BY a.create_time desc;
主干: svn://192.168.1.156/repo/jujuSport/trunk
分支: svn://192.168.1.156/repo/jujuSport/branches/tianfang20151222
svn://192.168.1.156/repo/jujuSport/trunk/tianfang
https://graph.qq.com/oauth/show?which=error&display=pc&error=100010&client_id=101211878&response_type=token&scope=all&redirect_uri=http%3A%2F%2Fwww.jujusports.cn%2Fresult.html
https://graph.qq.com/oauth/show?which=ConfirmPage&display=pc&client_id=101211878&response_type=token&scope=all&redirect_uri=http%3A%2F%2Fwww.jujusports.cn%2Fresult.html
video_type 视频类型(1:happy football, 2:精英训练营,3:原创视频,4:教练员培训)
ALTER TABLE sport_album_picture ADD `pic_type` int(4) DEFAULT NULL COMMENT '相片类型(4:教练员培训)',
src="http://127.0.0.1\upload\20151224\c6382d1b138c43758bcdde0b0af04a40.jpg"
src="127.0.0.1\upload\20151224\8047ecb61a2749c6b08a2a7fb653db98.jpg"
注:sportUser表环境中标数据要清空,否则脏数据 lecturer的值为null将不会显示出来 ==> 解决方案 在页面修改即可:1和其他
UPDATE sport_user SET lecturer = 0;
注意一一对应;起始符和结束符
<#if page.lecturer ?? >
<#if page.lecturer == 1 >
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="0" class='btn btn-mini btn-success' title="取消培训主讲人"><i class=''></i>取消主讲人</a>
<#elseif page.lecturer == 0 >
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="1" class='btn btn-mini' title="设置培训主讲人"><i class=''></i>设置主讲人</a>
</#if>
<#else>
<a id="lecturerObj" data-obj-id="${(page.id)!}" data-obj-stat="1" class='btn btn-mini' title="设置培训主讲人"><i class=''></i>设置主讲人</a>
</#if>
UPDATE sport_user SET lecturer = NULL;
select MD5(123456),MD5(1234),MD5('a11111'),MD5(123),MD5(111111),MD5("a12345");
MD5(123456):e10adc3949ba59abbe56e057f20f883e
MD5(1234):81dc9bdb52d04dc20036dbd8313ed055
MD5('a11111'):71b596cb42ee254f7416043d184fc970
MD5(123):202cb962ac59075b964b07152d234b70
MD5(111111):96e79218965eb72c92a549dd5a330112
MD5("a12345"):af8f9dffa5d420fbc249141645b962ee
MD5(1):c4ca4238a0b923820dcc509a6f75849b
http://10.10.11.209/SMS/regMobileVal.htm?mobilePhone=15618178557712
<div id="mailpreview" class="preview">
<input id="file" type="file" name="file">
</div>
<div id="mailpreview" class="preview">
<input id="hfThumbnail" type="hidden" value="" name="mail_pic">
<img id="userImageS" border="0" alt="" src="/static/img/preview.png">
<label class="browse" for="file">浏览</label>
<input id="file" type="file" name="file">
<a id="query" class="upload" href="###">浏览</a>
</div>
http://127.0.0.1:8080/main/index
category=1&count=11&category=3&count=22&category=2&count=33&category=1&count=44&productStyleId=2&productShapeId
=1&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a
&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator=%3C&totalFixedPrice=11&content
=11&lunchCount=11&lunchCount=11&isSensitiveIngredients=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-07
&lunchCountSelect=on&lunchCount=&dinnerCountSelect=on&dinnerCount=
category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=1&productCuisineId=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a
&productColorId=2&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator=%3C&totalFixedPrice=22&nutrition
=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=0.01&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069
&nutrition_flag=%3D&content=100&nutrition=117830b6-913b-4ea2-9176-a57f8d3082b8&nutrition_flag=%3E&content
=0&isSensitiveIngredients=0&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-01&lunchCountSelect=on
&lunchCount=1001&dinnerCountSelect=on&dinnerCount=10001
category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=2&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=100&totalFixedPriceOperator
=%3D&totalFixedPrice=80&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=0.01
&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3E&content=10&nutrition=117830b6-913b-4ea2-9176-a57f8d3082b8
&nutrition_flag=%3D&content=5&isSensitiveIngredients=1&fixingsStartTime=2015-12-02&fixingsEndTime=2015-12-18
&lunchCountSelect=on&lunchCount=88&dinnerCountSelect=on&dinnerCount=999
http://127.0.0.1:8080/;jsessionid=jvqbvcr5xxr0bk4nachcnjv3
http://127.0.0.1:8080/smart/addSmart.do?category=1&count=1&category=2&count=2&category=3&count=3&category=1&count=4&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=123&totalFixedPriceOperator
=%3C&totalFixedPrice=111&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3C&content=11
&nutrition=04ba2e48-ed3e-4d95-97a8-b20650abc069&nutrition_flag=%3E&content=22&isSensitiveIngredients
=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-31&lunchCountSelect=on&lunchCount=22&dinnerCount
=11
productStyleName=&productShapeName=&productTasteName=&productCuisineName=&productColorName=&categoryId
=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount=3&productStyleId=2&productShapeId
=beafe1f0-2cd3-4f3d-9f2d-46c3882fbf53&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=33
&nutritionId=625ae3e0-2f73-4964-916b-e5d063659293&nutritionOperator=%3C&nutritionContent=44&isSensitiveIngredients
=1&fixingsStartTime=2015-12-01&fixingsEndTime=2015-12-08&lunchCountSelect=on&lunchCount=5&dinnerCountSelect
=on&dinnerCount=6
productStyleName=&productShapeName=&productTasteName=&productCuisineName=&productColorName=&categoryId
=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount=3&productStyleId=1&productShapeId
=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=08eab952-7d41-43e7-a80a-a7b2f7b7c407&productCuisineId
=39c6e2f7-7e7f-44d5-9d76-33b64999ed2a&productColorId=2&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&nutrition=0052c3da-1f72-446e-ab5a-5dd07df1b555&nutrition_flag=%3C&content=33
&nutritionId=07af8e44-d60f-46b4-b607-bc99213b0d23&nutritionOperator=%3E&nutritionContent=44&isSensitiveIngredients
=1&fixingsStartTime=2015-12-08&fixingsEndTime=2015-12-15&lunchCountSelect=on&lunchCount=55&dinnerCountSelect
=on&dinnerCount=66
setMealName=%E5%87%AF%E7%91%9F%E7%90%B301&productStyleName=&productShapeName=&productTasteName=&productCuisineName
=&productColorName=&categoryId=1&categoryCount=1&categoryId=2&categoryCount=2&categoryId=1&categoryCount
=3&productStyleId=1&productShapeId=0aaa8533-0e7d-4cd2-aaa8-f437eb3bc619&productTasteId=1&productCuisineId
=0394992d-dced-4ac8-8681-a921140770a5&productColorId=1&totalCostOperator=%3C&totalCost=11&totalFixedPriceOperator
=%3C&totalFixedPrice=22&isSensitiveIngredients=0&fixingsStartTimeStr=2015-12-01&fixingsEndTimeStr=2015-12-31
&lunchCountSelect=on&lunchCount=33&dinnerCount=
@Autowired
@Getter
private SportAlbumMapper mapper;
@Override
public Object getMapper() {
return mapper;
}
lunchCountSelect dinnerCountSelect lunchCount dinnerCount
select * from (
SELECT a.* from t_cb_intelligent_fixings where stat = 1
) a
LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id and b.fixings_type = 2
LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
SELECT a.* from t_cb_intelligent_fixings a
LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id
LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
WHERE b.fixings_type = 2 AND a.stat = 1;
-- select * from (
-- SELECT a.* from t_cb_intelligent_fixings where stat = 1
-- ) a
-- LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id and b.fixings_type = 2
-- LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
-- LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id ;
--
-- SELECT a.* from t_cb_intelligent_fixings a
-- LEFT JOIN t_cb_fixings_master b on a.fixings_master_id = b.id
-- LEFT JOIN t_cb_intelligent_fixings_category c on a.id = c.intelligent_fixings_id
-- LEFT JOIN t_cb_intelligent_fixings_nutrition d on a.id = d.intelligent_fixings_id
-- WHERE b.fixings_type = 2 AND a.stat = 1;
-- SELECT DISTINCT a.name,a.id,a.unit from t_cb_nutrition a;
-- SELECT id,max(B),max(C) FROM TABLE1 GROUP BY A,B,C;
-- select a.* from t_cb_nutrition a group by id,name;
查询所有营养:
select * from t_cb_param_config a where a.param_type = 'material_nutrition';
top.Dialog.close();
查询智能配菜接口:http://127.0.0.1:8080/smart/findSmart.do
赛事通: svn://192.168.1.156/repo/sst/trunk
思考:Long类型变为String 类型 ==> Long.toString 和 String.valueOf的区别==>操作结果表示:貌似2个都可以
SELECT a.id,a.set_meal_name as setMealName,a.fixings_master_id as fixingsMasterId,a.lunch_count as lunchCount,a.dinner_count as dinnerCount,a.total_cost_operator as totalCostOperator,a.total_cost as totalCost, a.total_fixed_price_operator as totalFixedPriceOperator,a.total_fixed_price as totalFixedPrice,a.is_sensitive_ingredients as isSensitiveIngredients,a.fixings_start_time as fixingsStartTime,a.fixings_end_time as fixingsEndTime,a.create_time as createTime, a.last_update_time as lastUpdateTime,a.stat,b.fixings_name as fixingsName,b.fixings_type as fixingsType FROM t_cb_intelligent_fixings a LEFT JOIN t_cb_fixings_master b ON a.fixings_master_id = b.id WHERE a.stat = 1 and b.fixings_type = 2 and a.set_meal_name like '1' ORDER BY a.create_time DESC LIMIT 0,10;
赛事通: http://127.0.0.1:8080/admin/toLogin.do admin :123456
select id, title, create_user_id, create_user_name, content, update_user_id, update_user_name, group_id, group_name, pic, create_time, last_update_time, stat from sst_notice WHERE ( stat = 1 ) order by create_time DESC limit 1,10 ;
select * from sst_notice WHERE ( stat = 1 ) order by create_time DESC limit 1,10 ; -- 应该从0开始
select * from sst_notice ;
http://192.168.1.70:8080/admin/login_toLogin.do
-- CREATE TABLE `a` (
-- `id` bigint(20) NOT NULL AUTO_INCREMENT,
-- `message_id` int(11) NOT NULL,
-- `user_id` int(11) NOT NULL,
-- `msg` varchar(1024) DEFAULT NULL,
-- `gmt_create` datetime NOT NULL,
-- PRIMARY KEY (`id`),
-- KEY `user_id` (`user_id`,`message_id`),
-- KEY `idx_gmt_create` (`gmt_create`)
-- ) ENGINE=InnoDB DEFAULT CHARSET=gbk;
-- CREATE TABLE `b` (
-- `user_id` int(11) NOT NULL,
-- `message_id` int(11) NOT NULL,
-- `msg` varchar(1024) DEFAULT NULL,
-- `gmt_create` datetime NOT NULL,
-- PRIMARY KEY (`user_id`,`message_id`),
-- KEY `idx_gmt_create` (`gmt_create`)
-- ) ENGINE=InnoDB DEFAULT CHARSET=gbk;
-- CREATE TABLE `index_str` (
-- `id` int(11) NOT NULL AUTO_INCREMENT,
-- `user_id` varchar(30) NOT NULL,
-- `name` varchar(30) DEFAULT NULL,
-- PRIMARY KEY (`id`),
-- KEY `idx_user_id` (`user_id`)
-- ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=gbk
-- select * from index_str\g;
select * from index_str WHERE user_id = 11;
select * from index_str WHERE user_id = '11';
select * from index_str WHERE user_id = 00011;
select * from index_str WHERE user_id = '00011';
http://10.10.11.133:8080/main/index
http://127.0.0.1:8080/admin/main.do
http://192.168.1.70:8080/admin/login_toLogin.do
<img style="width:60px;height:60px;" src="http://192.168.1.70//upload/20160120/4a0062f3379d4169bf88fc74a2fa20cc.jpg" alt="" id="img_show_XTKEQD">
http://192.168.1.70//upload/20160120/4a0062f3379d4169bf88fc74a2fa20cc.jpg
<img id="img_show" style="width:60px;height:60px;" src="192.168.1.193\upload\20160120\f57c4b087ed44003ac22d6ded3872a08.jpg" alt="">
192.168.1.193\upload\20160120\f57c4b087ed44003ac22d6ded3872a08.jpg
sst_competition_apply 赛事报名表
http://127.0.0.1:8080/admin/competition/news/findCompNewsView.do?pId=14
http://127.0.0.1:8080/admin/competition/notice/findCompNoticeView.do?pId=14
http://127.0.0.1:8080/admin/team//findTeamView.do?pId=19
notice_edit.htm
2100 300+100+300+400 6000(600+100+100+20*30+100=1500) 4500(4*800+1200)
2017-29:(8000-3000)*12=60000
2018-30:(8000-3000)*12=60000
80*8=65 65+20=85 65*0.3=20 65/(20*12)=2700 65/(10*12)=5400
http://192.168.1.180:8080/cookbookAdmin/main/index
待解决问题:
①球队图片上传多文件上传问题 已解决
②后台表单校验 已解决
③球员管理? 已解决
④某些审批性的字段是否要加 暂不加
⑤后台获取当前用户信息 已解决
⑥智能配菜删除最后一条记录报错 已解决(<if test="star != null and end != null and star >= 0">)
⑦配菜总价正则 已解决(数据库类型为bigint(50)所以页面校验调整为只能输入整数)
⑧日期框问题 (插件问题,暂不解决)
⑨球队位置下拉列表框(数据库里存的为int类型.页面要处理)
[DEBUG][2016-01-29 14:31:25,390] - ==> Preparing: INSERT INTO sst_team_image (id, team_id, title, img_url, note, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat) VALUES (?,?,?,?,?,?,?, ?,?,?,?,?) , (?,?,?,?,?,?,?, ?,?,?,?,?) , (?,?,?,?,?,?,?, ?,?,?,?,?)
[DEBUG][2016-01-29 14:31:25,400] - ==> Parameters: f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null,
f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null,
f854b9ee-6eec-4b0e-8ff4-001e6935bcc5(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\45feb56292fc427badc3778d96a987ed.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 14:31:25.319(Timestamp), null, null
[DEBUG][2016-01-29 15:05:38,383] - ==> Parameters: 0dbd5950-5514-4358-85d9-2320f0bc5b45(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\f394cbe9b68e47a7a5c7ef3f3c01da4e.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null,
5b468d6a-bfcf-4389-9482-97622e170823(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\80348433cdb24b3f8b4a0dd1e36366e5.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null,
d8e5b2aa-ff2e-4a04-9838-b7607b13da83(String), 0a80313f-6f94-483a-a758-177138aa21d6(String), 7(String), \upload\20160129\e899f68db9b140bab4176a0aaab91474.jpg(String), <p>77</p>(String), null, null, null, null, 2016-01-29 15:05:38.332(Timestamp), null, null
IntelligentFixingsDto(id=4bc5bc50-e0e6-4dc6-b634-c2b8b3aeb637, setMealName=fff, fixingsName=null, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=0, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[], shape=[], taste=[], cuisine=[], color=[], star=0, end=0, totalPage=0)
IntelligentFixingsDto(id=null, setMealName=null, fixingsName=ggg, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[com.ssic.cookbook.manager.dto.CategoryDto@270c836e], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[com.ssic.cookbook.manager.dto.SmartNutritionDto@2688bec9], nutritionId=[1], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=null, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[com.ssic.cookbook.manager.dto.StyleDto@5ba591e2], shape=[com.ssic.cookbook.manager.dto.ShapeDto@530cbb6f], taste=[com.ssic.cookbook.manager.dto.TasteDto@68e59f01], cuisine=[com.ssic.cookbook.manager.dto.CuisineDto@3b2a3074], color=[com.ssic.cookbook.manager.dto.ColorDto@4ed32e04], star=0, end=0, totalPage=0)
增加IntelligentFixingsDto(id=null, setMealName=null, fixingsName=hhh, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[com.ssic.cookbook.manager.dto.CategoryDto@6cfb984], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[com.ssic.cookbook.manager.dto.SmartNutritionDto@2f9c8c9a], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=null, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[com.ssic.cookbook.manager.dto.StyleDto@4ed2eae1], shape=[com.ssic.cookbook.manager.dto.ShapeDto@793a8234], taste=[com.ssic.cookbook.manager.dto.TasteDto@703a6219], cuisine=[com.ssic.cookbook.manager.dto.CuisineDto@8fe90df], color=[com.ssic.cookbook.manager.dto.ColorDto@d92516], star=0, end=0, totalPage=0)
编辑IntelligentFixingsDto(id=68d053a3-d307-419c-8bc7-696982972e76, setMealName=hhh1, fixingsName=null, fixingsMasterId=null, fixingsMasterName=null, fixingsType=null, lunchCount=1, dinnerCount=null, productTasteId=null, productTasteName=, productColorId=null, productColorName=, productCuisineId=null, productCuisineName=, productStyleId=null, productStyleName=, productShapeId=null, productShapeName=, totalCostOperator=>, totalCost=1, totalCostStr=null, totalFixedPriceOperator=>, totalFixedPrice=1, totalFixedPriceStr=null, isSensitiveIngredients=1, fixingsStartTime=Mon Feb 01 00:00:00 CST 2016, fixingsEndTime=Mon Feb 01 00:00:00 CST 2016, category=[], categoryId=[c1dd7b1e-0d17-4df7-86df-b7162cbae712], categoryCount=[1], nutrition=[], nutritionId=[2b7a64e1-ac69-40e8-9089-34c5dcbd2d53], nutritionOperator=[>], nutritionContent=[1], createTime=null, createTimeStr=null, lastUpdateTime=null, lastUpdateTimeStr=null, stat=0, fixingsStartTimeStr=2016-02-01, fixingsEndTimeStr=2016-02-01, styleId=[11a69f0c-5a7b-488e-bed4-2124a06315b7], shapeId=[05fb26f0-0858-4ef9-9d8d-db4286ff43b3], tasteId=[0ee68987-2f43-4035-a450-397430894f16], cuisineId=[05563a1f-0fb8-4004-9749-128e5caad7d5], colorId=[07f08667-9267-4f34-9055-c6b982e275f6], style=[], shape=[], taste=[], cuisine=[], color=[], star=0, end=0, totalPage=0)
-- SELECT a.id,a.set_meal_name as setMealName,a.fixings_master_id as fixingsMasterId,a.lunch_count as lunchCount,a.dinner_count as dinnerCount,a.total_cost_operator as totalCostOperator,a.total_cost as totalCost, a.total_fixed_price_operator as totalFixedPriceOperator,a.total_fixed_price as totalFixedPrice,a.is_sensitive_ingredients as isSensitiveIngredients,a.fixings_start_time as fixingsStartTime,a.fixings_end_time as fixingsEndTime,a.create_time as createTime, a.last_update_time as lastUpdateTime,a.stat,b.fixings_name as fixingsName,b.fixings_type as fixingsType FROM t_cb_intelligent_fixings a LEFT JOIN t_cb_fixings_master b ON a.fixings_master_id = b.id WHERE a.stat = 1 and b.fixings_type = 2 ORDER BY a.create_time DESC LIMIT -10,10;
UPDATE t_cb_intelligent_fixings SET stat=1;
-- select * from t_cb_intelligent_fixings;
20160203==>待解决问题:
① 计划的定时提醒功能 =>改为王翔做了
② 菜谱系统查询优化 =>注意把7个表的查询返回值要改成dto,之前是pojo
手机端发布公告(移动端转json格式字符串)
ISportAddressesService
http://127.0.0.1:8081/home/comp/list.do?currPage=1&pageSize=2
http://127.0.0.1:8081/home/comp/news.docurrPage=1&pageSize=2&compId='4aa4250e-d01e-4610-80d2-ce20e8be3ab6'
-- `sst_competition``sst_competition`select count(*) from sst_competition WHERE ( stat = 1 ) ;
-- select id, title, content, icon, start_date, end_date, is_closed, comp_type, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition WHERE ( stat = 1) order by create_time DESC limit 0,0 ;
-- select id, comp_id, comp_name, title, summary, pic, content, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition_news WHERE ( comp_id = '4aa4250e-d01e-4610-80d2-ce20e8be3ab6' and stat = 1 ) order by create_time desc limit 0,2;
-- select id, comp_id, comp_name, title, summary, pic, content, create_admin_id, create_admin_name, update_admin_id, update_admin_name, create_time, last_update_time, stat from sst_competition_news WHERE ( comp_id = '4aa4250e-d01e-4610-80d2-ce20e8be3ab6' and stat = 1 ) order by create_time desc limit 0,2 ;
SELECT * FROM sst_addresses WHERE LEVEL= 1;
http://10.10.11.174:8081/home/user/list.do?userId=0409b62b-564a-4217-8b75-d9b9389d644e&currPage=1&pageSize=10
http://centos231/group-two/jujusports.git
http://127.0.0.1:8081/home/album/findAlbumByPage.do?page=2&limit=3
地址接口: 127.0.0.1:8081/home/address/findProvince.do?level=0&parentId=''
* @describe 查询省:LEVEL = 1 AND parent_id ="1"(parent_id可不传)
* @describe 查询市:LEVEL = 2 AND parent_id ="省份Id"
* @describe 查询区:LEVEL = 3 AND parent_id ="市Id"
http://10.10.11.154:8081/home/address/findAddress.do?level%20=%201&parentId%20=%200
http://10.10.11.105:8080/main/index
http://192.168.1.248:8880/cookbook/main/index
http://103.36.132.8/appGroupController/findUserByGroupId.do?groupId=9ecb565b-9618-4122-87ab-9a6194ffd3f9
user_id
0409b62b-564a-4217-8b75-d9b9389d644e
48a8acf7-67d0-44a9-806e-3b00c2b1337a
d4a9dc41-dfe6-4e5b-8c3e-e777423ab5f7
http://127.0.0.1:8081/user/findUserByGroupId.do?groupId=1
SELECT user_id FROM sst_group_user WHERE group_id = 1;
SELECT * FROM sport_user WHERE id IN (SELECT user_id FROM sst_group_user WHERE group_id = 1);
SELECT a.mobile FROM sport_user a WHERE a.id IN (SELECT user_id FROM sst_group_user b WHERE b.group_id = 1);
file:///D:/git/jujusports-web/html/ssfl/forgate.html###
http://127.0.0.1/user/forget.htm
待解决 :修改用户时 随机名重复
110000 > 北京市
420112 > 东西湖区
修改用户信息记得校验
http://127.0.0.1:8081/user/findUserInfo.htm?id=012da943-8201-4028-b389-a53158d4c8ce
210000 210624 210600
<!-- <#if userInfo.province?? && page.id == userInfo.province?number>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}" selected="selected">${(page.name)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if> -->
<#list allProvince as page>
<#if userInfo.province??>
<#if page.id == userInfo.province?number>
<option value="${(userInfo.area)!}" selected="selected">${(userInfo.areaStr)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
<#else>
<option value="" selected="selected">请选择</option>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
</#list>
<#if allProvince?? >
<option value="" selected="selected">请选择</option>
<#list allProvince as page>
<#if userInfo.province??>
<option value="${(userInfo.province)!}" selected="selected">${(userInfo.provinceStr)!}</option>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
<#else>
<option value="${(page.id)?replace(',','')!}" title="${(page.name)!}">${(page.name)!}</option>
</#if>
</#list>
</#if>
var ajaxParams = $("#userInfo").serialize();
$.ajax({
url:'/user/edit.htm',
type: 'POST',
dataType: 'json',
async:false,
data:ajaxParams,
success:function(data){
//console.log(data.data);
if(data.status == 200){
layer.msg("修改用户信息成功");
}else{
layer.msg("修改用户信息失败");
}
}
})
<span class="js-addr show-inf">
北京市 北京市 东城区
</span>
<img border="0" src="\upload\20160318\49d1781071cf4f85b588e6ab605df4ab.jpg" id="imgShow">
Z:/jam/upload/upload/20160318/49d1781071cf4f85b588e6ab605df4ab.jpg
\upload\20160318\9b1f995fdf4643098a1f9c81ef937b79.png
<span class="js-sex show-inf">男</span>
Question:①导航栏跟踪红线问题.
②邮箱找回密码问题.
file:///D:/git/jujusports-web/html/ssfl/forgate.html###
http://www.jujusports.cn/index.htm
http://127.0.0.1/user/toPerson.htm
<button onclick="checkMaterial('1e8ee3b7-3fdd-4d9e-87e6-2f6608a3e6c6');" data-target="#myModal" data-toggle="modal" class="btn btn-mini btn-primary">查看</button>
<input id="productId" type="hidden" value="066dd8b9-0c38-4def-982e-b07151d91295" name="productId">
<input id="smartId" type="hidden" value="5c90423b-ea08-4b4f-b779-5bef273c4c7a" name="smartId">
<input id="lunchCount" type="hidden" value="11" name="lunchCount">
<input id="dinnerCount" type="hidden" value="0" name="dinnerCount">
ModelAndView mv = getModelAndView();
UserDto userDto= (UserDto) session.getAttribute(SessionConstants.LOGIN_USER_INFO);
if(userDto == null){
mv.setViewName("/index");
return mv;
}
List<UserDto> list = userService.findUserByParam(userDto);
if(list == null || list.size() == 0){
mv.setViewName("/index");
return mv;
}
UserDto dto = list.get(0);
表: t_cb_fixings_result_type_product
smartId f7e1076b-3ee3-4701-a26a-28279b81a7f5 bd6b7464-1025-4bb5-9673-1273656a0a3c 1800408b-5ec8-450d-8352-c0363b370b6b
productId 4ac8ff32-f4f2-453a-9a4b-079ccc5fef0b fd79cbd8-9db4-4389-8c52-959d468a2bf3 9ccbc5be-087f-42bd-9d61-06832525fb97
1.0
FixingsResultDto
id=1800408b-5ec8-450d-8352-c0363b370b6b;productId=9ccbc5be-087f-42bd-9d61-06832525fb97;lunchCount=1;dinnerCount=
http://127.0.0.1/datacenter/points.htm?compId=edf136cc-286a-4765-b0c0-e623764fbce1
http://127.0.0.1/datacenter/points.htm?compId=edf136cc-286a-4765-b0c0-e623764fbce1&currPage=1
file:///D:/git/jujusports-web/html/ssfl/data-trailer.html
file:///D:/git/jujusports-web/html/ssfl/data-battle-detail.html
http://127.0.0.1/competition/match/trailerDetil.htm
http://127.0.0.1/competition/match/trailer.htm?id=79e2c6ee-fce1-4475-84fc-21d84e753e2f
sst_team_player_datas 表添加字段,后台记得修改
sst_notice 增加接收公告人字段(text类型)
SELECT b.name AS teamNmae,(a.win*3+a.draw) AS integral,a.* FROM sst_competition_team a LEFT JOIN sst_team b ON a.team_id = b.id WHERE comp_id= '`sst_match_team_base_datas`' ORDER BY integral DESC;
SELECT a.* FROM sst_competition_match a WHERE a.home_team_id = b.team_id
TeamPlayerPositionEnum
SELECT id, comp_id, comp_name, team_id, team_name, team_icon, player_id, player_name, POSITION, times, play_times, num, points, assists, yellow, red, create_admin_id, create_admin_name, create_time, last_update_time, stat FROM sst_team_player_datas WHERE ( comp_id = '05ab432c-67ec-42bb-8ef7-1bac55f28976' AND stat = 1 ) ORDER BY red DESC LIMIT 0,10 ;
http://127.0.0.1/competition/match/trailer.htm?currPage=3
forgate.html
person.html
regiest.html
safe.html
team-herald.html
team-introduction.html
team-member.html
待解决:
后台记得加字段(公告里面的允许转发)
公告图片上传后URL的问题,要去掉前缀
bae421af-31c4-4e75-9674-00308b147034(String), a3efc072-0142-4fff-b951-3adc659a70c9(String), e256e2ad-edc1-4aeb-bf94-014cf506a4a5(String), null, null, null, null,
SELECT b.*,a.readstat AS ReadStat,a.user_id FROM sst_notice_users AS a LEFT JOIN sst_notice AS b ON a.notice_id = b.id WHERE a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' ORDER BY b.create_time DESC LIMIT 0,1;
10.10.11.15:8081/home//notice/findNoticeView.do?currPage=1&pageSize=10
10.10.11.15:8081/home//notice/findNoticeView.do?currPage=1&pageSize=10&userId=40b41478-1094-49da-b21a-9ab7c7cbb42f
select b.id,b.title,b.create_user_id as createUserId ,b.to_users as toUsers,b.create_user_name as createUserName, b.content,b.group_id as groupId,b.group_name as groupName,b.pic,b.create_time as createTime,b.stat,b.allow_forward as allowForward, a.readstat as ReadStat, c.nick_name as nickName FROM sst_notice_users as a LEFT JOIN sst_notice as b ON a.notice_id = b.id LEFT JOIN sport_user c ON a.user_id = c.id WHERE a.user_id = ? ORDER BY b.create_time desc limit ?, ?
http://10.10.11.15:8081/home/notice/findNotice.do?id=e0df8791-c91b-478c-8eb5-aa5e383619be
-- SELECT b.*,a.readstat AS ReadStat,a.user_id FROM sst_notice_users AS a LEFT JOIN sst_notice AS b ON a.notice_id = b.id WHERE a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' ORDER BY b.create_time DESC LIMIT 0,1;
-- select b.*,a.readstat as ReadStat,a.`user_id` from sst_notice_users as a left join sst_notice as b on a.notice_id = b.id ;
-- select b.*,a.readstat as ReadStat from sst_notice_users as a left join sst_notice as b on a.notice_id = b.id where a.user_id = '40b41478-1094-49da-b21a-9ab7c7cbb42f' order by b.create_time desc limit 0,1;
-- select a.*,b.*,c.`nick_name` from sst_notice as a left join sst_notice_users as b on a.id = b.notice_id left join sport_user c on b.`user_id` = c.id where b.user_id='40b41478-1094-49da-b21a-9ab7c7cbb42f';
-- SELECT a.*,b.* FROM sst_notice AS a LEFT JOIN sst_notice_users AS b ON a.id = b.notice_id WHERE b.user_id='40b41478-1094-49da-b21a-9ab7c7cbb42f';
-- select id, title, create_user_id, to_users, create_user_name, content, update_user_id, update_user_name, group_id, group_name, pic, create_time, last_update_time, stat, read_stat, allow_forward from sst_notice WHERE ( id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' and stat = 1 ) ;
SELECT * FROM sst_notice WHERE id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
SELECT a.*,b.readstat FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
-- select count(*) from sst_notice_users WHERE ( id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' and readstat = 1 and stat = 1 );
SELECT COUNT(*) FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be';
SELECT COUNT(*) FROM sst_notice a LEFT JOIN sst_notice_users b ON a.id = b.notice_id WHERE a.id = 'e0df8791-c91b-478c-8eb5-aa5e383619be' AND b.readstat =0;
b4cd50b0-dedb-4a88-befe-16c93a6ca2fb,42980458-0ab3-4b60-aa89-51ca8c2be248,733d9b62-ea84-42cc-91fe-0a7f43a8c209
http://127.0.0.1:8080/admin/competition/match/list.do
http://192.168.1.70:8080/admin/competition/match/list.do
发送短信接口: http://127.0.0.1:8081/home/sms/send.do?mobile=13012817028
insert into sst_album_picture ( id, pic, title, described, create_time, stat ) values ( ?, ?, ?, ?, ?, ? )
BUG:菜单类型为空会报错 list页面会报错 ====>数据问题,不解决
重写上传接口,能同时上传2个文件
var urls_shadow = '';
var imgurl_shadow = '';
$("#upload_shadow").uploadify({
'uploader': '${base}/plugins/uploadify/uploadify.swf',
'script':"${base}/file/upload.htm;jsessionid=${sessionId!}",
'cancelImg': '${base}/plugins/uploadify/cancel.png',
'queueID': 'fileQueue',
'auto': true,
'multi':true,
'buttonText': 'select',
'sizeLimit':1024*1024*10,
//'simUploadLimit' : 1,
//'queueSizeLimit' : 1,
'fileDesc' : 'pictures',
'sizeLimit':1024*1024*10,
'fileExt': '*.gif;*.png;*.jpg',
onComplete: function(event, queueID, fileObj, response, data) {
var dataObj = eval("("+response+")");
if(dataObj.status == 200){
parent.layer.msg('图片上传成功', {
shade: [0.9, '#000'],
icon: 6,
time: 800 //2秒关闭(如果不配置,默认是3秒)
}, function(){
//$("#img_show").attr("src",'${imgurl}'+dataObj.filePath);
var img_id = "img_show_" + queueID;
img_url = '${imgurl_shadow}'+dataObj.filePath;
imgurl_shadow = dataObj.filePath + ",";
$("#img_contain").append("<img id='" + img_id + "' alt='' src='" + img_url + "' style='width:60px;height:60px;'/>");
urls_shadow += imgurl_shadow;
//console.log("@@"+urls);
});
} else {
layer.alert("对不起," + fileObj.name + "上传失败!<br/>请选择小于10M的图片文件", {
shade: [0.9, '#000'],
icon: 3,
time: 3000 //2秒关闭(如果不配置,默认是3秒)
});
}
//console.log("event = " + event+ ";queueID = " + queueID + ";fileObj = " + fileObj+ ";dataObj = " + dataObj+ ";data = " + data);
//console.log(dataObj.filePath);
//$("#thumbnail").val(dataObj.filePath);
//$("#pic").val(urls);
},
onSelect:function(){
},
onError: function(event, queueID, fileObj) {
layer.alert("对不起," + fileObj.name + "上传失败!<br/>请选择小于10M的图片文件", {
shade: [0.9, '#000'],
icon: 3,
time: 3000 //2秒关闭(如果不配置,默认是3秒)
});
}
});
<div class="control-group">
<label class="control-label" for="form-field-2">阴影图</label>
<div class="controls">
<input multiple type="file" id="upload_shadow"/>
</div>
<div class="controls" id="img_shadow">
</div>
</div>
<#if userInfo.gender == 1>
<input class="hide" type="radio" name="gender" id="male" value="1" checked="chekced"/>
<label class="sex male check hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2" />
<label class="sex female hide" for="female">女</label>
<span class="js-sex show-inf">男</span>
<#elseif userInfo.gender == 2>
<input class="hide" type="radio" name="gender" id="male" value="1"/>
<label class="sex male hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2" checked="chekced"/>
<label class="sex female check hide" for="female">女</label>
<span class="js-sex show-inf">女</span>
<#else>
<input class="hide" type="radio" name="gender" id="male" value="1" checked="chekced"/>
<label class="sex male check hide" for="male">男</label>
<input class="hide" type="radio" name="gender" id="female" value="2"/>
<label class="sex female hide" for="female">女</label>
<span class="js-sex show-inf"></span>
</#if>
http://10.10.11.78:8080/dashboard/#/ide/nbyan
<td class='hidden-phone'><#if page.menuType??> <#list
menuTypes as type> <#if page.menuType?eval ==
type.getId()>${type.getCname()}</#if> </#list> <#else> <span
class='label label-warning'>未加入菜单</span> </#if>
</td>
http://127.0.0.1:8080/admin/main.do
http://192.168.1.70:8080/admin/toLogin.do
http://127.0.0.1:8080/admin/toLogin.do
<#list auditTypes as type>
<option <#if (query.picStatus?? && query.picStatus?eval == type.getIndex())>selected="selected"</#if> value="${type.getIndex()}">${type.getName()}</option>
</#list>
上超联赛个人中心BUG
-- select * from `sport_addresses` where id="130300";
SELECT id, parent_id, NAME, LEVEL, create_time, last_update_time, stat FROM sst_addresses WHERE ( LEVEL = 1 AND parent_id = "130300" AND stat = 1 ) ;
SELECT id, parent_id, NAME, LEVEL, create_time, last_update_time, stat FROM sst_addresses WHERE ( LEVEL = 2 AND parent_id = "130300" AND stat = 1 ) ;
[INFO ][2016-04-08 09:47:37,951] - slave
[DEBUG][2016-04-08 09:47:37,954] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,954] - ==> Preparing: select id, name, icon, province, city, area, address, summary, contacts, mobile, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team where id = ?
[DEBUG][2016-04-08 09:47:37,955] - ==> Parameters: 0bc20f4d-8028-4565-96d9-eedfaeebed82(String)
[DEBUG][2016-04-08 09:47:37,958] - <== Total: 1
[INFO ][2016-04-08 09:47:37,961] - slave
[DEBUG][2016-04-08 09:47:37,964] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,965] - ==> Preparing: select id, team_id, team_name, year, game_name, result, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team_result WHERE ( team_id = ? and stat = ? )
[DEBUG][2016-04-08 09:47:37,965] - ==> Parameters: 0bc20f4d-8028-4565-96d9-eedfaeebed82(String), 1(Integer)
[DEBUG][2016-04-08 09:47:37,967] - <== Total: 0
[INFO ][2016-04-08 09:47:37,971] - slave
[DEBUG][2016-04-08 09:47:37,975] - ooo Using Connection [jdbc:mysql://192.168.1.139:3306/juju-sport?characterEncoding=utf-8&useUnicode=true, [email protected], MySQL Connector Java]
[DEBUG][2016-04-08 09:47:37,976] - ==> Preparing: select id, name, icon, province, city, area, address, summary, contacts, mobile, create_user_id, create_user_name, update_user_id, update_user_name, create_time, last_update_time, stat from sst_team where id = ?
[DEBUG][2016-04-08 09:47:37,976] - ==> Parameters: cdad29c0-cd4f-4871-94f4-9ee00b6fc83f(String)
[DEBUG][2016-04-08 09:47:37,979] - <== Total: 1
<img id="img_show" alt="" src="\upload\20160408\67f596e998f8498489c3fc46a7c3fc42.gif" style="width:60px;height:60px;">
http://127.0.0.1:8080/admin/user/findUserInfoView.do?pId=3
findUserInfoView
SELECT a.id, b.id AS userId,a.name, a.age, a.card_no AS cardNo, a.mobile, a.school, a.student_no AS studentNo, a.photo,a.create_time AS createTime,a.last_update_time AS lastUpdateTime, a.stat,b.nick_name AS nickName FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 LIMIT 0, 10;
SELECT COUNT(*) FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 ;`sst_notice_users``sst_notice_users`
gender //姓别(1:男;2:女)
SELECT a.id, b.id AS userId,a.name, a.age, a.card_no AS cardNo, a.mobile, a.school, a.student_no AS studentNo, a.photo,a.create_time AS createTime,a.last_update_time AS lastUpdateTime, a.stat,b.nick_name AS nickName FROM sst_user_info AS a LEFT JOIN sport_user AS b ON a.user_id = b.id WHERE a.stat = 1 AND b.stat = 1 ;
<li id="userId_chzn_o_1" class="active-result" style="">juju_q5736</li>
<li id="userId_chzn_o_2" class="active-result" style="">rt37555557</li>
<li id="userId_chzn_o_4" class="active-result" style="">11111112</li>
<li id="userId_chzn_o_7" class="active-result" style="">juju_x2392</li>
<li id="userId_chzn_o_8" class="active-result" style="">王翔</li>
<li id="userId_chzn_o_9" class="active-result" style="">测试</li>
<li id="userId_chzn_o_10" class="active-result" style="">juju_t9258</li>
<li id="userId_chzn_o_12" class="active-result result-selected" style="">ken222</li>
<li id="userId_chzn_o_15" class="active-result" style="">zgy</li>
<li id="userId_chzn_o_97" class="active-result" style="">Mr</li>
<li id="userId_chzn_o_98" class="active-result" style="">沐风</li>
<li id="userId_chzn_o_99" class="active-result" style="">111</li>
<li id="userId_chzn_o_100" class="active-result" style="">8111</li>
<li id="userId_chzn_o_101" class="active-result" style="">asdsad</li> 13382052252
后台信息校验-- 身份证,年龄,非空, 如:用户赛事信息模块
usercontroll ctrl + l 534
ALTER TABLE sport_user ADD `birthday` varchar(10) DEFAULT NULL COMMENT '生日';
后台球员列表BUG
http://www.jujucatering.com:8080/index.htm#slide-3
http://www.jujucatering.com:5050/admin/menu/findPage.do?pId=300
http://127.0.0.1:8082/index.htm?mId=4c8d507e-de2b-41cc-9667-e35e95914bb4
http://192.168.1.70:8080/admin/main.do
ALTER TABLE sst_album_picture ADD `order_no` int(4) DEFAULT NULL COMMENT '照片排序';
按教练,领队,队长进行排序
ALTER TABLE sst_home_menu ADD `is_show` int(4) DEFAULT '1' COMMENT '首页是否显示(0:不显示;1:显示)',
400 622 6332 3308642881
mvn deploy -DaltDeploymentRepository=ken-mvn-repo::default::file:E:/Maven
市教委 --> 区教委 --> 学校
DTO 加注解@JsonIgnoreProperties
private Boolean dishes;???? 布尔型??
写代码,是犯罪. 找bug,是破案- -..
-- select id, committee_id, school_name, mobile_no, address, longitude, latitude, level, province, city, area, create_time, last_update_time, stat from t_edu_school WHERE ( stat = 1 ) order by create_time DESC
-- select count(*) from t_pro_wares WHERE ( id = '03438834-bf88-4224-b764-d60effa5348c' and dishes = true and stat = 1 );
SELECT * FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423';
t_edu_school t_pro_packages t_pro_dishes
-- select id, committee_id, school_name, mobile_no, address, longitude, latitude, level, province, city, area, create_time, last_update_time, stat from t_edu_school WHERE ( stat = 1 ) order by create_time DESC
-- select count(*) from t_pro_wares WHERE ( id = '03438834-bf88-4224-b764-d60effa5348c' and dishes = true and stat = 1 );
SELECT a.id,a.school_name AS schoolName,a.`school_thum` AS schoolThum, a.`mobile_no` mobile_no AS mobileNo,
b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase,
d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` LEFT JOIN t_pro_wares d ON c.wares_id = d.id
WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1;
接口列表:
学校列表(需要搜索功能):
http://127.0.0.1:8091/school/findSchoolList.do
http://127.0.0.1:8091/school/findSchoolList.do?pageSize=10&currPage=1 不传pageSize则查询所有
供应商列表(需要搜索功能):
http://127.0.0.1:8091/supplier/findSupplierList
http://127.0.0.1:8091/supplier/findSupplierList?pageSize=5&currPage=1
http://127.0.0.1:8091/supplier/findSupplierList?pageSize=5&currPage=1&id=76cca569-427a-412b-9c41-87e8393ad783 传id
上海市区县列表 :
http://127.0.0.1:8091/area/findArea
学校信息:根据学校id查学校信息(需要带出当天全部年级午餐菜单) :
127.0.0.1:8091/school/findSchoolDetialList/01284a57-6972-4e96-aa58-2166e3cf8f55.do @RequestMapping("/findSchoolDetialList/{id}")
食品列表:根据供应商id查食品列表
原料列表:根据供应商id查原料列表
http://127.0.0.1:8091/supplier/findSupplierWares?pageSize=5&currPage=1
供应商资质:根据供应商id查供应商资质信息
http://127.0.0.1:8091/supplier//findSupplierDetail/01284a57-6972-4e96-aa58-2166e3cf8f55.do
学校信息:根据学校id查学校信息(需要带出当天全部年级午餐菜单)
菜单:根据日期、年级和类别(早中晚餐)查菜单
http://127.0.0.1:8091/school/findSchoolDetialList/000d804f-ffdc-432a-b9b7-85307a611423.do
http://127.0.0.1:8091/school/findSchoolDetialList/000d804f-ffdc-432a-b9b7-85307a611423.do?supplyDate=20160518&grade=2&supplyPhase=2&pageSize=5&currPage=1
查询学校各年级接口:
http://127.0.0.1:8091/school/classList.do
DATE_FORMAT(b.supply_date, 'yyyy-MM-dd HH:mm:ss')
SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark FROM t_edu_school a LEFT JOIN t_pro_packages b ON a.id = b.customer_id LEFT JOIN t_pro_dishes c ON b.id = c.`package_id` LEFT JOIN t_pro_wares d ON c.wares_id = d.id WHERE
a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND b.supply_date = '20160518' AND b.grade = 2 AND b.supply_phase = 2 ORDER BY a.create_time DESC LIMIT 0, 5 ;
SELECT DATE_FORMAT('2016-05-17 12:14:32', '%Y%m%d') FROM t_pro_packages;
批次 台账
查询资讯信息
http://127.0.0.1:8091/information/findInformationList.do&type=1
http://127.0.0.1:8091/information/findInformationDetial/1111111111.do
SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='bf734a59-1e59-11e6-be68-005056a5ed30' AND a.`stat` = 1 AND b.`stat` = 1;
-- SELECT UUID();
EduTaskExMapper 返回的字段多了(可以适当减少)
测试 task模块
http://127.0.0.1:8091/task/findReceiveList/62c173ea-1e59-11e6-be68-005056a5ed30.do
http://127.0.0.1:8091/committee/findCommitteeList.do
SELECT a.task_id AS taskId,a.readstat, b.id AS userId,b.name,b.user_image AS userImage FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.receive_id = b.id WHERE a.task_id='62c173ea-1e59-11e6-be68-005056a5ed30' AND a.stat = 1 AND b.stat = 1;
http://127.0.0.1:8091/task/findSendListById/jamaaaaaaaaa.do?pageSize=5&currPage=1
http://127.0.0.1:8091/task/upadteTask/62c173ea-1e59-11e6-be68-005056a5ed30/bf734a59-1e59-11e6-be68-005056a5ed30.do
http://127.0.0.1:8091/task/findReceiveList/62c173ea-1e59-11e6-be68-005056a5ed30.do?pageSize=5&currPage=1
APP测试环境: http://192.168.1.246:8080/task/findSendListById/jamaaaaaaaaa.do?pageSize=5&currPage=1
com.ssic.education.common.mapper.ProDishesExMapper
http://127.0.0.1:8091/task/sendTask.do?receiveId=111,222,
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed30/0.do?pageSize=5&currPage=1
通知: 根据用户当前id判断当前是那个用户接口(市教委;区教委;学校)
http://127.0.0.1:8091/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423
http://192.168.1.246/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423
http://192.168.1.246/committee//findCommitteeList.do
http://127.0.0.1:8092/pro/packages/detail.htm?id=b57704bf-34f0-4a4b-add6-947609e52b2b
http://127.0.0.1:8091/school/searchPackages.do?customerId=b57704bf-34f0-4a4b-add6-947609e52b2b
-- SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark FROM t_edu_school a
-- LEFT JOIN t_pro_packages b ON a.id = b.customer_id
-- LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
-- LEFT JOIN t_pro_wares d ON c.wares_id = d.id
-- WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 ORDER BY a.create_time desc
-- SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
-- FROM t_edu_school a
-- LEFT JOIN t_pro_packages b ON a.id = b.customer_id
-- LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
-- LEFT JOIN t_pro_wares d ON c.wares_id = d.id
-- WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND DATE_FORMAT(now() , '%Y%m%d') = 20160526 ORDER BY a.create_time desc LIMIT 0, 10;
-- select DATE_FORMAT(NOW() , '%Y%m%d') from dual;
SELECT a.id,a.school_name AS schoolName,a.school_thum AS schoolThum, a.mobile_no AS mobileNo, b.id AS packageId, b.package_name AS packageName, b.grade, b.supply_date AS supplyDate, b.supply_phase AS supplyPhase, d.wares_name AS waresName, d.wares_type AS waresType, d.spec, d.image, d.remark
FROM t_edu_school a
LEFT JOIN t_pro_packages b ON a.id = b.customer_id
LEFT JOIN t_pro_dishes c ON b.id = c.`package_id`
LEFT JOIN t_pro_wares d ON c.wares_id = d.id
WHERE a.id= '000d804f-ffdc-432a-b9b7-85307a611423' AND a.stat= 1 AND b.stat= 1 AND c.stat= 1 AND d.stat= 1 AND DATE_FORMAT(b.supply_date, '%Y%m%d') = 20160525 ORDER BY a.create_time DESC LIMIT 0, 10;
http://127.0.0.1:8091/school/searchPackages.do?customerId=b57704bf-34f0-4a4b-add6-947609e52b2b&pageSize=5&currPage=1
http://127.0.0.1:8091/school/searchPackages.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1
/school/school.do?schoolId=000d804f-ffdc-432a-b9b7-85307a611423&customerId=b57704bf-34f0-4a4b-add6-947609e52b2b
修改接口:通知已读未读; 接收者名字;
发送通知选人要查出当前用户类型(市教委,区教委还是学校) 一个教委账号可以2个人登录
套餐类表接口修改
create_id
create_name
192.168.1.246/task/sendTask.do?receiveId=111,222,&createId=bf734a59-1e59-11e6-be68-005056a5ed31&title=aa&pic=bb&summary=cc&content=dd&createName=ee
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/findSendListById?bf734a59-1e59-11e6-be68-005056a5ed31.do
Question:
任务分页可能有问题:默认按10分页?
通知详情已读未读
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do&readstat=1
http://192.168.1.246/committee/findCommitteeList.do?pageSize=20&currPage=1
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do?readstat=2
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38.do
http://127.0.0.1:8091/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/findTaskListById/bf734a59-1e59-11e6-be68-005056a5ed38/0.do
http://192.168.1.246/task/sendTask.do?receiveId=111,222,&createId=bf734a59-1e59-11e6-be68-005056a5ed31&title=aa&pic=bb&summary=cc&content=dd&createName=ee
http://192.168.1.246/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1
http://192.168.1.246/committee//findCommitteeList.do
@Override
public EduUsersDto selectUserType(String id) {
EduUsersDto dto = eduUsersDao.selectUserType(id);
if(dto.getSourceType() == 1){
dto.setUserType(0);
}
return dto;
}
http://127.0.0.1:8091/task/findTaskByPara.do?id=06028160-f701-42d4-9923-d2a7c37ad61d&readstat=1
http://192.168.1.246/task/upadteTask/38202604-c5eb-424a-bc17-87ee4a2de55b1.do
SELECT b.`name`,a.`task_id`,a.`readstat`, FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.`receive_id` = b.id WHERE a.`task_id`='38202604-c5eb-424a-bc17-87ee4a2de55b';
SELECT * FROM t_edu_task_receive;
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1
BUG: 1.任务content不显示 可能生成POJO content问题
2.枚举返回Map不好接收的问题
3.任务接收区分用户
4.选择学校level要改下 区教委选择学校
http://127.0.0.1:8091/task/chooseReceive.do?id='0'
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
http://127.0.0.1:8091/school/chooseSchool.do?isPage=1
http://127.0.0.1:8091/committee/findCommitteeListNoPage.do?type=2
http://192.168.1.36/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
127.0.0.1:8091/task/chooseReceive.do?id=1&level=1&pageSize=2&currPage=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=25d5ec84-d7a9-41f5-8e01-5038125d73c1&taskType=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=c6b93e05-7786-4420-ad56-beba03ade17c&taskType=1 (老严数据)
http://127.0.0.1:8091/school/chooseSchool.do?level={2}&committeeId=1ed24882-5fd2-4e22-aacc-51be0fd6bbe2&pageSize=10&currPage=1&type=0&isPage=1
-- SELECT distinct b.`name`,a.`task_id` as taskId, a.`readstat` FROM t_edu_task_receive a LEFT JOIN t_edu_users b ON a.receive_id = b.id
-- WHERE a.`task_id`= '25d5ec84-d7a9-41f5-8e01-5038125d73c1' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time DESC
SELECT id, title, pic, summary, create_id, create_name, create_time, last_update_time, stat FROM t_edu_task WHERE ( id = '25d5ec84-d7a9-41f5-8e01-5038125d73c1' AND stat = 1 ) ;
http://127.0.0.1:8091/task/findTaskByPara.do?id=c6b93e05-7786-4420-ad56-beba03ade17c&taskType=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2,&createId=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2,&createId=1
http://127.0.0.1:8091/task/findTaskByPara.do?id=21147150-fa11-4c90-9784-5813cc58524d&taskType=1
http://127.0.0.1:8091/task/sendTask.do?receiveId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90+崇明县教委,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2+吴淞区教委,&createId=1
127.0.0.1:8091/task/sendTask.do?receiveIdsNames=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90;崇明县教委,1ed24882-5fd2-4e22-aacc-51be0fd6bbe2;吴淞区教委,&sendIdsNames=1;市教委&title=测试&summary=测试摘要&content=测试内容&pic=jam.jpg
http://127.0.0.1:8091/task/findTaskByPara.do?id=accf550f-8081-4e44-a2d4-6f8f4aaf6c69&taskType=1
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=0&level=1&pageSize=2&currPage=1
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=1&level=1&committeeId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90
SELECT id, task_id, task_title, readstat, receive_id, receive_name, send_name, school_id, create_time, last_update_time, stat FROM t_edu_task_receive
WHERE ( id = 'accf550f-8081-4e44-a2d4-6f8f4aaf6c69' AND stat = 1 ) ;
-- select id, title, pic, summary, create_id, create_name, create_time, last_update_time, stat from t_edu_task WHERE ( id = 'c6b93e05-7786-4420-ad56-beba03ade17c' and stat = 1 ) ;
SELECT id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, LEVEL, AREA, city, province, supplier_id, reviewed, create_time, last_update_time, stat FROM t_edu_school
WHERE ( LEVEL LIKE ? AND committee_id = ? AND stat = ? ) ORDER BY create_time DESC LIMIT 0,10;
http://127.0.0.1:8091/task/upadteTask.do?taskId=4bd0c0c1-0a17-400e-b4fe-80d7c1119c0c&receiveId=afcd3e81-8a1e-4bc8-8408-ecb511fa7f55
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
显示图片拼路径:
String realPath = PropertiesUtils.getProperty("upload.look.url");
for (ProLicense proLicense : ProLicenseList) {
proLicense.setLicPic(realPath + proLicense.getLicPic());
}
公告存多张图片的情况:数据库加大字段(200-> 500),用分号隔开 InformationServiceImpl
List<EduInformationDto> informationDtoList = BeanUtils.createBeanListByTarget(list, EduInformationDto.class);
String realPath = PropertiesUtils.getProperty("upload.look.url"); //拼接图片显示路径
for (EduInformationDto dto : informationDtoList) {
if(StringUtils.isNotEmpty(dto.getPic())){
String pics[] = dto.getPic().split(";");
if(pics.length >0){
for(String pic: pics){
pic = realPath + pic;
}
dto.setPics(pics); //pics用于存放多张图片的路径
}
}
}
http://127.0.0.1:8091/school/chooseSchool.do?level=1&committeeId=1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90&type=1&isPage=1&pageSize=10&currPage=1
市教委列表里面去掉上海市教委
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&scholName=鹏鹏
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=0&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0
http://127.0.0.1:8091/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=0&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&scholName=鹏鹏
http://192.168.1.36/school/chooseSchool.do?pageSize=10&currPage=1&type=1&sourceType=2&committeeId=a7ee60b9-82a8-4507-9889-fabf738462a6&level=0&schoolName=上海
String realPath = PropertiesUtils.getProperty("upload.look.url");
//String realPath = "127.0.0.1:8091"; //拼接图片显示路径
for (EduInformationDto dto : informationDtoList) {
if(StringUtils.isNotEmpty(dto.getPic())){
String pics[] = dto.getPic().split(";");
if(pics.length >0){
for(int i =0 ;i <pics.length ;i++){
pics[i] = realPath + pics[i];
}
dto.setPics(pics); //pics用于存放多张图片的路径
}
}
}
Information得重写. (权限问题)
http://192.168.1.36 开发环境 数据库:192.168.1.81 new_edu
http://192.168.1.246 测试环境 数据库:192.168.1.81 test_edu
datasource.url=jdbc:mysql://192.168.1.81:3306/new_edu?characterEncoding=utf-8&useUnicode=true
datasource.username=edu_user
datasource.password=123456
dev_edu数据库作为研发数据库,new_edu没删除,但已废弃。
datasource.username=edu_admin为管理员用户
if(StringUtils.isNotBlank(dto.getSupplyDateStr())){
System.out.println("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
System.out.println(DateUtils.parse(dto.getSupplyDateStr(), DateUtils.YMD_DASH));
criteria.andSupplyDateEqualTo(DateUtils.parse(dto.getSupplyDateStr(), DateUtils.YMD_DASH)); //套餐日期
}else{
criteria.andSupplyDateEqualTo(DateUtils.parse(DateUtils.format(new Date(), DateUtils.YMD_DASH), DateUtils.YMD_DASH)); //不传则默认查询当天
}
http://127.0.0.1:8091/information/findInformationList.do?type=2&title=测试&pageSize=5&currPage=1&sourceId=1
http://127.0.0.1:8091/information/findInformationList.do?pageSize=5&currPage=1&sourceId=1
http://127.0.0.1:8091/information/findInformationList.do?pageSize=5&currPage=1&sourceType=0&sourceId=000d804f-ffdc-432a-b9b7-85307a611423&title=54
http://localhost:8091/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1&type=1&supplyDateStr=2016-06-03
光明食品有限公司
sst-admin AdminLogServiceImpl
provider 测试环境: http://192.168.1.242/index.jsp
http://localhost:8091/school/school.do?customerId=000d804f-ffdc-432a-b9b7-85307a611423&pageSize=5&currPage=1&type=1
packageId:9243f13e-8764-4c7b-ba3c-90b1ed1029e8
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat
-- from t_edu_school WHERE ( level like '%{2}%' and committee_id = '1ed24882-5fd2-4e22-aacc-51be0fd6bbe2' and stat = 1) order by create_time DESC limit 0,10 ;
-- SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
-- FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time ;
-- SELECT a.receive_id AS receiveId, a.readstat, b.id, b.content,b.create_id , b.create_name AS createName,b.create_time AS createTime,b.last_update_time AS lastUpdateTime, b.pic, b.stat, b.summary, b.title
-- FROM t_edu_task_receive a LEFT JOIN t_edu_task b ON a.task_id = b.id WHERE a.receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND a.stat = 1 AND b.stat = 1 ORDER BY a.create_time ;
-- SELECT * FROM t_edu_task_receive WHERE receive_id ='1a6a5f11-b6c3-40c8-ac1e-f0b70ac2fd90' AND stat = 1 ;
-- select id, package_name, supplier_id, type, customer_type, customer_id, grade, supply_date, supply_phase, create_time, last_update_time, stat from t_pro_packages
-- WHERE ( customer_id = '000d804f-ffdc-432a-b9b7-85307a611423' and type = 1 and supply_date = 2016-06-01 and stat = 1 ) order by stat desc,create_time desc limit 0,5
-- select id, title, pic, summary, content, type, create_admin_id, create_admin_name, create_source_id, create_time, last_update_time, stat from t_edu_information WHERE ( stat = 1 ) order by create_time DESC limit 0,20 ;
-- select count(*) from t_edu_information WHERE ( stat = 1 ) ;
-- select id, package_name, supplier_id, type, customer_type, customer_id, grade, supply_date, supply_phase, create_time, last_update_time, stat
-- from t_pro_packages WHERE ( customer_id = 'da2953b6-6bc0-4f67-aec1-549440efad77' and supply_date = 20160601 and stat = 1 ) order by stat desc,create_time desc limit 0,10 ;
-- select count(*) from t_pro_packages WHERE ( customer_id = 'da2953b6-6bc0-4f67-aec1-549440efad77' and stat = 1) ;
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat from t_edu_school where id = 'da2953b6-6bc0-4f67-aec1-549440efad77';
-- select id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, area, city, province, supplier_id, reviewed, create_time, last_update_time, stat
-- from t_edu_school WHERE ( level like %(null)% and committee_id = null and stat = ? ) order by create_time DESC limit 0,10 ;
SELECT id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, LEVEL, AREA, city, province, supplier_id, reviewed, create_time, last_update_time, stat FROM t_edu_school WHERE ( stat = 1 ) ORDER BY create_time DESC LIMIT 0,10 ;
http://localhost:8091/school/school.do?customerId=da2953b6-6bc0-4f67-aec1-549440efad77&supplyDateStr=2016-06-01&type=0
问题:评分的问题.web有值,app为空.
http://127.0.0.1:8091/information/findInformationDetial/9f4e5f79ef234960a1727f5c6fd73284.do
127.0.0.1/index.htm http://127.0.0.1:8080
http://192.168.1.246/school/chooseSchool.do?committeeId=2dab54b2-26fa-11e6-b1e8-005056a5ed30&currPage=1&pageSize=10&sourceType=0&type=0&scholName=上海
搜索maven log4j查jar包
测试环境:http://192.168.1.240/info/release.htm 对应 test数据库
http://192.168.1.246/upload/20160606/e89e91cade2444eca4eeac535e155aeb.jpg
http://192.168.1.240/upload/20160606/ebf492cc9ef5477a8c80ab4cff8c8898.jpg
http://192.168.1.246/school/school.do?customerId=f751e20d-8579-4afe-b3da-89ba41642f59&supplyDateStr=2016-06-03&type=0
http://127.0.0.1:8092/info/release.htm
http://www.jujusports.cn/upload/20160606/7ddcd7b6bec74bee96a71579f9ab9991.gif
mark加阅读时间.
umeditor.config.js
要把generator抽象出来
<p><img src="http://192.168.1.240/info/upload/20160607/28481465296453849.jpg" _src="http://192.168.1.240/info/upload/20160607/28481465296453849.jpg"/>UUUUUUUUUU</p> 图片是249
content没值,pojo要重新生成 --解决
http://127.0.0.1:8091/task/chooseReceive.do?sourceType=1&level=-1&committeeId=-1
127.0.0.1:8091/task/sendTask.do?receiveIdsNames=e6ee5101-2c5b-11e6-b1e8-005056a5ed30;崇明县教委,e6ee4acf-2c5b-11e6-b1e8-005056a5ed30;黄浦区教委,&sendIdsNames=-1;上海市教委&title=测试666&summary=测试摘要666&content=测试内容666&pic=jam.jpg
@AccessRequired 登录注销不加,其他controll里的方法都加这个注解
执行顺序:(优先级从高到低。)静态代码块>mian方法>构造代码块>构造方法。
http://localhost:8091/school/school.do?customerId=57ca2418-b3b8-4991-af28-5d89a8c6f585&supplyDateStr=2016-06-01&type=0
1374782599-481994108-157545031-3186668011-1075902644
74d685aa-e610-4682-a2e1-0b71e543bbea
SELECT * FROM t_edu_task_receive WHERE receive_id = 'e6ee4c4f-2c5b-11e6-b1e8-005056a5ed30' AND readstat = 0 AND stat = 1;
127.0.0.1:8091/task/findReadAccount/e6ee4c4f-2c5b-11e6-b1e8-005056a5ed30.do
接口加注解:@AccessRequired
樱花日语:
肇嘉浜路1033号 徐家汇国际大厦16楼
上海黄浦区福州路666号金陵海欣大厦17楼
中庸,无欲无求
szys887 3366063869 107840247 1524691238 750260846
昂刺鱼 黄吖丁头 青旅
mongod.exe --bind_ip yourIPadress --logpath "D:\data\dbConf\mongodb.log" --logappend --dbpath "D:\data\db" --port 0903 --serviceName "jam mongod" --serviceDisplayName "ken mongod" --install
http://192.168.1.246/information/findInformationList.do?type=1&sourceType=2&sourceId=e6ee4f43-2c5b-11e6-b1e8-005056a5ed30&pageSize=20&currPage=1&edutk=1731c594e43bd0cab82669ea94ded2d0
Post 请求 Body里面 ; get请求 url传值(其中一种)
http://127.0.0.1:8091/school/chooseSchool.do?type=1&sourceType=2&committeeId=e6ee4f43-2c5b-11e6-b1e8-005056a5ed30
工行卡管理63215141 对应区卡点: 瑞京二路11号 (021)64733992,(021)64733449 9点到5点上班
营业时间:对公:周一周二周三周四周五 09:00-12:00 13:30-16:30 个人:周一周二周三周四周五周六周日 09:00-12:00 12:00-17:00
http://longtugame.com/download/gamedown
http://www.pgzs.com/
tianfang/tianfang-common/src/main/java/com/tianfang/common/alipay/config/AlipayConfig.java
有纸,太薄,一用,就破;纸破,手污,虽洗,难净,每食,顿思!遂批,太差,谁料,乃是,己家,无奈,秒删!
jquery post时content-type的几种取值
SELECT a.id id,a.create_time createTime,a.descript descript,a.leaf leaf,a.left_menu leftMenu,a.menu_id menuId,a.menu_title menuTitle, a.parent_id parentId,a.last_update_time updateTime,a.stat stat,a.menu_icon menuIcon,a.menu_url menuUrl,a.orderby orderby FROM sport_menu a
LEFT JOIN sport_authorization b ON a.id = b.menu_id WHERE a.stat = 1 AND b.stat = 1 AND b.admin_id = '67e798f3-effe-407e-a625-d09b6a306041' ORDER BY a.orderby ASC ;
查询数据库同步SQL:SHOW STATUS LIKE "%wsrep%";
jujusport 3个数据库:224 225 226
<!--freemarker指定模板文件目录-->spring-template.xml
<property name="templateLoaderPath" value="/WEB-INF/view"/>
<#if formationMap ??>
<#list map?keys as key> <!-- <option value="${(itemKey)!}">${playerPosition[itemKey]}</option> -->
<h4 class="school"><span>${(key)!}</span><br>${map.get(key).getCourseTypeCname()}</h4>
<!-- <#list map.get(key) as page>
<ul>
<li><img src="${(page.courseImg)!}" border="0"><p>${(page.courseCname)!}<br>${(page.courseEname)!}<a href="###">详情</a></p></li>
</ul>
</#list> -->
</#list>
</#if>
[OnlineTeachCourseDto(id=0c47a6f0-2b43-48cf-bf2d-9f83b7875bc1, courseCname=小学生训练营, courseEname=little student, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=\upload\20160120\ec70c0ca3ccb407db18d4a808ba5e1b9.jpg, lastUpdateTime=Wed Jan 20 15:26:32 CST 2016, createTime=Wed Jan 20 10:07:52 CST 2016, stat=1)=[OnlineTeachCourseDto(id=0c47a6f0-2b43-48cf-bf2d-9f83b7875bc1, courseCname=小学生训练营, courseEname=little student, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=\upload\20160120\ec70c0ca3ccb407db18d4a808ba5e1b9.jpg, lastUpdateTime=Wed Jan 20 15:26:32 CST 2016, createTime=Wed Jan 20 10:07:52 CST 2016, stat=1)], OnlineTeachCourseDto(id=1b9c3c3f-d527-41ae-93fd-60f8ecbb236a, courseCname=中学生训练营, courseEname=middle student, courseType=2, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=中学培训课程 , courseImg=\upload\20160120\5d603d60aa9744dfab66d92dbe14d8b1.jpg, lastUpdateTime=Tue Jul 12 08:59:34 CST 2016, createTime=Wed Jan 20 10:07:34 CST 2016, stat=1)=[OnlineTeachCourseDto(id=1b9c3c3f-d527-41ae-93fd-60f8ecbb236a, courseCname=中学生训练营, courseEname=middle student, courseType=2, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=中学培训课程 , courseImg=\upload\20160120\5d603d60aa9744dfab66d92dbe14d8b1.jpg, lastUpdateTime=Tue Jul 12 08:59:34 CST 2016, createTime=Wed Jan 20 10:07:34 CST 2016, stat=1)], OnlineTeachCourseDto(id=2e6cb574-f8da-471d-8702-2349aa71c55b, courseCname=22, courseEname=, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=, lastUpdateTime=null, createTime=Mon Jul 11 17:58:41 CST 2016, stat=1)=[OnlineTeachCourseDto(id=2e6cb574-f8da-471d-8702-2349aa71c55b, courseCname=22, courseEname=, courseType=1, courseTypeCname=小学生, courseTypeEname=small, courseTypeName=小学培训课程 , courseImg=, lastUpdateTime=null, createTime=Mon Jul 11 17:58:41 CST 2016, stat=1)], OnlineTeachCourseDto(id=356b1081-0674-465b-a9d7-941952d18093, courseCname=大学训练营, courseEname=big school, courseType=2, courseTypeCname=中学生, courseTypeEname=middle, courseTypeName=中学培训课程 , courseImg=, lastUpdateTime=Mon Jul 11 17:51:44 CST 2016, createTime=Mon Jul 11 17:34:27 CST 2016, stat=1)=[OnlineTeachCourseDto(id=356b1081-0674-465b-a9d7-941952d18093, courseCname=大学训练营, courseEname=big school, courseType=2, courseTypeCname=中学生, courseTypeEname=middle, courseTypeName=中学培训课程 , courseImg=, lastUpdateTime=Mon Jul 11 17:51:44 CST 2016, createTime=Mon Jul 11 17:34:27 CST 2016, stat=1)], OnlineTeachCourseDto(id=b4dafd91-271f-426a-b1b1-609aaeca9de4, courseCname=幼儿园预备营, courseEname=hahahaha, courseType=3, courseTypeCname=高中生, courseTypeEname=high, courseTypeName=高中培训课程, courseImg=\upload\20160711\acbe5a7845014263bc4ee9384bf9b6e8.jpg, lastUpdateTime=Mon Jul 11 17:51:36 CST 2016, createTime=Mon Jul 11 17:35:33 CST 2016, stat=1)=[OnlineTeachCourseDto(id=b4dafd91-271f-426a-b1b1-609aaeca9de4, courseCname=幼儿园预备营, courseEname=hahahaha, courseType=3, courseTypeCname=高中生, courseTypeEname=high, courseTypeName=高中培训课程, courseImg=\upload\20160711\acbe5a7845014263bc4ee9384bf9b6e8.jpg, lastUpdateTime=Mon Jul 11 17:51:36 CST 2016, createTime=Mon Jul 11 17:35:33 CST 2016, stat=1)]]
课程内容名不能重复
建议单表查询:List<OnlineTeachCourseDto> list = iOnTeachCourseService.findCoursesAndType(new OnlineTeachCourseDto());
-- select md5(123456) ;
UPDATE sport_user SET PASSWORD = 'e10adc3949ba59abbe56e057f20f883e';
400错误一般是参数异常=> dto和传入参数类型不匹配;
http://127.0.0.1/index.htm
http://127.0.0.1:8081/admin/main.do
SELECT a.id, a.course_cname AS courseCname, a.course_ename AS courseEname, a.course_type_id AS courseTypeId, a.course_img AS courseImg, a.last_update_time AS lastUpdateTime, a.create_time AS createTime, a.stat , b.`course_type_cname` AS courseTypeCname,b.`course_type_ename` AS courseTypeEname ,a.orderby AS courseOrder, b.orderby AS typeOrder FROM sport_online_teach_course a LEFT JOIN sport_online_teach_coursetype b ON a.course_type_id = b.id
WHERE a.stat = 1 AND a.is_release = 1 ORDER BY b.orderby ASC, a.orderby ASC, a.create_time DESC
员工管理表(后台用户表)t_odr_employee
Question:年龄,身高,体重应该加个排序(目前按创建时间排列)
先做支付后台 太湖1650032324
测试环境地址:http://192.168.1.88:8080/admin/
投诉建议表的生成. (投诉建议列表按时间查询)
从网上看大神们按win7,然后自己用格过的u盘(3个都不行。。),把iso文件放在mac,用bootcamp安装的时候 三项都选了。但每次下载完windows支持文件后,就提示找不到安装器光盘。。请问大神们这是怎么回事?
<img style="width: 45px; height: 45px;" src="http://127.0.0.1/\upload\20160727\ba60f15520c9461e87a14e65eee0838d.jpg">
测试IP: 192.168.1.88:8080/admin/main.do admin/admin
http://127.0.0.1:8092/login.htm
SELECT DISTINCT supplier_id,supplier_name FROM t_pro_warning;
findKing.com
-- select * from t_pro_supplier where supplier_type = 1;
-- SELECT * FROM t_pro_license WHERE stat = 1;
-- select a.`cer_source`,b.supplier_name,a.* from t_pro_license a left join t_pro_supplier b on a.`relation_id` = b.id where a.`cer_source` in(0,1) AND b.supplier_type = 1 and a.`stat` = 1 AND b.`stat` = 1 AND b.`reviewed` = 1 ;
SELECT a.id, a.school_id AS schoolId, a.supplier_id AS supplierId, a.school_name AS schoolName,a.address,a.contact,a.mobile_no AS mobileNo,a.project_name AS projectName,a.manager_id managerId,a.manager_name AS managerName,a.manager_no AS managerNo,a.remark,a.manager_status AS managerStatus,a.create_time AS createTime,
a.updater,a.last_update_time,a.stat
FROM t_edu_school_supplier a INNER JOIN t_edu_school b ON a.school_id = b.id WHERE b.committee_id='e6ee4bd5-2c5b-11e6-b1e8-005056a5ed30' AND a.stat = 1 AND b.stat = 1;
t_edu_license
SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName,
a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber
FROM t_pro_wares a LEFT JOIN t_pro_dishes_ware b ON a.id = b.ware_id LEFT JOIN t_pro_dishes c ON b.dishes_id = c.id WHERE c.id={} AND a.stat1 = 1 AND b.stat = 1 AND c.stat = 1;
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode,
a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime,
a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId
FROM t_edu_school_supplier a
LEFT JOIN t_pro_supplier b
ON a.supplier_id = b.id
WHERE a.school_id =#{sourceId} AND b.supplier_type = 1 AND a.stat= 1 AND b.stat=1
http://127.0.0.1:8097/main.do
http://127.0.0.1:8094/admin/login.jsp
<#if warningMap ??>
<ul>
<#list warningMap?keys as key>
<li><a href="/info/warningDetail/${key}.htm">${warningMap.get(key)} <!-- <span> ${warningDto.createTime?string("yyyy-MM-dd")}</span> --></a></li>
</#list>
</ul>
<a class="more" href="/info/warningList.htm">更多信息</a>
<#else>
<ul style="text-align: center; line-height: 240px;">
<span>暂无数据</span>
</ul>
</#if>
<!-- <span class="date">${(${warningMap[key].createTime?string('yyyy-MM-dd'))!}</span> -->
加字段:t_pro_license 表加written_name
t_pro_warning 表加written_name ,lic_pic ,lic_type
[email protected]:zhuyangxing/Lunch_platform.git 给到的页面
index 首页√
certificate_warning_detail 预警详情√
register_a √注册页
register_b √
register_c √
register_d √
building 监控提示页√
user_center 关联单位页面 √
add_relation 无关联单位页面√
dish_detail √ 菜详情页(后台还没有)
supplier_detail √ 原料供应商详情页
entrust_company √ 委托经营单位详情(即团餐公司))
materia_detail √ 原料详情页
distribution_detail 批次信息(带地图)
safe_track ☆
track_a √ 追溯的四个页面
track_b √
track_c √
track_d √
forgot.html有改动
<a href="##">监控</a>
http://127.0.0.1:8092/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222&supplyDateStr=2016-08-10
http://127.0.0.1:8092/trace/traceWares?dishesId=122d0ee4-47e0-458b-9d1e-17376db56262
/trace/showDishes?schoolId=57ca2418-b3b8-4991-af28-5d89a822222&supplyDateStr=2016-08-10
用户表 :唐四小学 id=a673aebc-51b0-4da1-9a9f-5d98c0155e33 sourceId=a673aebc-51b0-4da1-9a9f-5d98c0155e33
-- select id, title, warn_time, lose_time, remain_time, license_id, license, lic_type, lic_pic, written_name, source_id, supplier_id, supplier_name, read_stat, create_admin_id, create_admin_name, create_time, last_update_time, stat from t_pro_warning WHERE ( supplier_id = 'ffa604cb-cadf-4f0c-91b5-61394b777777' and stat = 1 ) ;
-- SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a right JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id ='94ca8956-36a8-4a4b-b2e6-7bb7e3527de5' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
-- select id, enterprise_name, school_id, lic_no, lic_name, lic_pic, manage_palce, legal_person, creator, create_time, updater, last_update_time, stat from t_edu_license WHERE ( lic_no = '11' and lic_name = '餐饮服务许可证' and stat = 1) ;
-- select id, package_id, name, school_id, class_type_id, supplier_id, image, supply_date, creator, create_time, updater, last_update_time, stat from t_pro_dishes WHERE ( school_id = '57ca2418-b3b8-4991-af28-5d89a822222' and supply_date between 2016-08-10 00:00:00 and 2016-08-10 23:59:59 and stat = 1) ;
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a RIGHT JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id = '94ca8956-36a8-4a4b-b2e6-7bb7e3527de5' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
7d3b5a19-b4d7-4cd0-a648-f51e87515220
调用百度地图页面: ProLedgerController mv.setViewName("/ledger/distribution_detail");
$('#calendar').fullCalendar({events:[
{
title: '20',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-20'
},
{
title: '21',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-21'
}
]})
events: [
{
title: '20',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-20'
},
{
title: '21',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-21'
},
{
title: '22',
url: 'http://www.baidu.com',
start: '2016-08-22'
}
]
obj_:{
title: '10',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-10'
},
{title: '10',
url: '/trace/showDishes.htm?schoolId=57ca2418-b3b8-4991-af28-5d89a822222supplyDateStr = 2016-08-10',
start: '2016-08-10'}
$('#calendar').fullCalendar({
events: function(start, end, callback) {
$.ajax({
url: 'myxmlfeed.php',
dataType: 'xml',
data: {
// our hypothetical feed requires UNIX timestamps
start: Math.round(start.getTime() / 1000),
end: Math.round(end.getTime() / 1000)
},
success: function(doc) {
var events = [];
$(doc).find('event').each(function() {
events.push({
title: $(this).attr('title'),
start: $(this).attr('start') // will be parsed
});
});
callback(events);
}
});
}
});
$('#calendar').fullCalendar({
eventSources: [
{
events: function(start, end, callback) {
// ...
},
color: 'yellow', // an option!
textColor: 'black' // an option!
}
]
});
//前一天
$("#before").on("click", function() {
alert("access1");
debugger;
var supplyDate = "${(dishesDto.supplyDate)!}";
var before = supplyDate.getTime() - 24*60*60*1000;
var after = supplyDate.getTime() + 24*60*60*1000;
var beforeDate = before.getFullYear()+"-" + (before.getMonth()+1) + "-" + before.getDate();
var afterDate = after.getFullYear()+"-" + (after.getMonth()+1) + "-" + after.getDate();
console.log("beforeDate = " + beforeDate +"; afterDate = " + afterDate);
});
/*
alert("access1");
debugger;
//var supplyDate = ${(dishesDto.supplyDate)!};
var supplyDate = $("#supplyDate").val();
var before = supplyDate.getTime() - 24*60*60*1000;
var after = supplyDate.getTime() + 24*60*60*1000;
var beforeDate = before.getFullYear()+"-" + (before.getMonth()+1) + "-" + before.getDate();
var afterDate = after.getFullYear()+"-" + (after.getMonth()+1) + "-" + after.getDate();
console.log("beforeDate = " + beforeDate +"; afterDate = " + afterDate);
*/
学校和团餐公司一一对应 , 学校和原料供应商并非一一对应
根据t_pro_ledger_master里面的 配送日期和配送状态来确定
eduuserDto报错,因为URL 没加.htm
<ul>
<li><label for="">法人信息:</label><span>${supplierDto.corporation!}</span></li>
<li><label for="">联系电话:</label><span>${supplierDto.corporationWay!}</span></li>
<li><label for="">注册时间:</label><span>${supplierDto.regTime!}</span></li>
<li><label for="">注册地址:</label><span>${supplierDto.regAddress!}</span></li>
<li><label for="">企业地址:</label><span>${supplierDto.address!}</span></li>
<li><label for="">三证合一:</label><span>${supplierDto.businessLicense!}<a href="#">图片>></a></span></li>
<li><label for="">食品卫生许可证:</label><span>${supplierDto.foodProduceCode!}<a href="#">图片>></a></span></li>
<li><label for="">运输许可证:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">餐饮服务许可证:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">ISO认证证书:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
<li><label for="">其他资质证书:</label><span>${supplierDto.supplierName!}<a href="#">图片>></a></span></li>
</ul>
<#list waresList as dto>
<tr>
<td class="color" > <a href="/trace/waresDetails.htm?waresId=${dto.id!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.waresName!}</a> </td>
<td class="color"> <a href="/trace/supplierDetail.htm?id=${dto.supplierId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.supplierName!}</a> </td>
<td> ${dto.startAddress!} </td>
<td class="color"> <a href="/trace/ledgerDetail.htm?id=${dto.batchId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${(traceMenuDto.supplyDateMenu)!}" style=" color: #fd9f3e">${dto.batchNo!}</a> </td>
<td> ${(dto.actionDate?string("yyyy-MM-dd"))!}</td>
<td> <span class="track" id="track" data-info="${dto.supplierId!}"
onClick="window.location.href='/trace/traceSupplier.htm?id=${dto.supplierId!}&schoolNameMenu=${traceMenuDto.schoolNameMenu!}&supplyDateMenu=${traceMenuDto.supplyDateMenu!}&dishesNameMenu=${traceMenuDto.dishesNameMenu!}&dishesIdMenu=${traceMenuDto.dishesIdMenu!}'">追朔</span> </td>
</tr>
</#list>
-- SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName, a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber,a.wares_supplier AS waresSupplier FROM t_pro_wares a LEFT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 and b.dishes_id = '22A' ORDER BY a.create_time DESC ;
-- SELECT a.* FROM t_pro_wares a RIGHT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 AND b.dishes_id = '22A' ORDER BY a.create_time DESC ;
-- SELECT a.wares_id AS waresId,b.ware_batch_no AS batchNo, b.start_address AS startAddress ,b.action_date as actionDate ,a.supplier_id AS supplierId, a.supplier_name AS supplierName FROM t_pro_ledger a LEFT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 and b.haul_status = 2 and a.wares_id in ( '33aa','33bb' ) ORDER BY a.`create_time` DESC ;
-- SELECT a.id ,a.wares_name AS waresName, a.spec, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.supplier_id AS supplierId, a.way, a.wares_type AS waresType, a.custom_code AS customCode, a.image, a.manufacturer, a.bar_code AS barCode, a.en_name AS enName, a.place, a.dishes, a.remark, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.wares_number AS waresNumber,a.wares_supplier AS waresSupplier FROM t_pro_wares a RIGHT JOIN t_pro_dishes_ware b ON a.id = b.ware_id WHERE a.stat = 1 AND b.stat = 1 and b.dishes_id = 'king005' ORDER BY a.create_time DESC ;
-- SELECT a.wares_id AS waresId,b.ware_batch_no AS batchNo, b.start_address AS startAddress ,b.action_date as actionDate ,a.supplier_id AS supplierId, a.supplier_name AS supplierName FROM t_pro_ledger a LEFT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 and a.wares_id in ( 'king11' , 'king09' ) ORDER BY a.`create_time` DESC ;
-- SELECT a.id, a.master_id AS masterId, a.wares_id AS waresId, a.receiver_id AS receiverId, a.name, a.spce, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.wares_type AS waresType, a.supplier_id AS supplierId, a.supplier_code AS supplierCode, a.supplier_name AS supplierName, a.quantity, a.production_date AS productionDate, a.production_name AS productionName, a.batch_no AS batchNo, a.trace_code AS traceCode, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, b.action_date AS actionDate, b.start_address AS startAddress FROM t_pro_ledger a RIGHT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 and b.stat = 1 AND b.action_date = 2016-08-19 00:00:00.0 AND a.receiver_id = '5475f36a-317c-4f50-a2e6-f06568da7188' AND a.name in ? ORDER BY a.`create_time` DESC
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '0fddcfb2-df17-4fdf-9c28-9309699ab569' and supplier_type = 2 and stat = 1 ) order by create_time desc ;
-- select id, lic_name, written_name, lic_no, lic_type, lic_start_date, lic_end_date, lic_pic, creator, create_time, updater, last_update_time, stat, relation_id, cer_source from t_pro_license WHERE ( relation_id = '728759ec-2b8d-48e3-8560-f822eb759fa7' and lic_type = 1 and cer_source = 0 and stat = 1 );
SELECT a.id, a.supplier_name AS supplierName, a.address, a.provinces, a.city, a.area, a.supplier_type AS supplierType, a.business_license AS businessLicense, a.organization_code AS organizationCode, a.food_service_code AS foodServiceCode, a.food_service_code_date AS foodServiceCodeDate, a.food_business_code AS foodBusinessCode, a.food_business_code_date AS foodBusinessCodeDate, a.food_circulation_code AS foodCirculationCode, a.food_circulation_code_date AS foodCirculationCodeDate, a.food_produce_code AS foodProduceCode, a.food_produce_code_date foodProduceCodeDate, a.corporation, a.corporation_way, a.contacts, a.contact_way, a.reg_time AS regTime, a.reg_address AS regAddress, a.id_card AS idCard, a.id_type AS idType, a.longitude, a.latitude, a.reviewed, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, a.qa_person AS qaPerson, a.qa_way AS qaWay, a.reg_capital AS regCapital, a.annual_sales AS annualSales, b.school_id AS schoolId FROM t_pro_supplier a RIGHT JOIN t_edu_school_supplier b ON a.id = b.supplier_id WHERE b.school_id = 'd5c7822b-3b0b-4ec4-b304-e9ef702a30be' AND a.supplier_type = 1 AND a.stat= 1 AND b.stat=1;
ProductClass 原料枚举类
.nav > ul > li.bar3 > .wrap > ul{padding-left:220px;width:780px}
.nav > ul > li.bar4 > .wrap > ul{padding-left:410px;width:590px}
.nav > ul > li.bar5 > .wrap > ul{padding-left:730px;width:590px}
SELECT a.id, a.lic_name AS licName, a.lic_no AS licNo, a.lic_type AS
licType, a.lic_end_date AS licEndDate, a.lic_pic AS licPic, a.creator,
a.create_time AS createTime, a.updater, a.last_update_time AS
lastUpdateTime, a.stat, a.relation_id AS relationId, a.`cer_source` AS
cerSource,
b.supplier_name AS supplierName
FROM t_pro_license a
LEFT JOIN t_pro_supplier b
ON a.`relation_id` = b.id
WHERE a.`cer_source`
IN(0,1)
AND b.supplier_type = 1
AND b.`reviewed` = 1
AND a.`stat` = 1
AND b.`stat` = 1
insert into t_pro_warning ( id, title, warn_time, lose_time, remain_time, license_id, lic_no, license, lic_type, lic_pic, supplier_id, supplier_name, read_stat, create_admin_name, create_time, last_update_time, stat ) values ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
^^^^^^^^^^^^^^^^^^^^^^^^^^ProWarningDto(id=6fb3ee1c-7f9e-49f3-bf66-8a961bd77d5a, title=null, warnTime=null, loseTime=null, remainTime=13, licenseId=null, license=null, supplierId=null, supplierName=null, sourceId=null, readStat=null, startTime=null, endTime=null, supplierIdList=null, proLicense=null, createAdminId=null, createAdminName=null, createTime=null, lastUpdateTime=Thu Aug 25 13:43:10 CST 2016, stat=null, licPic=null, licType=null, writtenName=null, licNo=null)
LicEndDate=Thu Sep 08 00:00:00 CST 2016;today=Thu Aug 25 13:53:10 CST 2016
/trace/traceCompany.htm?id=6e07cec0-f314-4b11-9f64-4cef6a13b73d&schoolNameMenu=蔷薇小学&supplyDateMenu=2016-08-19&supplierNameMenu=上海多味宝食品有限公司
http://pro.sunshinelunch.com/login.jsp
http://edu.sunshinelunch.com/login.jsp
http://edu.sunshinelunch.com/index.htm
<p><span> 餐饮服务证号:</span> ${(proSupplierDto.foodServiceCode)!}
<#if proSupplierDto.foodServiceCodePic??>
<a class="img_nn" data-value="${(wwwdomain)!}${(proSupplierDto.foodServiceCodePic)!}" href="###" style="color: #fd9f3e;">查看图片>></a>
</#if>
</p>
http://127.0.0.1:8092/user/contactSupplier.htm
http://127.0.0.1:8094/login.jsp
select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '9c2ea73b-bf3b-4224-a039-ffd5ad15e171' and supplier_type = 1 and stat = 1 ) order by create_time desc ;
ALTER TABLE `t_pro_license` ADD `supplier_id` VARCHAR(36) DEFAULT NULL COMMENT '关联的供应商Id';
SELECT DISTINCT(supplier_name) FROM t_pro_warning
SELECT a.supplier_id, a.`supplier_name`,MIN(warn_time) FROM t_pro_warning a GROUP BY a.`supplier_name`;
SELECT COUNT(*) FROM (SELECT a.`supplier_name`,MIN(warn_time) FROM t_pro_warning a GROUP BY a.`supplier_name`) a;
SELECT a.`supplier_id` AS supplierId, a.`supplier_name` AS supplierName, MIN(warn_time) AS warnTime FROM t_pro_warning a WHERE a.stat = 1 GROUP BY a.`supplier_name` LIMIT 0, 10;
学校和团餐公司为一一对应,若没有关联团餐公司,则不显示预警
com.ssic.education.handle.mapper.ProWarningExMapper
com.ssic.education.handle.mapper.ProLicenseExMapper
ProWarningServiceImpl
spring-quartz.xml
LoginFilter
/**
* @Title: index
* @Description: 营养百科首页
* @author Ken Yin
* @date 2016年9月5日 上午11:25:08
* @return ModelAndView 返回类型
*/
@RequestMapping("/nutritionBaike/index")
public ModelAndView index() {
ModelAndView modelAndView = getModelAndView();
OdrCategoryDto categoryDto = new OdrCategoryDto();
categoryDto.setParentId(DataStatus.STRING_ONE); //父类别ID
categoryDto.setStat(DataStatus.ENABLED);
categoryDto.setStyleType(DataStatus.ENABLED); //样式类别: 1表示营养百科;2表示全球校餐;3表示机构观点;4表示社会来稿;5表示带banner列表;6表示不带banner列表
List<OdrCategoryDto> categoryList = iOdrCategoryService.findCategory(categoryDto);
modelAndView.addObject("categoryList", categoryList);
modelAndView.setViewName("/article/nutritionBaike/index");
return modelAndView;
return MessageResp.getMessage(true,stat);
// if(stat>0){
// return MessageResp.getMessage(true,"保存成功");
// }
// return MessageResp.getMessage(false,"保存失败");
}
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '9c2ea73b-bf3b-4224-a039-ffd5ad15e171' and supplier_type = 1 and stat = 1 ) order by create_time desc ;
SELECT a.id, a.order_no AS orderNo, a.order_name AS orderName, a.user_id AS userId, a.student_id AS studentId, a.school_id AS greadId, a.gread_id AS greadId, a.class_type_id AS classTypeId, a.class_id AS classId, a.student_name AS studentName, a.school_name AS schoolName, a.gread_name AS greadName, a.class_type AS classType, a.class_name AS className, a.student_no AS studentNo, a.parents_mobile AS parentsMobile, a.payment_info_id AS paymentInfoId, a.payment_mode AS paymentMode, a.order_time AS orderTime, a.price, a.days, a.payment_status AS paymentStatus, a.payment_time AS paymentTime, a.payment_type AS paymentType, a.payment_account AS paymentAccount, a.payment_no AS paymentNo, a.amount, a.coupon_id AS couponId, a.coupon_name AS couponName, a.coupon_amount AS couponAmount, a.payable_amount AS payableAmount, a.create_time AS createTime, a.create_user AS createUser, a.last_update_time AS lastUpdateTime, a.last_update_user AS lastUpdateUser, a.stat, c.secret FROM t_odr_payment_record a LEFT JOIN t_odr_student b ON (a.student_id = b.id ) LEFT JOIN t_odr_user c ON (b.parents_id = c.id )
WHERE a.payment_status = -1 AND a.stat = 1 ORDER BY a.create_time DESC
SELECT a.id, a.order_no AS orderNo, a.order_name AS orderName, a.user_id AS userId, a.student_id AS studentId, a.school_id AS greadId, a.gread_id AS greadId, a.class_type_id AS classTypeId, a.class_id AS classId, a.student_name AS studentName, a.school_name AS schoolName, a.gread_name AS greadName, a.class_type AS classType, a.class_name AS className, a.student_no AS studentNo, a.parents_mobile AS parentsMobile, a.payment_info_id AS paymentInfoId, a.payment_mode AS paymentMode, a.order_time AS orderTime, a.price, a.days, a.payment_status AS paymentStatus, a.payment_time AS paymentTime, a.payment_type AS paymentType, a.payment_account AS paymentAccount, a.payment_no AS paymentNo, a.amount, a.coupon_id AS couponId, a.coupon_name AS couponName, a.coupon_amount AS couponAmount, a.payable_amount AS payableAmount, a.create_time AS createTime, a.create_user AS createUser, a.last_update_time AS lastUpdateTime, a.last_update_user AS lastUpdateUser, a.stat, c.secret FROM t_odr_payment_record a INNER JOIN t_odr_student b ON (a.student_id = b.id ) INNER JOIN t_odr_user c ON (b.parents_id = c.id )
WHERE a.payment_status = ? AND a.payment_time >= ? AND a.payment_time >= ? AND a.payment_time <= ? AND a.stat = 1 ORDER BY a.create_time DESC LIMIT ?, ?
http://127.0.0.1:8096/article/nutritionBaike/index.htm
-- select id, title, parent_id, navi, icon, sort_num, style_type, create_time, create_user, last_update_time, last_update_user, stat from t_odr_category WHERE ( stat = 1 and parent_id = '1' ) order by sort_num desc ;
-- select a.id, a.title, a.category_id as categoryId, b.title as categoryTitle, a.picture, a.icon, a.summary, a.content, a.keywords, a.like_num as likeNum, a.is_publish as isPublish, a.create_time as createTime, a.create_user as createUser, a.last_update_time as lastUpdateTime, a.last_update_user as lastUpdateUser, a.stat, a.read_num readNum, a.sort_num sortNum from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '4' and a.is_publish = 1 and a.stat = 1 order by a.sort_num desc, a.create_time asc limit 0, 10;
-- select id, title, parent_id, navi, icon, sort_num, style_type, create_time, create_user, last_update_time, last_update_user, stat from t_odr_category WHERE ( stat = 1 and parent_id = '3' ) order by sort_num ASC ;
-- select id, category_id, picture, link, is_publish, sort_num, create_time, create_user, last_update_time, last_update_user, stat from t_odr_ad WHERE ( stat = 1 );
-- select a.id, a.title, a.category_id as categoryId, b.title as categoryTitle, a.picture, a.icon, a.summary, a.content, a.keywords, a.like_num as likeNum, a.is_publish as isPublish, a.create_time as createTime, a.create_user as createUser, a.last_update_time as lastUpdateTime, a.last_update_user as lastUpdateUser, a.stat, a.read_num readNum, a.sort_num sortNum from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '17de660d-15b9-4e79-9058-e5ac0902319e' and a.is_publish = 1 and a.stat = 1 order by a.sort_num desc, a.create_time asc limit 10, 20;
-- select count(*) from t_odr_article a inner join t_odr_category b on (a.category_id = b.id ) where a.category_id = '17de660d-15b9-4e79-9058-e5ac0902319e' and a.is_publish = 1 and a.stat = 1 ;
SELECT id, category_id, picture, link, is_publish, sort_num, create_time, create_user, last_update_time, last_update_user, stat FROM t_odr_ad WHERE ( stat = 1 AND category_id = '1' ) ;
<b style='width:100%;text-align:center;display:block;padding-top:2px;font-weight:normal'>没有更多数据</b>
http://127.0.0.1:8092/userV2/register.htm
127.0.0.1:8092/user/register.htm
layer.open({
title:'修改年龄',
type: 2,
area: ['600px', '500px'],
fix: true, //不固定
maxmin: false,
content: '${base}/age/edit.do?id='+id
});
SELECT id, NAME, area_code, TYPE, creator, create_time, updater, last_update_time, stat FROM t_edu_committee WHERE ( TYPE = 2 AND stat = 1 AND area_code IS NOT NULL ) ORDER BY NAME ASC ;
http://127.0.0.1:8092/blackList/findByPage.htm
<div style="display:block" class="pop_wrap fbmg_edit">
$('#wrapper > #scroller > ul').append("<li><img src="+result[i].picture+" border=\"0\"><span class=\"title\">"+result[i].title+"</span><span class=\"text\">"+result[i].summary+"</span><a class=\"href_link\" href=\"/article/show.htm?id="+ result[i].id +"></a></li>");
<a href="#" class="local_edu">
<img src="/static/v2/imgs/local_edu.png" />
<span>${(eduUsersDto.userAccount?substring(0,5))!}</span>
<i><img src="/static/v2/imgs/dropdown_icon.png" /></i>
</a>
<input class="bt next" id="next" type="button">下一步</button>
SELECT MAX(pj_no) FROM t_edu_users;
t_edu_school online_payment 默认为NULL去掉
http://127.0.0.1:8092/info/index/3.htm
http://127.0.0.1:8092/motive/noticeCenter.htm
http://127.0.0.1:8092/info/release.htm
file:///D:/git/education2.0/dist/fbmanage.html#
file:///D:/git/education2.0/src/fbmanage.html#
http://127.0.0.1:8092/blackList/findByPage.htm#
原来表中的wares_id 的含义为原料Id
目前原料Id修改成 t_base_material 的 Id
t_pro_wares 这张表为 原料和供应商的关系表
FileManageController:
//start 上传图片至qiniu 服务器
//byte[] inBytes = FileUtils.input2byte(in);
//UploadPicture.upload(inBytes, fileStaticPath);
//end
upload.url=D:/share/upload
upload.look.url= http://ocsys6mwy.bkt.clouddn.com/
http://127.0.0.1:8092/motive/release.htm
http://127.0.0.1:8092/motive/release.htm
common.css: .color_checkbox input[type="checkbox"]
SELECT * FROM t_edu_school_supplier a LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE a.school_id IN AND b.supplier_type = 2 AND a.stat = 1 AND b.stat=1;
http://127.0.0.1:8092/userV2/register_d.htm
http://127.0.0.1:8092/trace/index.htm
contentHeight: 492,
// weekMode: 'liquid',
defaultDate: '2016-09-27',
firstDay: 0,
editable: true,
events: [{
title: 'ee',
start: '2016-09-30'
}]
alert($(this).children('option:selected').val());
http://127.0.0.1:8092/indexV2.htm
http://127.0.0.1:8092/blackList/findByPage.htm
http://127.0.0.1:8092/check/index.htm?source=0
check_arrayfood_detail.html 批次详情页 -->distribution_detail.htm
check_calendar_normal.html 排查首页
check_company.html 2-团餐公司
check_entrust_comp_detail.html 委托经营单位详情
check_material_detail.html 原料详情
check_school.html 3-学校
check_supplier.html 1-供货者
check_supplier_detail.html 供货者详情
dish_detail √ 菜详情页(后台还没有)
supplier_detail √ 原料供应商详情页
entrust_company √ 委托经营单位详情(即团餐公司))
materia_detail √ 原料详情页
distribution_detail 批次信息(带地图)
t_base_material主表 t_pro_wares子表
layer.alert(data.message, {icon: 2}); //2秒后自动关闭
layer.msg(data.message);
<#if companyList??>
<#list companyList as company>
<td><a href="#">${company.supplierName!}</a></td>
<td><a href="#">${company.waresSupplier!}</a></td>
<td><a href="#">${company.waresName!}</a></td>
<td>${company.contactWay!}</td>
<td>${company.contacts!}</td>
<td><a class="btn text-left" href="#"><i class="btn-icon icon-read"></i>排查</a></td>
</#list>
</#if>
//$(".fc-sat").css('backgroundColor','#c4e1ff');//这个是周六的TD
//$(".fc-sun").css('backgroundColor','#c4e1ff');//这个是周日的TD#b2b2b2
$(".fc-sat").css('backgroundColor','#b2b2b2');//这个是周六的TD
$(".fc-sun").css('backgroundColor','#b2b2b2');
http://127.0.0.1:8092/schoolterm/findSchoolterm.htm
UPDATE t_edu_holiday SET create_id = 'ken', create_name = '浅浅',create_time='2016-10-10 17:27:59',stat=1 ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( stat = 1 ) order by create_time DESC ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' and stat = 1 ) order by create_time DESC ;
-- select a.id,a.action_date,a.ware_batch_no,a.haul_status,a.start_time,a.end_time,b.name,b.supplier_id,b.supplier_name from t_pro_ledger_master a left join t_pro_ledger b on a.id=b.master_id WHERE action_date IN() and a.stat =1 AND b.stat =1;
SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 `t_pro_wares``t_pro_wares``t_pro_wares` AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' ORDER BY a.create_time DESC ;
SELECT a.id,a.ware_name AS wareName,a.`supplier_id` AS supplierId,a.`wares_supplier_id` AS waresSupplierId,a.`wares_supplier` AS waresSupplier,b.contacts,b.`contact_way` AS contactWay,b.supplier_name AS supplierName FROM t_pro_wares a LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE b.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND a.`wares_supplier_id`=?;
-- select date_format(now(),'%Y-%m-%d') as ‘日期’ from dual
SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' AND b.id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-09'
ORDER BY a.create_time DESC
/check/waresDetails.htm?waresIdMenu=${checkMenuDto.waresIdMenu!}&supplierNameMenu=${supplierDto.supplierName!}&waresNameMenu=${checkMenuDto.waresNameMenu!}&supplyDateMenu=${(checkMenuDto.supplyDateMenu)!}
http://127.0.0.1:8092/check/waresDetails.htm?waresIdMenu=&supplierNameMenu=&waresNameMenu=%E5%9F%BA%E5%9B%B4%E8%99%BE&supplyDateMenu=2016-10-09
委托经营单位 即是团餐公司
<#include "/v2/common/nav.htm" />
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( stat = 1 ) order by create_time DESC ;
-- select id, material_id, wares_name, spec_id, spec, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat from t_pro_wares WHERE ( wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' and stat = 1 ) order by create_time DESC ;
-- select a.id,a.action_date,a.ware_batch_no,a.haul_status,a.start_time,a.end_time,b.name,b.supplier_id,b.supplier_name from t_pro_ledger_master a left join t_pro_ledger b on a.id=b.master_id WHERE action_date IN() and a.stat =1 AND b.stat =1;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 `t_pro_wares``t_pro_wares``t_pro_wares` AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' ORDER BY a.create_time DESC ;
-- select a.id,a.ware_name as wareName,a.`supplier_id` as supplierId,a.`wares_supplier_id` as waresSupplierId,a.`wares_supplier` as waresSupplier,b.contacts,b.`contact_way` as contactWay,b.supplier_name as supplierName from t_pro_wares a left join t_pro_supplier b on a.supplier_id = b.id where b.`supplier_type`= 1 and a.`stat` =1 and b.`stat` =1 and a.`wares_supplier_id`=?;
SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date BETWEEN '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND b.supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' ORDER BY a.create_time DESC ;
SELECT a.id,a.wares_name AS waresName,a.`supplier_id` AS supplierId,a.`wares_supplier_id` AS waresSupplierId,a.`wares_supplier` AS waresSupplier,b.contacts,b.`contact_way` AS contactWay,b.supplier_name AS supplierName
FROM t_pro_wares a
LEFT JOIN t_pro_supplier b ON a.supplier_id = b.id WHERE b.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1
SELECT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND d.action_date='2016-10-09'
-- select date_format(now(),'%Y-%m-%d') as ‘日期’ from dual
SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate
FROM t_pro_supplier a
LEFT JOIN t_pro_wares b ON b.supplier_id = a.id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supplier_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = '3e9b58e6-f677-4116-ba61-f8fbd60318d1' AND b.id = 'c16c4e35-0db8-437b-b9cf-83e26eff82e5' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-09'
ORDER BY a.create_time DESC
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = AND c.`wares_id`= AND b.action_date='';
$("div[myattr='test']")
$("td[data-date='2016-11-03']").css('background-color', '#f5f5f5');
<td class="fc-day-top fc-sun fc-other-month fc-past" data-date="2016-07-31"><span class="fc-day-number">31</span></td>
<td class="fc-day-top fc-fri fc-past" data-date="2016-08-26"><span class="fc-day-number">26</span></td>
<#if ${eduSchoolDto.levelStr!}?index_of("幼儿园") ! -1> freemarker判断是否包含某个字段
<#if eduSchoolDto.levels?index_of("幼儿园") != -1 >checked="checked"</#if>
首页追溯的权限问题(通过后台用户sourceType判断) 前提:用户要登录才能看到首页
Basecontroller wwwdomain
$("#dis_edu_food_chosen >a >span").text(data.data.materialName);
用户名里不允许有符号 最少6位 最多16位 用户名允许有字母、中文、数字: ^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$
var testUserName = /^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$/;
alert(testUserName.test("asd_许有字母中文数字0001"));
注册校验:
var testUserName = /^[\u4e00-\u9fa5a-zA-Z0-9]{6,16}$/;
if(!testUserName.test(username)){
layer.msg('用户名应为6-16位的字符,数字或汉字的组合!');
return false;
}
var testPassWord = /^[5a-zA-Z0-9]{6,12}$/;
//var testPassWord = /^[a-zA-Z0-9!"\#$%&'()*+,-./:;<=>?@\[\\\]^_`\{\|\}\~]{6,12}$/;
if(!testPassWord.test(passWord)){
layer.msg('密码应为6-12位,英文、数字或常用符号!');
return false;
}
var testPassWord = /^[a-zA-Z0-9!"\#$%&'()*+,-./:;<=>?@\[\\\]^_`\{\|\}\~]{6,12}$/;
if(!testPassWord.test('211>11')){
alert('密码应为6-12位,英文、数字或常用符号!');
}else{
alert('验证通过!');
}
/motive/sended.htm
setLevel:set方法覆盖后 要重新赋值
private String levels;
private String level;
public void setLevel(String level) {
if (StringUtils.isNotBlank(level)) {
String[] stringArr= level.split(",");
String str="";
if (stringArr.length > 0 && stringArr[0] != null && !stringArr[0].equals("")) {
for (int i=0; i<stringArr.length; i++) {
String levelStrs = SchoollevelEnum.getValueByIndex(Integer.valueOf(stringArr[i]));
if (StringUtils.isNotBlank(levelStrs)) {
str += levelStrs+" ";
this.levelList.add(Integer.valueOf(stringArr[i]));
}
}
this.levelStr = str;
this.levels = level;
}
}
}
$(".fc-day-top:not(.fc-other-month)").css({'background-color': 'pink'});
var theDate = "";
if(${theMon!} ??){
theDate = new Date();
}else{
theDate = "${theMon!}" + "01";
}
//var theMon = "${theMon!}";
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = AND c.`wares_id`= AND b.action_date='';
-- select id, school_id, committee_id, school_name, school_thum, mobile_no, contacts, address, longitude, latitude, level, supplier_id, reviewed, online_payment, pj_no, create_time, updater, last_update_time, stat from t_edu_school where id = '69edb64c-56d5-4518-83dd-63c03b5b6b3c' ;
UPDATE t_pro_black_list SET stat=0 WHERE supplier_id = "b84a453a-d084-4c29-9ccb-26203ef835ae" ;
if (($("body").height() - $(window).height()) < 0) {
$(".footer").css({
"position":"fixed",
"bottom":"0",
"z-index": "99"
})
}
<a class="img_nn" data-value="http://octlpgiv5.bkt.clouddn.com//upload/20160829/23a90458839d4ff28684e42f66ca3ed5.png" href="###" style="color: #fd9f3e;">查看图片>></a>
<a class="img_nn" data-value="http://ocsys6mwy.bkt.clouddn.com//upload/20161022/13234edd45094e0f91f71320a4ffca6f.jpg" href="###">查看图片>></a>
好时光金拇指幼儿园 123456 唐镇中学 上海新世纪小学
徐汇区教育局 ${readList!}@@${sendList!}@@${notReadList!} 3 7 11
委托经营单位 即团餐公司
schoolName orderDateStr supplierName
http://127.0.0.1:8092/indexV2.htm
修改BUG:
1.排查批次详情 √
2.市教委 添加违禁品,选择原料,下拉框应该限制高度 (郭青修改样式) select 的size 属性 决定了它显示几个选项, 如果多出来的 就会自动变成滚动条了 ?? √
3.所有页面加面包导航栏 (目前追溯和排查)
4.修改违禁品
5.通知 已发,已读,未读 √
6.学期安排之今天
7.通知(已读,已发,未读增加分页)
http://127.0.0.1:8092/check/selectLedger.htm
-- SELECT a.id, a.master_id AS masterId, a.wares_id AS waresId, a.receiver_id AS receiverId, a.name, a.spce, a.amount_unit AS amountUnit, a.shelf_life AS shelfLife, a.unit, a.wares_type AS waresType, a.supplier_id AS supplierId, a.supplier_code AS supplierCode, a.supplier_name AS supplierName, a.quantity, a.production_date AS productionDate, a.production_name AS productionName, a.batch_no AS batchNo, a.trace_code AS traceCode, a.creator, a.create_time AS createTime, a.updater, a.last_update_time AS lastUpdateTime, a.stat, b.action_date AS actionDate, b.start_address AS startAddress, b.ware_batch_no AS wareBatchNo FROM t_pro_ledger a RIGHT JOIN t_pro_ledger_master b ON a.master_id = b.id WHERE a.stat = 1 AND b.stat = 1 AND b.action_date = '2016-10-25 00:00:00.0' AND b.receiver_id = '2ca581ef-cd3f-4421-b32f-e78dc6800b66' AND a.name IN ( '鸡蛋' , '番茄' ) ORDER BY a.`create_time` DESC ;
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' and supplier_type = 2 and stat = 1 ) order by create_time desc ;
-- select id, lic_name, cer_source, written_name, lic_no, lic_type, lic_start_date, lic_end_date, lic_pic, creator, create_time, updater, last_update_time, stat, relation_id, supplier_id from t_pro_license WHERE ( relation_id = 'e23339dd-54bb-4066-9965-792c72befed5' and stat = 1 ) ;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId FROM t_pro_ledger_master a LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date between '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = 'a644fcc3-f98f-4b84-9dcc-0085e539b62a' AND b.supplier_id = 'a6a0d61d-c255-46e1-b9f1-792c8618b5fe' ORDER BY a.create_time DESC ;
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( id = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' and supplier_type = 2 and stat = 1 ) order by create_time desc
-- SELECT DISTINCT b.id,b.wares_name AS waresName,b.`supplier_id` AS supplierId,b.`wares_supplier_id` AS waresSupplierId,b.`wares_supplier` AS waresSupplier,a.contacts,a.`contact_way` AS contactWay,a.supplier_name AS supplierName,d.action_date AS actionDate FROM t_pro_supplier a LEFT JOIN t_pro_wares b ON b.supplier_id = a.id LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supply_id LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id WHERE a.`supplier_type`= 1 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1 AND b.wares_supplier_id = 'a6a0d61d-c255-46e1-b9f1-792c8618b5fe' AND b.id = '11224b49-9671-4e7c-8254-8628a4cecfc2' AND DATE_FORMAT(d.action_date, '%Y-%m-%d') = '2016-10-24' ORDER BY a.create_time DESC ;
SELECT a.school_id AS schoolId,a.`school_name` AS schoolName,b.id AS ledgerId,b.`ware_batch_no` AS batchNo,c.`wares_id` AS waresId FROM t_edu_school_supplier a
LEFT JOIN t_pro_ledger_master b ON a.`supplier_id` = b.`source_id`
LEFT JOIN t_pro_ledger c ON b.`id` = c.`master_id`
WHERE a.stat = 1 AND b.stat = 1 AND c.stat = 1 AND a.`supplier_id` = '460d2a87-97e3-4e6e-8a6e-52f80a1305ed' AND c.wares_id = '11224b49-9671-4e7c-8254-8628a4cecfc2' AND DATE_FORMAT(b.action_date, '%Y-%m-%d') = '2016-10-24' ORDER BY a.create_time DESC ;
-- select id, action_date, receiver_id, receiver_name, driver_name, user_id, source_id, ware_batch_no, image, haul_status, car_id, car_code, start_address, destination_id, destination_name, start_time, end_time, creator, create_time, updater, last_update_time, stat from t_pro_ledger_master WHERE ( id = 'eb3d82d0-5475-42bf-808a-ef9a90b684c0' and ware_batch_no = '000220161025001' and stat = 1 ) ;
SELECT id, material_id, wares_name, spec_id, spec, amount, amount_unit_id, amount_unit, shelf_life, unit, supplier_id, wares_supplier_id, wares_supplier, way, wares_type, wares_type_name, custom_code, image, manufacturer, is_default, bar_code, en_name, place, dishes, remark, creator, updater, wares_number, create_time, last_update_time, stat FROM t_pro_wares WHERE ( stat = 1 ) ORDER BY create_time DESC ;
SELECT * FROM t_pro_supplier_receiver
LEFT JOIN t_pro_supplier e ON a.supplier_id = e.id
LEFT JOIN t_pro_wares b ON e.id = b.wares_supplier_id
LEFT JOIN t_pro_ledger AS c ON b.wares_supplier_id = c.supply_id
LEFT JOIN t_pro_ledger_master AS d ON c.master_id= d.id
WHERE e.`supplier_type`= 2 AND a.`stat` =1 AND b.`stat` =1 AND c.`stat` =1 AND d.`stat` =1
一副生无可恋的样子
-- select id, supplier_name, address, provinces, city, area, supplier_type, business_license, organization_code, food_service_code, food_service_code_date, food_business_code, food_business_code_date, food_circulation_code, food_circulation_code_date, food_produce_code, food_produce_code_date, corporation, corporation_way, contacts, contact_way, reg_time, reg_address, id_card, id_type, longitude, latitude, reviewed, create_time, updater, last_update_time, stat, qa_person, qa_way, reg_capital, annual_sales, company_image from t_pro_supplier WHERE ( reviewed = 1 and stat = 1 AND supplier_type=1 ) order by create_time desc ;
-- select * from t_pro_wares where stat =1 && supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7';
SELECT * FROM t_pro_wares WHERE supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT MAX(id) FROM t_pro_wares GROUP BY material_id;
SELECT id, material_id, wares_name,supplier_id,stat FROM t_pro_wares WHERE id IN(SELECT MAX(id) FROM t_pro_wares a GROUP BY material_id) AND supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1 ;
SELECT DISTINCT(material_id) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
SELECT DISTINCT(wares_name) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
http://127.0.0.1:8092/check/selectLedger.htm
selectLedger
阿里 陈飞 13738686215
-- SELECT * FROM t_pro_wares WHERE supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT MAX(id) FROM t_pro_wares GROUP BY material_id;
-- SELECT id, material_id, wares_name,supplier_id,stat FROM t_pro_wares WHERE id IN(SELECT MAX(id) FROM t_pro_wares a GROUP BY material_id) AND supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1 ORDER BY create_time DESC;
-- SELECT DISTINCT(material_id) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT DISTINCT(wares_name) FROM t_pro_wares a WHERE a.supplier_id = '02963029-4dd0-4327-b87f-4ff7d997a2d7' AND stat =1;
-- SELECT a.id,a.action_date AS actionDate,a.ware_batch_no AS wareBatchNo,a.haul_status AS haulStatus,a.start_time AS startTime,a.end_time AS endTime,b.name,b.supplier_id AS supplierId,b.supplier_name AS supplierName,b.wares_id AS waresId,b.supply_id AS supplyId,b.supply_name AS supply_name FROM t_pro_ledger_master a
-- LEFT JOIN t_pro_ledger b ON a.id=b.master_id WHERE a.stat = 1 AND b.stat = 1 AND a.action_date between '2016-10-01 00:00:00.0' AND '2016-10-31 23:59:59.0' AND b.wares_id = '44173249-bcb2-453a-83e0-5d5c20ecf4fb' AND b.supply_id = 'a46c420e-b485-4a7a-a75d-088d61dbfe73' ORDER BY a.create_time DESC ;
SELECT b.action_date,a.`name`,a.supplier_id,a.`supply_id`,a.wares_id, b.receiver_name,b.ware_batch_no,c.material_id FROM t_pro_ledger AS a
LEFT JOIN t_pro_ledger_master AS b ON a.master_id = b.id
LEFT JOIN t_pro_wares AS c ON c.id = a.wares_id
WHERE a.supply_id='a46c420e-b485-4a7a-a75d-088d61dbfe73' AND a.stat=1 AND b.stat=1 AND c.stat=1 AND c.material_id= 8 AND b.action_date BETWEEN '2016-10-01' AND '2016-10-31' GROUP BY b.action_date;
/check/checkCompany.htm?waresSupplierMenu=美事食品有限公司&waresNameMenu=青菜&supplyDateMenu=2016-10-28&waresSupplierIdMenu=a46c420e-b485-4a7a-a75d-088d61dbfe73&waresId=8775717a-0a5d-4d82-8bad-54f89f70c374
CompanyDto(waresId=8775717a-0a5d-4d82-8bad-54f89f70c374, supplierId=null, waresName=null, waresSupplierId=a46c420e-b485-4a7a-a75d-088d61dbfe73, waresSupplier=null, contacts=null, contactWay=null, supplierName=null, actionDate=2016-10-28)