This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.fyg.pa.interfaces.module.shared.token.annotation; | |
import java.lang.annotation.Documented; | |
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
/** | |
*校验token是否有效 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.fyg.am.infrastructure; | |
import java.util.logging.Level; | |
import java.util.logging.LogManager; | |
import java.util.logging.Logger; | |
import org.slf4j.bridge.SLF4JBridgeHandler; | |
import com.google.inject.Guice; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
2013年绩效考核结果 | |
mysql 临时表不能在一次查询中连续引用两次 | |
select a.id,b.id from rpt a,rpt b where a.id=b.id会出错 | |
*/ | |
drop procedure if exists yearchk2013; | |
create procedure yearchk2013 (in i_year bigint(20)) | |
begin | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public List<MonthChkItem> getMonthChkItems(Long year, Person person) { | |
CriteriaBuilder builder=entityManager.getCriteriaBuilder(); | |
CriteriaQuery<MonthChkItem> query=builder.createQuery(MonthChkItem.class); | |
Root<MonthChkItem> monthChkItem=query.from(MonthChkItem.class); | |
Join<MonthChkItem,MonthChk> monthChk = monthChkItem.join("monthChk",JoinType.LEFT); | |
List<Predicate> criteria=new ArrayList<Predicate>(); | |
if(year!=null){ | |
criteria.add(builder.equal(monthChk.get("year"), year)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 启动请假流程 | |
* @param leave | |
*/ | |
@RequestMapping(value = "start", method = RequestMethod.POST) | |
public String startWorkflow(Leave leave, RedirectAttributes redirectAttributes, HttpSession session) { | |
try { | |
User user = UserUtil.getUserFromSession(session); | |
leave.setUserId(user.getId()); | |
Map<String, Object> variables = new HashMap<String, Object>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java程序的持久化很难处理,用什么可以解决持久化问题? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package cn.fyg.user.domain.model; | |
import java.util.List; | |
import cn.fyg.user.service.UserException; | |
import net.sf.oval.ConstraintViolation; | |
import net.sf.oval.Validator; | |