| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | signatureType.setCreateBy(user.getUserName()); |
| | | signatureType.setCreateTime(new Date()); |
| | | SignatureType signatureType1 = signatureTypeMapper.selectByTypeName(signatureType.getTypeName()); |
| | | if (signatureType1!=null){ |
| | | throw new RuntimeException("类型名称不可重复"); |
| | | } |
| | | return signatureTypeMapper.insert(signatureType); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int deleteType(Long[] ids) { |
| | | public int deleteType(Integer ids) { |
| | | return signatureTypeMapper.deleteTypeIds(ids); |
| | | } |
| | | } |