增加分配按钮的功能

This commit is contained in:
季圣华
2021-04-28 23:24:07 +08:00
parent 8d9a055799
commit 909af32e60
3 changed files with 53 additions and 28 deletions

View File

@@ -179,14 +179,14 @@ public class UserBusinessService {
}
@Transactional(value = "transactionManager", rollbackFor = Exception.class)
public int updateBtnStr(Long userBusinessId, String btnStr) throws Exception{
public int updateBtnStr(String keyId, String type, String btnStr) throws Exception{
logService.insertLog("关联关系",
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(userBusinessId).toString(),
new StringBuffer(BusinessConstants.LOG_OPERATION_TYPE_EDIT).append(type).toString(),
((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest());
UserBusiness userBusiness = new UserBusiness();
userBusiness.setBtnStr(btnStr);
UserBusinessExample example = new UserBusinessExample();
example.createCriteria().andIdEqualTo(userBusinessId);
example.createCriteria().andKeyIdEqualTo(keyId).andTypeEqualTo(type);
int result=0;
try{
result= userBusinessMapper.updateByExampleSelective(userBusiness, example);