Selaa lähdekoodia

update

Signed-off-by: anderx <312518615@qq.com>
anderx 5 vuotta sitten
vanhempi
commit
362e35fadf

+ 3 - 2
src/main/java/com/goafanti/demandCollection/service/impl/DemandCollectionServiceImpl.java

@@ -293,12 +293,13 @@ public class DemandCollectionServiceImpl extends BaseMybatisDao<DemandCollection
 			c.setTime(s.getCreateTime());
 			c.set(Calendar.MILLISECOND, 0);
 			s.setCreateTime(c.getTime());
-			s.setPassword(newPassword);
+			s.setPassword(usedPassword);
 			np=passwordUtil.getEncryptPwd(s);
+			s.setPassword(newPassword);
 			if (np.equals(up)) {
 				SkjtUser us=new SkjtUser();
 				us.setId(s.getId());
-				us.setPassword(np);
+				us.setPassword(passwordUtil.getEncryptPwd(s));
 				skjtUserMapper.updateByPrimaryKeySelective(us);
 				return 1;
 			}