anderx 3 years ago
parent
commit
5883c5f10e

+ 2 - 3
src/main/java/com/goafanti/core/mybatis/JDBCIdGenerator.java

@@ -11,7 +11,7 @@ import com.goafanti.common.utils.LoggerUtils;
 import com.goafanti.common.utils.StringUtils;
 
 /**
- * 
+ *
  * @author xiaolong
  *
  */
@@ -71,7 +71,6 @@ public class JDBCIdGenerator {
 	 *            工作进程Id
 	 */
 	public static void setWorkerId(final Long workerId) {
-		LoggerUtils.debug(logger, "工作进程ID:[%s]", workerId);
 		Assert.isTrue(workerId > 0L && workerId < WORKER_ID_MAX_VALUE, "工作进程ID不能为空,且小于1024");
 		JDBCIdGenerator.workerId = workerId;
 	}
@@ -108,4 +107,4 @@ public class JDBCIdGenerator {
 		}
 		return time;
 	}
-}
+}

+ 1 - 0
src/main/java/com/goafanti/weChat/service/impl/PublicReleaseServiceImpl.java

@@ -76,6 +76,7 @@ public class PublicReleaseServiceImpl extends BaseMybatisDao<PublicReleaseMapper
 	@Override
 	public Map<String, Object> addPublicRelease(InputPublicRelease in) {
 		Date date =new Date();
+		if (in.getPublicAgain()==null)in.setPublicAgain(0);
 		in.setCreateTime(date);
 		in.setStatus(1);
 		in.setAid(TokenManager.getAdminId());